Bug#1010134: Bug#1003933: w3c-sgml-lib: catalogs for MathML 2.0 are incomplete

Étienne Mollier <[email protected]> Mon, 25 Apr 2022 22:02:54 +0200
Newsgroups gmane.linux.debian.devel.sgml
Message-ID <Ymb+boA8KVzNIRZh__35107.8112072841$1650918450$gmane$org@fusion>
--AbWsqhFV7w+yxV4x
Content-Type: multipart/mixed; boundary="CxvWFwMKOX5OTHty"
Content-Disposition: inline


--CxvWFwMKOX5OTHty
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Control: tags 1010134 + patch

Hi Vincent,

Vincent Lefevre, on 2022-04-25:
> Thanks for the patch. I've rebuilt the w3c-sgml-lib package with it,
> and this seems to work.

Thanks as well for checking!

> The only issue is that when reinstalling the package, I get the
> following non-fatal errors:
>=20
> update-xmlcatalog: error: entity not registered
> update-xmlcatalog: error: entity not registered
> update-xmlcatalog: error: entity not registered
> update-xmlcatalog: error: entity not registered

Using the patch attached to make the error a bit more verbose,
I ended up with the following URI:

update-xmlcatalog: error: entity referred by "http://www.w3.org/TR/rdfa-syn=
tax/DTD/xhtml-rdfa-model-1.mod" not registered
update-xmlcatalog: error: entity referred by "http://www.w3.org/2003/entiti=
es/2007/htmlmathml-f.ent" not registered
update-xmlcatalog: error: entity referred by "http://www.w3.org/TR/rdfa-syn=
tax/DTD/xhtml-rdfa-model-1.mod" not registered
update-xmlcatalog: error: entity referred by "http://www.w3.org/2003/entiti=
es/2007/htmlmathml-f.ent" not registered

Those two have in common to be referenced by duplicate systemId
lines in the catalog:

$ nl htdocs/sgml-lib/catalog.xml | grep -C0 'htmlmathml-f.ent\|xhtml-rdfa-m=
odel-1.mod'
   253	  <public publicId=3D"-//W3C//ENTITIES XHTML+RDFa Document Model 1.0=
//EN" uri=3D"REC-rdfa-syntax-20081014/xhtml-rdfa-model-1.mod" />
   254	  <system systemId=3D"http://www.w3.org/TR/rdfa-syntax/DTD/xhtml-rdf=
a-model-1.mod" uri=3D"REC-rdfa-syntax-20081014/xhtml-rdfa-model-1.mod" />
   255	  <system systemId=3D"http://www.w3.org/TR/rdfa-syntax/DTD/xhtml-rdf=
a-model-1.mod" uri=3D"REC-rdfa-syntax-20081014/xhtml-rdfa-model-1.mod" />
--
   538	  <system systemId=3D"http://www.w3.org/2003/entities/2007/htmlmathm=
l-f.ent" uri=3D"REC-xml-entity-names-20100401/htmlmathml-f.ent" />
   539	  <system systemId=3D"http://www.w3.org/2003/entities/2007/htmlmathm=
l-f.ent" uri=3D"REC-xml-entity-names-20100401/htmlmathml-f.ent" />

I tried to deduplicate both lines just in case, but error
messages remained.  I don't know the root cause I'm afraid.

Any ways, in hope this helps,
--=20
=C3=89tienne Mollier <[email protected]>
Fingerprint:  8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
Sent from /dev/pts/5, please excuse my verbosity.
On air: H=C3=B8st - P=C3=A5 Sterke Vinger

--CxvWFwMKOX5OTHty
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: attachment;
	filename="update-xmlcatalog-entity-msg.patch"
Content-Transfer-Encoding: quoted-printable

--- xml-core-0.18+nmu2.orig/tools/update-xmlcatalog
+++ xml-core-0.18+nmu2/tools/update-xmlcatalog
@@ -460,7 +460,9 @@
     }
     else
     {
-	print STDERR "$name: error: entity not registered\n";
+	my $uri =3D $key;
+	$uri =3D~ s/[^"]*("[^"]*")/\1/;
+	print STDERR "$name: error: entity referred by $uri not registered\n";
 	return;
     }
=20

--CxvWFwMKOX5OTHty--

--AbWsqhFV7w+yxV4x
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEj5GyJ8fW8rGUjII2eTz2fo8NEdoFAmJm/m4ACgkQeTz2fo8N
EdqWbw//a859ZDlW1EoNDDD0JJIda/ku+ufC0Llt8Vla4jlKW1wkq8Lu7cr1Tizj
C2TXxKaSuanrAALqZjwcGzl84XXqY+fzE6jZqzk5FZDBOmmcwJ4gieolqED+Jefz
B42ygz46CHKurXftuyBfmrn2gR5zd8tTUVs1nRTfT5Ym36WzLwNWqTCIbaNeSQ9M
55N95okNUDwvr1ZADdv5yq420bHWuNL295/8caqs3NZAqKWLFJZsc2Bp9c/QdFQR
AXlPhuT7J0H8o30f0Y9EPPzkx2imLGdnnt/8riUL+JyzfcSGbob3y1g8VE9420KS
w4BeOc8j+fxRNPdbC1nqsTlemsz56ctGFa3apgWRZWQGffkMBF2P1e+eZqh6nvsr
JX8wlYdcHaKlZIJsrZgNmYLPVLsS0m1RWsS5I4rC2fOS68FrjCT5TzvriBcs9DBi
ulCDmgrEYxoXqPPnyJ/9Dtq33/9OXXvnWhRHTYadOycR4Z6dxZTRWKlnZPa1rERE
Q5jMs+E8r/lqbZRJFdAR95sigGngipSykpY2PqAQlzr31ewVGiI7ld8ZAxWMBy0K
x3q7MjgVOdSPx91zY20/0Hw4WavJwR7etCD5D4wavn6tzL4bwQpLEsv9brscdkbh
QKGiiz0kdSAe3FQRddNaLsCmppI6V3FQM0cJWrNTtaAhahAVNUk=
=RVr7
-----END PGP SIGNATURE-----

--AbWsqhFV7w+yxV4x--