From bf9e5d16fdcf7597e223264edc87c671e2a7c09a Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Wed, 13 Sep 2017 16:25:32 +0300 Subject: [PATCH] Use non-recursive string.subst The patch comes from Debian: https://anonscm.debian.org/cgit/collab-maint/docbook-xsl.git/tree/debian/patches/765567_non-recursive_string_subst.patch --- ...style-xsl-non-recursive-string-subst.patch | 30 +++++++++++++++++++ docbook-style-xsl.spec | 9 ++++-- 2 files changed, 37 insertions(+), 2 deletions(-) create mode 100644 docbook-style-xsl-non-recursive-string-subst.patch diff --git a/docbook-style-xsl-non-recursive-string-subst.patch b/docbook-style-xsl-non-recursive-string-subst.patch new file mode 100644 index 0000000..d6b5150 --- /dev/null +++ b/docbook-style-xsl-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 + +--- docbook-xsl-1.78.1+dfsg.orig/docbook-xsl/lib/lib.xsl ++++ docbook-xsl-1.78.1+dfsg/docbook-xsl/lib/lib.xsl +@@ -10,7 +10,10 @@ + This module implements DTD-independent functions + + ******************************************************************** --> +- ++ + + + +@@ -56,6 +59,9 @@ + + + ++ ++ ++ + + + diff --git a/docbook-style-xsl.spec b/docbook-style-xsl.spec index 2772647..5548503 100644 --- a/docbook-style-xsl.spec +++ b/docbook-style-xsl.spec @@ -1,6 +1,6 @@ Name: docbook-style-xsl Version: 1.79.2 -Release: 5%{?dist} +Release: 6%{?dist} Group: Applications/Text Summary: Norman Walsh's XSL stylesheets for DocBook XML @@ -38,7 +38,8 @@ Patch4: docbook-xsl-non-constant-expressions.patch Patch5: docbook-xsl-list-item-body.patch #workaround missing mandir section problem (#727251) Patch6: docbook-xsl-mandir.patch - +#Non-recursive string.subst that doesn't kill smb.conf.5 generation +Patch7: docbook-style-xsl-non-recursive-string-subst.patch %description These XSL stylesheets allow you to transform any DocBook XML document to @@ -58,6 +59,7 @@ popd %patch4 -p1 -b .nonconstant %patch5 -p1 -b .listitembody %patch6 -p1 -b .mandir +%patch7 -p2 -b .non-recursive-subst cp -p %{SOURCE1} Makefile @@ -137,6 +139,9 @@ if [ "$1" = 0 ]; then fi %changelog +* Wed Sep 13 2017 Alexander Bokovoy - 1.79.2-6 +- Use non-recursive string.subst to allow building large documents like smb.conf.5 + * Wed Jul 26 2017 Fedora Release Engineering - 1.79.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild