Port textproc/py-xml
SASAKI Katuhiro
crest at sahiro.org
Mon Feb 16 06:52:44 UTC 2015
Hi.
On Sun, 15 Feb 2015 20:46:45 +1100
Kubilay Kocak <koobs at FreeBSD.org> 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 at sahiro.org
More information about the freebsd-ports
mailing list