[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65479] [PATCH core-updates 06/61] gnu: docbook: Remove leftovers.
From: |
Bruno Victal |
Subject: |
[bug#65479] [PATCH core-updates 06/61] gnu: docbook: Remove leftovers. |
Date: |
Wed, 23 Aug 2023 23:34:58 +0100 |
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.
---
gnu/local.mk | 2 -
gnu/packages/docbook.scm | 1 -
gnu/packages/moreutils.scm | 2 +-
...ocbook-xsl-nonrecursive-string-subst.patch | 40 -------------------
.../patches/docbook-xsl-support-old-url.patch | 17 --------
5 files changed, 1 insertion(+), 61 deletions(-)
delete mode 100644
gnu/packages/patches/docbook-xsl-nonrecursive-string-subst.patch
delete mode 100644 gnu/packages/patches/docbook-xsl-support-old-url.patch
diff --git a/gnu/local.mk b/gnu/local.mk
index 6dcacd3d6e..b229b21603 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1063,8 +1063,6 @@ dist_patch_DATA =
\
%D%/packages/patches/diffutils-fix-signal-processing.patch \
%D%/packages/patches/directfb-davinci-glibc-228-compat.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/dovecot-opensslv3.patch \
diff --git a/gnu/packages/docbook.scm b/gnu/packages/docbook.scm
index 83a5496a0e..47d3a04479 100644
--- a/gnu/packages/docbook.scm
+++ b/gnu/packages/docbook.scm
@@ -47,7 +47,6 @@ (define-module (gnu packages docbook)
#:use-module (guix git-download)
#:use-module (guix build-system copy)
#:use-module (guix build-system gnu)
- #:use-module (guix build-system trivial)
#:use-module (guix build-system python))
;; 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 d219c78d4f..d7f4a8522a 100644
--- a/gnu/packages/moreutils.scm
+++ b/gnu/packages/moreutils.scm
@@ -71,7 +71,7 @@ (define-public moreutils
;; For building the manual pages.
(native-inputs
(list docbook-xml-4.4
- docbook-xsl ;without -next, man pages are corrupted
+ docbook-xsl
libxml2
libxslt))
(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 fed4b76429..0000000000
--- a/gnu/packages/patches/docbook-xsl-nonrecursive-string-subst.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-Use a non-recursive replace function when the parser supports it.
-
-https://bugs.gnu.org/29782
-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://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,
- long strings with many matches will cause stack overflows.
-Author: Peter De Wachter <pdewacht@gmail.com>
-Bug-Debian: https://bugs.debian.org/750593
-
---- a/lib/lib.xsl
-+++ b/lib/lib.xsl
-@@ -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"
-+ xmlns:str="http://exslt.org/strings"
-+ exclude-result-prefixes="str"
-+ version="1.0">
-
- <xsl:template name="dot.count">
- <!-- Returns the number of "." characters in a string -->
-@@ -52,6 +56,9 @@
- <xsl:param name="replacement"/>
-
- <xsl:choose>
-+ <xsl:when test="function-available('str:replace')">
-+ <xsl:value-of select="str:replace($string, string($target),
string($replacement))"/>
-+ </xsl:when>
- <xsl:when test="contains($string, $target)">
- <xsl:variable name="rest">
- <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 5b7dda458f..0000000000
--- a/gnu/packages/patches/docbook-xsl-support-old-url.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-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>
--
2.40.1
- [bug#65479] [PATCH core-updates 10/61] gnu: docbook2x: Split documentation., (continued)
- [bug#65479] [PATCH core-updates 10/61] gnu: docbook2x: Split documentation., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 07/61] gnu: docbook-utils: Import patches from debian., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 14/61] gnu: libxslt: Set search-paths for XML and SGML catalogs., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 19/61] gnu: lilypond: Use dblatex/stable., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 15/61] gnu: dblatex: Add libxslt native-search-paths to its own., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 40/61] gnu: sssd: Drop xmllint workaround., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 47/61] gnu: libnotify: Split documentation., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 13/61] gnu: libxml2: Add SGML_CATALOG_FILES to native-search-path., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 05/61] gnu: docbook-xsl: Add rewrite entries for http., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 09/61] gnu: docbook2x: Fix sgml2xml-isoent and add test dependencies., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 06/61] gnu: docbook: Remove leftovers.,
Bruno Victal <=
- [bug#65479] [PATCH core-updates 12/61] search-paths: Add $XML_CATALOG_FILES and $SGML_CATALOG_FILES., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 39/61] gnu: gnome-session: Remove libxml2., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 16/61] gnu: dblatex: Split documentation., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 18/61] gnu: dblatex: Fix missing texlive binaries., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 21/61] gnu: xmlto: Rewrite with G-Expressions., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 23/61] gnu: gtk-doc: Add libxslt native-search-paths to its own., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 25/61] gnu: secilc: Drop xmlto workaround., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 35/61] gnu: metapixel: Drop docbook workaround., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 46/61] gnu: libnotify: Drop docbook workarounds., Bruno Victal, 2023/08/23
- [bug#65479] [PATCH core-updates 49/61] gnu: alsa-utils: Rewrite with G-Expressions., Bruno Victal, 2023/08/23