summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/docbook2x-entity-lt.patch
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim@guixotic.coop>2025-06-26 11:11:45 +0900
committerAndreas Enge <andreas@enge.fr>2025-07-18 20:17:36 +0200
commitf9df228dbde7e9b85b13721d33054481d66f0488 (patch)
tree4f470a786d33cc2e892f2390623c60cb33e8e50d /gnu/packages/patches/docbook2x-entity-lt.patch
parent1465addb96e5e98b3109e08746f7478e761171df (diff)
gnu: docbook2x: Fix invalid lt entity re-declaration.
This bug would cause multiple errors when building the documentation of Git, for example, like: error : xmlAddEntity: invalid redeclaration of predefined entity * gnu/packages/patches/docbook2x-entity-lt.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/docbook.scm (docbook2x) [source]: Apply it. Change-Id: I8d2e694ff4b97a1016644d3525b2cddb1b85f12d
Diffstat (limited to 'gnu/packages/patches/docbook2x-entity-lt.patch')
-rw-r--r--gnu/packages/patches/docbook2x-entity-lt.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/gnu/packages/patches/docbook2x-entity-lt.patch b/gnu/packages/patches/docbook2x-entity-lt.patch
new file mode 100644
index 0000000000..74aa14a00f
--- /dev/null
+++ b/gnu/packages/patches/docbook2x-entity-lt.patch
@@ -0,0 +1,44 @@
+Upstream-status: https://sourceforge.net/p/docbook2x/bugs/25/
+
+From 040f468fcfae3fe67818023ebc54f3f48fc1bfd9 Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Mon, 24 Feb 2025 23:25:40 +0100
+Subject: [PATCH] Fix invalid redeclaration of predefined XML entity "&lt;"
+
+Section "4.6 Predefined Entities" of XML 1.0r4 is clear that:
+
+> If the entities lt or amp are declared, they MUST be declared
+> as internal entities whose replacement text is a character reference
+> to the respective character (less-than sign or ampersand) being escaped[.]
+
+Source:
+https://www.w3.org/TR/2006/REC-xml-20060816/#sec-predefined-ent
+---
+ xslt/common/text/l10n-set.xml | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/xslt/common/text/l10n-set.xml b/xslt/common/text/l10n-set.xml
+index 0ed7454..b2c334b 100644
+--- a/xslt/common/text/l10n-set.xml
++++ b/xslt/common/text/l10n-set.xml
+@@ -21,7 +21,7 @@
+ <!ENTITY it SYSTEM "it.xml">
+ <!ENTITY ja SYSTEM "ja.xml">
+ <!ENTITY ko SYSTEM "ko.xml">
+-<!ENTITY lt SYSTEM "lt.xml">
++<!ENTITY lt_ SYSTEM "lt.xml">
+ <!ENTITY nl SYSTEM "nl.xml">
+ <!ENTITY nn SYSTEM "nn.xml">
+ <!ENTITY no SYSTEM "no.xml">
+@@ -65,7 +65,7 @@
+ &it;
+ &ja;
+ &ko;
+-&lt;
++&lt_;
+ &nl;
+ &nn;
+ &no;
+--
+2.48.1
+