gnu: docbook-xsl: Update to 1.79.2.

* gnu/packages/patches/docbook-xsl-support-old-url.patch: New file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/patches/docbook-xsl-nonrecursive-string-subst.patch: Adjust URL
and context.
* gnu/packages/docbook.scm (docbook-xsl): Update to 1.79.2.
[source](uri): Adjust for new download location.
This commit is contained in:
Marius Bakke 2020-06-14 17:21:23 +02:00
parent 4193095e18
commit 6268aa3184
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA
4 changed files with 31 additions and 10 deletions

View file

@ -5,7 +5,7 @@ https://bugzilla.samba.org/show_bug.cgi?id=9515
https://bugzilla.gnome.org/show_bug.cgi?id=736077 (for xsltproc)
Patch copied from Debian:
https://anonscm.debian.org/cgit/collab-maint/docbook-xsl.git/tree/debian/patches/765567_non-recursive_string_subst.patch
https://salsa.debian.org/debian/docbook-xsl/-/blob/master/debian/patches/765567_non-recursive_string_subst.patch
Description: use EXSLT "replace" function when available
A recursive implementation of string.subst is problematic,
@ -15,11 +15,12 @@ Bug-Debian: https://bugs.debian.org/750593
--- a/lib/lib.xsl
+++ b/lib/lib.xsl
@@ -10,7 +10,10 @@
@@ -6,7 +6,11 @@
This module implements DTD-independent functions
******************************************************************** -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- ******************************************************************** --><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ ******************************************************************** -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:str="http://exslt.org/strings"
+ exclude-result-prefixes="str"
@ -27,7 +28,7 @@ Bug-Debian: https://bugs.debian.org/750593
<xsl:template name="dot.count">
<!-- Returns the number of "." characters in a string -->
@@ -56,6 +59,9 @@
@@ -52,6 +56,9 @@
<xsl:param name="replacement"/>
<xsl:choose>