From owner-freebsd-ports@FreeBSD.ORG Fri Aug 26 12:05:43 2011 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26D4D1065678 for ; Fri, 26 Aug 2011 12:05:43 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from forward11.mail.yandex.net (forward11.mail.yandex.net [IPv6:2a02:6b8:0:801::1]) by mx1.freebsd.org (Postfix) with ESMTP id 9E8328FC1C for ; Fri, 26 Aug 2011 12:05:42 +0000 (UTC) Received: from smtp14.mail.yandex.net (smtp14.mail.yandex.net [95.108.131.192]) by forward11.mail.yandex.net (Yandex) with ESMTP id 15D0AE824F0; Fri, 26 Aug 2011 16:05:41 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1314360341; bh=gpezKGgmH23mnhZwrXp/cuF5XuCjVvHl8i1ESNqBSrQ=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=SMuq+tOkyeOs1K32aIPWwANMQ+CS/yLcuLDIeTsWUDRBexsuKPbf00Rxepa5ks19J fd0X0HyIwIXZ94oTVnSQ/1O4RTKNUMCJevtc9Tom2/YC/OR7U88OsPXHybm94ifVNS pL5jxmTNZmy0h5vj8IlyMD4ucMlG2bfwJBODgYTg= Received: from smtp14.mail.yandex.net (localhost [127.0.0.1]) by smtp14.mail.yandex.net (Yandex) with ESMTP id 014181B604C0; Fri, 26 Aug 2011 16:05:40 +0400 (MSD) Received: from unknown (unknown [213.27.65.65]) by smtp14.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 5eUafVXN; Fri, 26 Aug 2011 16:05:40 +0400 X-Yandex-Spam: 1 Message-ID: <4E578BFF.5070305@yandex.ru> Date: Fri, 26 Aug 2011 16:05:19 +0400 From: Ruslan Mahmatkhanov User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:6.0) Gecko/20110816 Thunderbird/6.0 MIME-Version: 1.0 To: Peter Jeremy References: <20110826050535.GB64576@server.vk2pj.dyndns.org> In-Reply-To: <20110826050535.GB64576@server.vk2pj.dyndns.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Problems building devel/gobject-introspection X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2011 12:05:43 -0000 Peter Jeremy wrote on 26.08.2011 09:05: > I am having problems building devel/gobject-introspection on one > 9.0-BETA1 host. I can build it without problems on 8.2 and another > 9.0-BETA1 box. In all cases, I'm using gcc and amd64. The failure > is: > > GISCAN GLib-2.0.gir > g-ir-scanner: GLib: warning: 484 warnings suppressed (use --warn-all to see them) > Traceback (most recent call last): > File "./g-ir-scanner", line 43, in > sys.exit(scanner_main(sys.argv)) > File "./giscanner/scannermain.py", line 427, in scanner_main > exported_packages, options.c_includes) > File "./giscanner/girwriter.py", line 40, in __init__ > c_includes) > File "./giscanner/girwriter.py", line 64, in _write_repository > self._write_namespace(namespace, shlibs) > File "./giscanner/girwriter.py", line 100, in _write_namespace > self._write_node(node) > File "./giscanner/girwriter.py", line 125, in _write_node > self._write_constant(node) > File "./giscanner/girwriter.py", line 350, in _write_constant > with self.tagcontext('constant', attrs): > File "/usr/local/lib/python2.7/contextlib.py", line 17, in __enter__ > return self.gen.next() > File "./giscanner/xmlwriter.py", line 165, in tagcontext > self.push_tag(tag_name, attributes) > File "./giscanner/xmlwriter.py", line 153, in push_tag > self._open_tag(tag_name, attributes) > File "./giscanner/xmlwriter.py", line 97, in _open_tag > len(tag_name) + 2) You also can patch ${WRKSRC}/giscanner/xmlwriter.py: 116 def write_line(self, line=u'', indent=True, do_escape=False): 117 if isinstance(line, str): 118 line = line.decode('utf-8') After line 116 add print('XXXXXXXX, THERE IS LINE: ', line) like this: 116 def write_line(self, line=u'', indent=True, do_escape=False): 117 print('XXXXXXXX, WHERE IS LINE: ', line) 118 if isinstance(line, str): 119 line = line.decode('utf-8') You should do this between `make extract` and `make build`. Then copy here what the string is looks like after "XXXXXXXX, THERE IS LINE". -- Regards, Ruslan Tinderboxing kills... the drives.