Date: Fri, 26 Aug 2011 16:05:19 +0400 From: Ruslan Mahmatkhanov <cvs-src@yandex.ru> To: Peter Jeremy <peterjeremy@acm.org> Cc: freebsd-ports@freebsd.org Subject: Re: Problems building devel/gobject-introspection Message-ID: <4E578BFF.5070305@yandex.ru> In-Reply-To: <20110826050535.GB64576@server.vk2pj.dyndns.org> References: <20110826050535.GB64576@server.vk2pj.dyndns.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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<module> > 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E578BFF.5070305>