diff options
author | miwi <miwi@FreeBSD.org> | 2009-07-28 06:27:43 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2009-07-28 06:27:43 +0800 |
commit | 242f0afded019f7f4fd689295a1be1fd99eb78db (patch) | |
tree | ab84f79eba6651470b55242c0b24f4e27ee1f253 /textproc | |
parent | 5d1d71f0e047a8b0eee27cd29a1afda54f357c38 (diff) | |
download | freebsd-ports-gnome-242f0afded019f7f4fd689295a1be1fd99eb78db.tar.gz freebsd-ports-gnome-242f0afded019f7f4fd689295a1be1fd99eb78db.tar.zst freebsd-ports-gnome-242f0afded019f7f4fd689295a1be1fd99eb78db.zip |
- Fix crash with py26
PR: 136596
Submitted by: Wen Heping <wenheping@gmail.com>
Approved by: maintainer timeout
Diffstat (limited to 'textproc')
4 files changed, 31 insertions, 1 deletions
diff --git a/textproc/py-xml/Makefile b/textproc/py-xml/Makefile index 3849da072783..a74dc98ffa40 100644 --- a/textproc/py-xml/Makefile +++ b/textproc/py-xml/Makefile @@ -7,7 +7,7 @@ PORTNAME= xml PORTVERSION= 0.8.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= textproc python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= pyxml diff --git a/textproc/py-xml/files/patch-xml-xpath-ParsedAbbreviatedAbsoluteLocationPath.py b/textproc/py-xml/files/patch-xml-xpath-ParsedAbbreviatedAbsoluteLocationPath.py new file mode 100644 index 000000000000..1aa89d886448 --- /dev/null +++ b/textproc/py-xml/files/patch-xml-xpath-ParsedAbbreviatedAbsoluteLocationPath.py @@ -0,0 +1,13 @@ +--- xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py.orig 2009-07-09 08:48:55.000000000 +0800 ++++ xml/xpath/ParsedAbbreviatedAbsoluteLocationPath.py 2009-07-09 08:49:09.000000000 +0800 +@@ -24,8 +24,8 @@ + self._rel = rel + nt = ParsedNodeTest.ParsedNodeTest('node', '') + ppl = ParsedPredicateList.ParsedPredicateList([]) +- as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') +- self._step = ParsedStep.ParsedStep(as, nt, ppl) ++ as26 = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') ++ self._step = ParsedStep.ParsedStep(as26, nt, ppl) + return + + def evaluate(self, context): diff --git a/textproc/py-xml/files/patch-xml-xpath-ParsedAbbreviatedRelativeLocationPath.py b/textproc/py-xml/files/patch-xml-xpath-ParsedAbbreviatedRelativeLocationPath.py new file mode 100644 index 000000000000..c440b2455c24 --- /dev/null +++ b/textproc/py-xml/files/patch-xml-xpath-ParsedAbbreviatedRelativeLocationPath.py @@ -0,0 +1,13 @@ +--- xml/xpath/ParsedAbbreviatedRelativeLocationPath.py.orig 2009-07-09 08:43:39.000000000 +0800 ++++ xml/xpath/ParsedAbbreviatedRelativeLocationPath.py 2009-07-09 08:43:56.000000000 +0800 +@@ -28,8 +28,8 @@ + self._right = right + nt = ParsedNodeTest.ParsedNodeTest('node','') + ppl = ParsedPredicateList.ParsedPredicateList([]) +- as = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') +- self._middle = ParsedStep.ParsedStep(as, nt, ppl) ++ as26 = ParsedAxisSpecifier.ParsedAxisSpecifier('descendant-or-self') ++ self._middle = ParsedStep.ParsedStep(as26, nt, ppl) + + def evaluate(self, context): + res = [] diff --git a/textproc/py-xml/pkg-plist b/textproc/py-xml/pkg-plist index 792c96a32e69..4129e958ba1c 100644 --- a/textproc/py-xml/pkg-plist +++ b/textproc/py-xml/pkg-plist @@ -532,7 +532,11 @@ bin/xmlproc_val %%XPATH%%%%PYTHON_SITELIBDIR%%/%%PACKAGE_DIR%%/xpath/NamespaceNode.pyc %%XPATH%%%%PYTHON_SITELIBDIR%%/%%PACKAGE_DIR%%/xpath/NamespaceNode.pyo %%XPATH%%%%PYTHON_SITELIBDIR%%/%%PACKAGE_DIR%%/xpath/ParsedAbbreviatedAbsoluteLocationPath.py +%%XPATH%%%%PYTHON_SITELIBDIR%%/%%PACKAGE_DIR%%/xpath/ParsedAbbreviatedAbsoluteLocationPath.pyc +%%XPATH%%%%PYTHON_SITELIBDIR%%/%%PACKAGE_DIR%%/xpath/ParsedAbbreviatedAbsoluteLocationPath.pyo %%XPATH%%%%PYTHON_SITELIBDIR%%/%%PACKAGE_DIR%%/xpath/ParsedAbbreviatedRelativeLocationPath.py +%%XPATH%%%%PYTHON_SITELIBDIR%%/%%PACKAGE_DIR%%/xpath/ParsedAbbreviatedRelativeLocationPath.pyc +%%XPATH%%%%PYTHON_SITELIBDIR%%/%%PACKAGE_DIR%%/xpath/ParsedAbbreviatedRelativeLocationPath.pyo %%XPATH%%%%PYTHON_SITELIBDIR%%/%%PACKAGE_DIR%%/xpath/ParsedAbsoluteLocationPath.py %%XPATH%%%%PYTHON_SITELIBDIR%%/%%PACKAGE_DIR%%/xpath/ParsedAbsoluteLocationPath.pyc %%XPATH%%%%PYTHON_SITELIBDIR%%/%%PACKAGE_DIR%%/xpath/ParsedAbsoluteLocationPath.pyo |