diff --git a/srcpkgs/docbook-xsl/patches/non-recursive_string_subst.patch b/srcpkgs/docbook-xsl/patches/0001_non-recursive_string_subst.patch similarity index 60% rename from srcpkgs/docbook-xsl/patches/non-recursive_string_subst.patch rename to srcpkgs/docbook-xsl/patches/0001_non-recursive_string_subst.patch index 13193e2f03a..944d18b1a5b 100644 --- a/srcpkgs/docbook-xsl/patches/non-recursive_string_subst.patch +++ b/srcpkgs/docbook-xsl/patches/0001_non-recursive_string_subst.patch @@ -1,16 +1,20 @@ -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 +From: Peter De Wachter +Date: Tue, 2 Jun 2020 09:10:39 -0400 +Subject: use EXSLT "replace" function when available + +A recursive implementation of string.subst is problematic, +long strings with many matches will cause stack overflows. + Bug-Debian: https://bugs.debian.org/750593 --- lib/lib.xsl +++ lib/lib.xsl -@@ -10,7 +10,10 @@ +@@ -6,7 +6,11 @@ + This module implements DTD-independent functions - ******************************************************************** --> -- +- ******************************************************************** --> ++ ******************************************************************** --> + -@@ -56,6 +59,9 @@ +@@ -52,6 +56,9 @@ diff --git a/srcpkgs/docbook-xsl/patches/0002_docbook-xsl-mandir.patch b/srcpkgs/docbook-xsl/patches/0002_docbook-xsl-mandir.patch new file mode 100644 index 00000000000..99c81f0c819 --- /dev/null +++ b/srcpkgs/docbook-xsl/patches/0002_docbook-xsl-mandir.patch @@ -0,0 +1,25 @@ +From: Michael Biebl +Date: Wed, 7 Sep 2016 01:37:47 +0200 +Subject: Fix bad .so links in man pages + +Bug-Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=%23727251 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=831831 + +--- manpages/other.xsl ++++ manpages/other.xsl +@@ -558,7 +558,14 @@ + Note: + (soelim stub) + +- ++ ++ ++ ++ ++ ++ ++ ++ + + + diff --git a/srcpkgs/docbook-xsl/patches/0003_catalog.xml-Compatibility-with-1.79.1-or-earlier.patch b/srcpkgs/docbook-xsl/patches/0003_catalog.xml-Compatibility-with-1.79.1-or-earlier.patch new file mode 100644 index 00000000000..56ce2cb3d44 --- /dev/null +++ b/srcpkgs/docbook-xsl/patches/0003_catalog.xml-Compatibility-with-1.79.1-or-earlier.patch @@ -0,0 +1,22 @@ +From: Boyuan Yang +Date: Tue, 2 Jun 2020 22:11:52 -0400 +Subject: catalog.xml: Compatibility with 1.79.1 or earlier + +The docbook-xsl project changed the canonical URI since 1.79.2. +Besides changes made in debian/*.xmlcatalogs files, this patch +completes the support of the old URI so that existing software +does not break with changed registered URI. + +Forwarded: not-needed +Last-Update: 2020-06-02 + +--- catalog.xml ++++ catalog.xml +@@ -5,4 +5,7 @@ + + + ++ ++ ++ + diff --git a/srcpkgs/docbook-xsl/template b/srcpkgs/docbook-xsl/template index 0d63b09dfbe..5cf9b0d5fc9 100644 --- a/srcpkgs/docbook-xsl/template +++ b/srcpkgs/docbook-xsl/template @@ -1,17 +1,17 @@ # Template file for 'docbook-xsl' pkgname=docbook-xsl -reverts="1.79.2_1" # keep in sync with docbook-xsl-ns -version=1.79.1 -revision=7 -archs=noarch +version=1.79.2 +revision=2 +# at v1.79.2, docbook-xsl was renamed to docbook-xsl-nons +wrksrc="${pkgname}-nons-${version}" depends="xmlcatmgr docbook-xml>=4.2" short_desc="Docbook XSL modular stylesheet" -maintainer="Orphaned " +maintainer="Cameron Nemo " license="MIT" -homepage="http://docbook.sourceforge.net/" -distfiles="${SOURCEFORGE_SITE}/docbook/${pkgname}-${version}.tar.bz2" -checksum=725f452e12b296956e8bfb876ccece71eeecdd14b94f667f3ed9091761a4a968 +homepage="https://docbook.org/" +distfiles="https://github.com/docbook/xslt10-stylesheets/releases/download/release/${version}/${wrksrc}.tar.bz2" +checksum=ee8b9eca0b7a8f89075832a2da7534bce8c5478fc8fc2676f512d5d87d832102 xml_entries="nextCatalog /usr/share/xsl/docbook/catalog.xml --" do_install() {