#1000816 docbook2x: xmlAddEntity: invalid redeclaration of predefined entity

Package:
docbook2x
Source:
docbook2x
Description:
Converts DocBook/XML documents into man pages and TeXinfo
Submitter:
Vincent Lefevre
Date:
2026-01-10 11:39:08 UTC
Severity:
normal
Tags:
#1000816#5
Date:
2021-11-29 15:49:09 UTC
From:
To:
Consider as a simple testcase test.xml:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<book/>

I get:

$ /usr/bin/docbook2x-texi test.xml
error : xmlAddEntity: invalid redeclaration of predefined entity
[...]

"xmllint --loaddtd --valid test.xml" does not show any redeclaration
of predefined entity issue. So this seems to come from docbook2x-texi.

#1000816#12
Date:
2025-02-24 23:24:37 UTC
From:
To:
Hi!

TL;DR the warning output is from libxml2 and the issue is caused by
content of file /usr/share/docbook2X/xslt/common/text/l10n-set.xml
that is indeed part of package docbook2x.

I have filed a report for this upstream with both a detailed analysis
and a patch at https://sourceforge.net/p/docbook2x/bugs/25/ .

I have pushed that very patch in Gentoo just now. Would be cool to
stop seeing that warning again and again also in Debian and Ubuntu.
Thank you!

Best, Sebastian

#1000816#21
Date:
2026-01-10 10:08:08 UTC
From:
To:
Es gibt eine Familienspende in Höhe von 1.850.000,00 USD von Cheng Charlie
Saephan. Bitte antworten Sie für weitere Informationen. Denken Sie daran,
Ihrer Familie und den Bedürftigen in Ihrer Umgebung Gutes zu tun.

Dies ist bereits der zweite Versuch, Sie zu erreichen. Bitte antworten Sie
für weitere Details.