pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc/itstool
Module Name: pkgsrc
Committed By: jperkin
Date: Fri Dec 15 09:14:52 UTC 2017
Modified Files:
pkgsrc/textproc/itstool: Makefile distinfo
Added Files:
pkgsrc/textproc/itstool/patches: patch-itstool.in
Log Message:
itstool: Apply upstream fix for itstool/itstool#17.
Fixes segfaults breaking various dependencies. Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 pkgsrc/textproc/itstool/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/textproc/itstool/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/itstool/patches/patch-itstool.in
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/textproc/itstool/Makefile
diff -u pkgsrc/textproc/itstool/Makefile:1.14 pkgsrc/textproc/itstool/Makefile:1.15
--- pkgsrc/textproc/itstool/Makefile:1.14 Mon Nov 6 18:28:22 2017
+++ pkgsrc/textproc/itstool/Makefile Fri Dec 15 09:14:52 2017
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.14 2017/11/06 18:28:22 prlw1 Exp $
+# $NetBSD: Makefile,v 1.15 2017/12/15 09:14:52 jperkin Exp $
DISTNAME= itstool-2.0.4
+PKGREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://files.itstool.org/itstool/
EXTRACT_SUFX= .tar.bz2
Index: pkgsrc/textproc/itstool/distinfo
diff -u pkgsrc/textproc/itstool/distinfo:1.7 pkgsrc/textproc/itstool/distinfo:1.8
--- pkgsrc/textproc/itstool/distinfo:1.7 Mon Nov 6 18:28:22 2017
+++ pkgsrc/textproc/itstool/distinfo Fri Dec 15 09:14:52 2017
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.7 2017/11/06 18:28:22 prlw1 Exp $
+$NetBSD: distinfo,v 1.8 2017/12/15 09:14:52 jperkin Exp $
SHA1 (itstool-2.0.4.tar.bz2) = 5345615becb5c463c6e7f2462e387fdc327f3a35
RMD160 (itstool-2.0.4.tar.bz2) = 7237fd8b3fb2d354135fdf16caeeb03b9a022e14
SHA512 (itstool-2.0.4.tar.bz2) = f5cfa9c75710f9cc43a61caeb92ca04ec77023bce6fb14d770dda82efde2e5d9050245618c249d309227a3d43555cb1739f5fe680b4a370786ed4631fa9ee4b7
Size (itstool-2.0.4.tar.bz2) = 102107 bytes
+SHA1 (patch-itstool.in) = 70ce932b2c4b816ebd1c295b0d87a114ddde9d06
Added files:
Index: pkgsrc/textproc/itstool/patches/patch-itstool.in
diff -u /dev/null pkgsrc/textproc/itstool/patches/patch-itstool.in:1.1
--- /dev/null Fri Dec 15 09:14:52 2017
+++ pkgsrc/textproc/itstool/patches/patch-itstool.in Fri Dec 15 09:14:52 2017
@@ -0,0 +1,50 @@
+$NetBSD: patch-itstool.in,v 1.1 2017/12/15 09:14:52 jperkin Exp $
+
+Apply upstream fix for https://github.com/itstool/itstool/issues/17
+
+--- itstool.in.orig 2017-12-15 09:05:24.914034930 +0000
++++ itstool.in
+@@ -477,6 +477,7 @@ class Document (object):
+ if load_dtd:
+ ctxt.loadSubset(1)
+ if keep_entities:
++ ctxt.loadSubset(1)
+ ctxt.ctxtUseOptions(libxml2.XML_PARSE_DTDLOAD)
+ ctxt.replaceEntities(0)
+ else:
+@@ -1043,6 +1044,7 @@ class Document (object):
+ if self._load_dtd:
+ ctxt.loadSubset(1)
+ if self._keep_entities:
++ ctxt.loadSubset(1)
+ ctxt.ctxtUseOptions(libxml2.XML_PARSE_DTDLOAD)
+ ctxt.replaceEntities(0)
+ else:
+@@ -1069,7 +1071,9 @@ class Document (object):
+ ph_node = msg.get_placeholder(child.name).node
+ if self.has_child_elements(ph_node):
+ self.merge_translations(translations, None, ph_node, strict=strict)
+- child.replaceNode(ph_node)
++ newnode = ph_node.copyNode(1)
++ newnode.setTreeDoc(self._doc)
++ child.replaceNode(newnode)
+ else:
+ repl = self.get_translated(ph_node, translations, strict=strict, lang=lang)
+ child.replaceNode(repl)
+@@ -1084,10 +1088,15 @@ class Document (object):
+ (lang + ' ') if lang is not None else '',
+ msgstr.encode('utf-8')))
+ self._xml_err = ''
++ ctxt.doc().freeDoc()
+ return node
+ retnode = node.copyNode(2)
++ retnode.setTreeDoc(self._doc)
+ for child in xml_child_iter(trnode):
+- retnode.addChild(child.copyNode(1))
++ newnode = child.copyNode(1)
++ newnode.setTreeDoc(self._doc)
++ retnode.addChild(newnode)
++
+ ctxt.doc().freeDoc()
+ return retnode
+
Home |
Main Index |
Thread Index |
Old Index