diff --git a/srcpkgs/itstool/patches/fix-segfault.patch b/srcpkgs/itstool/patches/fix-segfault.patch new file mode 100644 index 00000000000..48d35a1d42e --- /dev/null +++ b/srcpkgs/itstool/patches/fix-segfault.patch @@ -0,0 +1,15 @@ +Description: Be more careful about libxml2 memory management +Author: Guido Trentalancia +Origin: https://github.com/itstool/itstool/pull/18 + +--- itstool.in 2018-11-08 19:11:00.000000000 +0100 ++++ itstool.in 2019-05-13 11:02:18.619090267 +0200 +@@ -1053,7 +1053,7 @@ + else: + ctxt.replaceEntities(1) + ctxt.parseDocument() +- trnode = ctxt.doc().getRootElement() ++ trnode = ctxt.doc().getRootElement().copyNode(1) + try: + self._check_errors() + except libxml2.parserError: diff --git a/srcpkgs/itstool/template b/srcpkgs/itstool/template index fe62667d20e..a7654c7ccc3 100644 --- a/srcpkgs/itstool/template +++ b/srcpkgs/itstool/template @@ -1,7 +1,7 @@ # Template file for 'itstool' pkgname=itstool version=2.0.6 -revision=1 +revision=2 archs=noarch build_style=gnu-configure configure_args="PYTHON=/usr/bin/python3"