[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
104/115: gnu: docbook-xsl: Update to 1.79.2.
From: |
guix-commits |
Subject: |
104/115: gnu: docbook-xsl: Update to 1.79.2. |
Date: |
Fri, 7 May 2021 16:56:52 -0400 (EDT) |
raghavgururajan pushed a commit to branch wip-gnome
in repository guix.
commit b84ed82bee0e5294488b2bbf850e985bcaacfc59
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Sun Jun 14 17:21:23 2020 +0200
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.
---
gnu/local.mk | 1 +
gnu/packages/docbook.scm | 12 +++++++-----
.../patches/docbook-xsl-nonrecursive-string-subst.patch | 11 ++++++-----
gnu/packages/patches/docbook-xsl-support-old-url.patch | 17 +++++++++++++++++
4 files changed, 31 insertions(+), 10 deletions(-)
diff --git a/gnu/local.mk b/gnu/local.mk
index fdfc2cf..4ecdc7b 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -946,6 +946,7 @@ dist_patch_DATA =
\
%D%/packages/patches/diffutils-gets-undeclared.patch \
%D%/packages/patches/dkimproxy-add-ipv6-support.patch \
%D%/packages/patches/docbook-xsl-nonrecursive-string-subst.patch \
+ %D%/packages/patches/docbook-xsl-support-old-url.patch \
%D%/packages/patches/doc++-include-directives.patch \
%D%/packages/patches/doc++-segfault-fix.patch \
%D%/packages/patches/docker-fix-tests.patch \
diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm
index e348fb1..ad28896 100644
--- a/gnu/packages/docbook.scm
+++ b/gnu/packages/docbook.scm
@@ -170,15 +170,17 @@ by no means limited to these applications.) This package
provides XML DTDs.")
(define-public docbook-xsl
(package
(name "docbook-xsl")
- (version "1.79.1")
+ (version "1.79.2")
(source (origin
(method url-fetch)
- (uri (string-append "mirror://sourceforge/docbook/docbook-xsl/"
- version "/docbook-xsl-" version ".tar.bz2"))
- (patches (search-patches
"docbook-xsl-nonrecursive-string-subst.patch"))
+ (uri (string-append
"https://github.com/docbook/xslt10-stylesheets"
+ "/releases/download/release%2F" version
+ "/docbook-xsl-" version ".tar.bz2"))
+ (patches (search-patches "docbook-xsl-support-old-url.patch"
+
"docbook-xsl-nonrecursive-string-subst.patch"))
(sha256
(base32
- "0s59lihif2fr7rznckxr2kfyrvkirv76r1zvidp9b5mj28p4apvj"))
+ "0wd33z41kdsybyx3ay21w6bdlmgpd9kyn3mr5y520lsf8km28r9i"))
(modules '((guix build utils)))
(snippet
'(begin
diff --git a/gnu/packages/patches/docbook-xsl-nonrecursive-string-subst.patch
b/gnu/packages/patches/docbook-xsl-nonrecursive-string-subst.patch
index 4199dd1..fed4b76 100644
--- a/gnu/packages/patches/docbook-xsl-nonrecursive-string-subst.patch
+++ b/gnu/packages/patches/docbook-xsl-nonrecursive-string-subst.patch
@@ -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>
diff --git a/gnu/packages/patches/docbook-xsl-support-old-url.patch
b/gnu/packages/patches/docbook-xsl-support-old-url.patch
new file mode 100644
index 0000000..5b7dda4
--- /dev/null
+++ b/gnu/packages/patches/docbook-xsl-support-old-url.patch
@@ -0,0 +1,17 @@
+Docbook 1.79.2 makes very few changes apart from changing the canonical URL
+to cdn.docbook.org. This patch adds support for the previous URL to avoid
+breaking packages that still use that.
+
+Adapted from Debian:
+https://salsa.debian.org/debian/docbook-xsl/-/blob/master/debian/patches/0005-catalog.xml-Compatibility-with-1.79.1-or-earlier.patch
+
+--- a/catalog.xml
++++ b/catalog.xml
+@@ -5,4 +5,7 @@
+ <rewriteSystem
systemIdStartString="http://cdn.docbook.org/release/xsl/current/"
rewritePrefix="./"/>
+ <rewriteURI uriStartString="http://cdn.docbook.org/release/xsl/1.79.2/"
rewritePrefix="./"/>
+ <rewriteSystem
systemIdStartString="http://cdn.docbook.org/release/xsl/1.79.2/"
rewritePrefix="./"/>
++ <!-- Also support old URI of v1.79.1 or earlier -->
++ <rewriteURI
uriStartString="http://docbook.sourceforge.net/release/xsl/current/"
rewritePrefix="./"/>
++ <rewriteSystem
systemIdStartString="http://docbook.sourceforge.net/release/xsl/current/"
rewritePrefix="./"/>
+ </catalog>
- 99/115: gnu: gst-plugins-bad: Add missing inputs to enable more features., (continued)
- 99/115: gnu: gst-plugins-bad: Add missing inputs to enable more features., guix-commits, 2021/05/07
- 98/115: gnu: gst-plugins-bad: Update to 1.18.4., guix-commits, 2021/05/07
- 101/115: gnu: cairo: Reintroduce security patches [security fixes]., guix-commits, 2021/05/07
- 111/115: gnu: python-pycairo: Update to 1.20.0., guix-commits, 2021/05/07
- 105/115: gnu: pango: Use meson-0.55, as required by the project., guix-commits, 2021/05/07
- 110/115: gnu: w3m: Update to 0.5.3+git20210102., guix-commits, 2021/05/07
- 102/115: gnu: glib: Disable failing test., guix-commits, 2021/05/07
- 05/115: gnu: glib-with-documentation: Make some cosmetic changes., guix-commits, 2021/05/07
- 109/115: gnu: gnutls: Enable PKCS#11 support., guix-commits, 2021/05/07
- 108/115: gnu: glib-networking: Update home-page, synopsis, description and license., guix-commits, 2021/05/07
- 104/115: gnu: docbook-xsl: Update to 1.79.2.,
guix-commits <=
- 107/115: gnu: glib-networking: Enable libproxy and openssl support., guix-commits, 2021/05/07
- 112/115: gnu: python-pygobject: Update to 3.40.1., guix-commits, 2021/05/07
- 106/115: gnu: glib-networking: Update to 2.68.0., guix-commits, 2021/05/07
- 114/115: gnu: gtkmm@2: Override inheritance of certain changes from gtkmm., guix-commits, 2021/05/07