From owner-freebsd-ports@FreeBSD.ORG Mon Feb 16 06:52:44 2015 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 66CF4EF5 for ; Mon, 16 Feb 2015 06:52:44 +0000 (UTC) Received: from priestess.cards.sahiro.org (221x117x94x38.ap221.ftth.ucom.ne.jp [221.117.94.38]) by mx1.freebsd.org (Postfix) with ESMTP id 35F1080D for ; Mon, 16 Feb 2015 06:52:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by priestess.cards.sahiro.org (Postfix) with ESMTP id E6B685AA7D7 for ; Mon, 16 Feb 2015 15:42:31 +0900 (JST) Date: Mon, 16 Feb 2015 15:40:42 +0900 From: SASAKI Katuhiro To: koobs@FreeBSD.org Subject: Re: Port textproc/py-xml Message-Id: <20150216154042.8a326c06915c1a9fd384d1a4@sahiro.org> In-Reply-To: <54E06B05.70507@FreeBSD.org> References: <54DF5300.9010304@gmail.com> <54E06B05.70507@FreeBSD.org> X-Mailer: Sylpheed 3.4.2 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: ports@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2015 06:52:44 -0000 Hi. On Sun, 15 Feb 2015 20:46:45 +1100 Kubilay Kocak wrote: > On 15/02/2015 12:52 AM, Joerg Ruppe-Tanner wrote: > > Hi Maintainer > > > > Here an Patch for textproc/py-xml > > > > > > --- xml/xslt/Stylesheet.py.orig 2015-02-14 14:39:02.860452706 +0100 > > +++ xml/xslt/Stylesheet.py 2015-02-14 14:28:48.331501981 +0100 > > @@ -373,8 +373,8 @@ > > > > #Attribute sets > > attribute_sets = filter(lambda x: x.nodeType == > > Node.ELEMENT_NODE and (x.namespaceURI, x.localName) == (XSL_NAMESPACE, > > 'attribute-set'), self.childNodes) > > - for as in attribute_sets: > > - as.instantiate(context, processor) > > + for las in attribute_sets: > > + las.instantiate(context, processor) > > overridden_params = {} > > for k in topLevelParams.keys(): > > if type(k) != types.TupleType: > > > > > > For me it was useful > > > > > > Kind Rregards > > > > JC6rg > > > > > > Hi JC6rg, > > May I ask what the patch addresses? > Does it fix a bug? If so, what are/were the symptoms? > Did you find this patch online? If so, what URL? > On my 10.1-RELEASE box, error as below before patching. > ===> Staging for py27-xml-0.8.4_2 > ===> py27-xml-0.8.4_2 depends on package: py27-setuptools27>0 - found > ===> py27-xml-0.8.4_2 depends on file: /usr/local/bin/python2.7 - found > ===> Generating temporary packing list > ... > byte-compiling /var/portbuild/usr/ports/textproc/py-xml/work/stage/usr/local/lib > /python2.7/site-packages/_xmlplus/xslt/Stylesheet.py to Stylesheet.pyc > File "/usr/local/lib/python2.7/site-packages/_xmlplus/xslt/Stylesheet.py", line 376 > for as in attribute_sets: > ^ > SyntaxError: invalid syntax > > ... > /usr/local/bin/python2.7 -O /tmp/tmpwBM1dQ.py > File "/usr/local/lib/python2.7/site-packages/_xmlplus/xslt/Stylesheet.py", line 376 > for as in attribute_sets: > ^ > SyntaxError: invalid syntax > > removing /tmp/tmpwBM1dQ.py > ... > ===> Compressing man pages (compress-man) > ===> Installing for py27-xml-0.8.4_2 > ===> Checking if py27-xml already installed > /usr/local/bin/python2.7 > ===> Registering installation for py27-xml-0.8.4_2 > pkg-static: Unable to access file /var/portbuild/usr/ports/textproc/py-xml/work/stage/usr/local/lib/python2.7/site-packages/_xmlplus/xslt/Stylesheet.pyc: No such file or directory > pkg-static: Unable to access file /var/portbuild/usr/ports/textproc/py-xml/work/stage/usr/local/lib/python2.7/site-packages/_xmlplus/xslt/Stylesheet.pyo: No such file or directory > *** Error code 74 > > Stop. > make[1]: stopped in /usr/ports/textproc/py-xml > *** Error code 1 > > Stop. > make: stopped in /usr/ports/textproc/py-xml -- SASAKI Katuhiro mailto: crest@sahiro.org