From 699dcb70fbd4295f2876264cbc33ef897c4938b1 Mon Sep 17 00:00:00 2001 From: Gerardo Di Iorio Date: Mon, 25 Feb 2019 17:56:18 +0100 Subject: [PATCH] docbook-xsl: fix non-recursive_string_subst Signed-off-by: Gerardo Di Iorio --- .../patches/non-recursive_string_subst.patch | 30 +++++++++++++++++++ srcpkgs/docbook-xsl/template | 4 +-- 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/docbook-xsl/patches/non-recursive_string_subst.patch diff --git a/srcpkgs/docbook-xsl/patches/non-recursive_string_subst.patch b/srcpkgs/docbook-xsl/patches/non-recursive_string_subst.patch new file mode 100644 index 00000000000..13193e2f03a --- /dev/null +++ b/srcpkgs/docbook-xsl/patches/non-recursive_string_subst.patch @@ -0,0 +1,30 @@ +Description: use EXSLT "replace" function when available + A recursive implementation of string.subst is problematic, + long strings with many matches will cause stack overflows. +Author: Peter De Wachter +Bug-Debian: https://bugs.debian.org/750593 + +--- lib/lib.xsl ++++ lib/lib.xsl +@@ -10,7 +10,10 @@ + This module implements DTD-independent functions + + ******************************************************************** --> +- ++ + + + +@@ -56,6 +59,9 @@ + + + ++ ++ ++ + + + diff --git a/srcpkgs/docbook-xsl/template b/srcpkgs/docbook-xsl/template index d94c36584d4..d83236e6972 100644 --- a/srcpkgs/docbook-xsl/template +++ b/srcpkgs/docbook-xsl/template @@ -2,8 +2,8 @@ pkgname=docbook-xsl reverts="1.79.2_1" version=1.79.1 -revision=6 -noarch=yes +revision=7 +archs=noarch depends="xmlcatmgr docbook-xml>=4.2" short_desc="Docbook XSL modular stylesheet" maintainer="Juan RP "