summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorBruno Victal <mirai@makinata.eu>2023-10-09 21:05:58 +0100
committerLudovic Courtès <ludo@gnu.org>2024-08-31 10:42:08 +0200
commit7e4ddd2d2e11c3a978a56b20aec6cd2e5935d07a (patch)
treebe993d10221f71771a75cf776cd4d8a33022d79f /gnu
parent07114a3f34db9a86c599312d062fdac7780bda9d (diff)
gnu: docbook: Remove leftovers.
docbook-xsl patches are probably remnants from 1f7d94597f1e78776f854eeca46c03a3aded8466. * gnu/packages/docbook.scm: Remove unused import. * gnu/packages/patches/docbook-xsl-nonrecursive-string-subst.patch: Remove. * gnu/packages/patches/docbook-xsl-support-old-url.patch: Ditto. * gnu/local.mk: Unregister it. * gnu/packages/moreutils.scm (moreutils)[native-inputs]: Drop obsolete comment. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/local.mk2
-rw-r--r--gnu/packages/docbook.scm1
-rw-r--r--gnu/packages/moreutils.scm2
-rw-r--r--gnu/packages/patches/docbook-xsl-nonrecursive-string-subst.patch40
-rw-r--r--gnu/packages/patches/docbook-xsl-support-old-url.patch17
5 files changed, 1 insertions, 61 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index 8f0ff232516..8c2aff524cd 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1124,8 +1124,6 @@ dist_patch_DATA = \
1124 %D%/packages/patches/diffutils-fix-signal-processing.patch \ 1124 %D%/packages/patches/diffutils-fix-signal-processing.patch \
1125 %D%/packages/patches/directfb-davinci-glibc-228-compat.patch \ 1125 %D%/packages/patches/directfb-davinci-glibc-228-compat.patch \
1126 %D%/packages/patches/dkimproxy-add-ipv6-support.patch \ 1126 %D%/packages/patches/dkimproxy-add-ipv6-support.patch \
1127 %D%/packages/patches/docbook-xsl-nonrecursive-string-subst.patch \
1128 %D%/packages/patches/docbook-xsl-support-old-url.patch \
1129 %D%/packages/patches/doc++-include-directives.patch \ 1127 %D%/packages/patches/doc++-include-directives.patch \
1130 %D%/packages/patches/doc++-segfault-fix.patch \ 1128 %D%/packages/patches/doc++-segfault-fix.patch \
1131 %D%/packages/patches/dovecot-opensslv3.patch \ 1129 %D%/packages/patches/dovecot-opensslv3.patch \
diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm
index 3e4f0607bb0..f310b8f7b8e 100644
--- a/gnu/packages/docbook.scm
+++ b/gnu/packages/docbook.scm
@@ -47,7 +47,6 @@
47 #:use-module (guix git-download) 47 #:use-module (guix git-download)
48 #:use-module (guix build-system copy) 48 #:use-module (guix build-system copy)
49 #:use-module (guix build-system gnu) 49 #:use-module (guix build-system gnu)
50 #:use-module (guix build-system trivial)
51 #:use-module (guix build-system python)) 50 #:use-module (guix build-system python))
52 51
53;; The fetch-plan, install-plan and phases for docbook-xml tend to vary 52;; The fetch-plan, install-plan and phases for docbook-xml tend to vary
diff --git a/gnu/packages/moreutils.scm b/gnu/packages/moreutils.scm
index b1162d10782..0a1d1cac230 100644
--- a/gnu/packages/moreutils.scm
+++ b/gnu/packages/moreutils.scm
@@ -71,7 +71,7 @@
71 ;; For building the manual pages. 71 ;; For building the manual pages.
72 (native-inputs 72 (native-inputs
73 (list docbook-xml-4.4 73 (list docbook-xml-4.4
74 docbook-xsl ;without -next, man pages are corrupted 74 docbook-xsl
75 libxml2 75 libxml2
76 libxslt)) 76 libxslt))
77 (home-page "https://joeyh.name/code/moreutils/") 77 (home-page "https://joeyh.name/code/moreutils/")
diff --git a/gnu/packages/patches/docbook-xsl-nonrecursive-string-subst.patch b/gnu/packages/patches/docbook-xsl-nonrecursive-string-subst.patch
deleted file mode 100644
index fed4b76429e..00000000000
--- a/gnu/packages/patches/docbook-xsl-nonrecursive-string-subst.patch
+++ /dev/null
@@ -1,40 +0,0 @@
1Use a non-recursive replace function when the parser supports it.
2
3https://bugs.gnu.org/29782
4https://bugzilla.samba.org/show_bug.cgi?id=9515
5https://bugzilla.gnome.org/show_bug.cgi?id=736077 (for xsltproc)
6
7Patch copied from Debian:
8https://salsa.debian.org/debian/docbook-xsl/-/blob/master/debian/patches/765567_non-recursive_string_subst.patch
9
10Description: use EXSLT "replace" function when available
11 A recursive implementation of string.subst is problematic,
12 long strings with many matches will cause stack overflows.
13Author: Peter De Wachter <pdewacht@gmail.com>
14Bug-Debian: https://bugs.debian.org/750593
15
16--- a/lib/lib.xsl
17+++ b/lib/lib.xsl
18@@ -6,7 +6,11 @@
19
20 This module implements DTD-independent functions
21
22- ******************************************************************** --><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
23+ ******************************************************************** -->
24+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
25+ xmlns:str="http://exslt.org/strings"
26+ exclude-result-prefixes="str"
27+ version="1.0">
28
29 <xsl:template name="dot.count">
30 <!-- Returns the number of "." characters in a string -->
31@@ -52,6 +56,9 @@
32 <xsl:param name="replacement"/>
33
34 <xsl:choose>
35+ <xsl:when test="function-available('str:replace')">
36+ <xsl:value-of select="str:replace($string, string($target), string($replacement))"/>
37+ </xsl:when>
38 <xsl:when test="contains($string, $target)">
39 <xsl:variable name="rest">
40 <xsl:call-template name="string.subst">
diff --git a/gnu/packages/patches/docbook-xsl-support-old-url.patch b/gnu/packages/patches/docbook-xsl-support-old-url.patch
deleted file mode 100644
index 5b7dda458f7..00000000000
--- a/gnu/packages/patches/docbook-xsl-support-old-url.patch
+++ /dev/null
@@ -1,17 +0,0 @@
1Docbook 1.79.2 makes very few changes apart from changing the canonical URL
2to cdn.docbook.org. This patch adds support for the previous URL to avoid
3breaking packages that still use that.
4
5Adapted from Debian:
6https://salsa.debian.org/debian/docbook-xsl/-/blob/master/debian/patches/0005-catalog.xml-Compatibility-with-1.79.1-or-earlier.patch
7
8--- a/catalog.xml
9+++ b/catalog.xml
10@@ -5,4 +5,7 @@
11 <rewriteSystem systemIdStartString="http://cdn.docbook.org/release/xsl/current/" rewritePrefix="./"/>
12 <rewriteURI uriStartString="http://cdn.docbook.org/release/xsl/1.79.2/" rewritePrefix="./"/>
13 <rewriteSystem systemIdStartString="http://cdn.docbook.org/release/xsl/1.79.2/" rewritePrefix="./"/>
14+ <!-- Also support old URI of v1.79.1 or earlier -->
15+ <rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl/current/" rewritePrefix="./"/>
16+ <rewriteSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl/current/" rewritePrefix="./"/>
17 </catalog>