NetBSD Problem Report #19890
Received: (qmail 14528 invoked by uid 605); 17 Jan 2003 15:34:57 -0000
Message-Id: <20030117153011.EA71B479@compaq.cms.tecmath.com>
Date: Fri, 17 Jan 2003 16:30:11 +0100 (CET)
From: joachim@cms.tecmath.com
Sender: gnats-bugs-owner@netbsd.org
Reply-To: joachim@cms.tecmath.com
To: gnats-bugs@gnats.netbsd.org
Subject: catalog file of docbook-xml package not suitable for xsltproc
X-Send-Pr-Version: 3.95
>Number: 19890
>Category: pkg
>Synopsis: catalog file of docbook-xml package not suitable for xsltproc
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: jmmv
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Jan 17 15:35:01 +0000 2003
>Closed-Date: Sat Jan 18 09:45:23 +0000 2003
>Last-Modified: Sat Jan 18 09:45:23 +0000 2003
>Originator: Joachim Koenig-Baltes
>Release: NetBSD 1.6L
>Organization:
>Environment:
System: NetBSD compaq 1.6L NetBSD 1.6L (JOACHIM_ISDN) #0: Wed Jan 8 22:25:08 CET 2003 joachim@compaq:/usr/src/sys/arch/i386/compile/JOACHIM_ISDN i386
Architecture: i386
Machine: i386
>Description:
The docbook-xml package installs a catalog file for the public identifiers
by only grepping the lines beginning with "PUBLIC" from a catalog file
distributed with the xml version of the docbook dtd. This omits the system
identifiers, needed by some processing tools to get from the public to the
local identifiers.
>How-To-Repeat:
take the following test document as test.xml:
--------------------------------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
>
<book lang="en" id="test">
<title>Small docbook test doc</title>
<chapter id="intro">
<title>Introduction</title>
<para>
This document demonstrates a problem of the docbook xml catalog file
installed by the docbook-xml package of the netbsd package system,
together with the docbook xsl stylesheeets and xsltproc.
</para>
</chapter>
</book>
---------------------------------------------------------------------------
and try to use xsltproc from textproc/libxslt together with the docbook-xsl
style sheets to produce a formatting object file (for later transformation
to pdf with xmltex/passivetex):
% xsltproc --catalogs /usr/pkg/share/xsl/docbook/fo/docbook.xsl test.xml > test.fo
test.xml:4: warning: failed to load external entity "/usr/pkg/share/xml/docbook/PUBLIC"
>
^
Making portrait pages on USletter paper (8.5inx11in)
>Fix:
apply the following patch to textproc/docbook-xml/Makefile:
--- Makefile.orig Mon Jan 13 09:38:15 2003
+++ Makefile Fri Jan 17 16:26:20 2003
@@ -21,8 +21,7 @@
dbnotnx.mod dbpoolx.mod docbookx.dtd soextblx.dtd
MISCFILES= README
-do-build:
- ${GREP} '^PUBLIC' ${WRKSRC}/docbook.cat > ${WRKSRC}/catalog.docbook
+NO_BUILD= #
do-install:
${INSTALL_DATA_DIR} ${DTDDIR}
@@ -32,7 +31,7 @@
(cd ${WRKSRC}; ${INSTALL_DATA} ${MISCFILES} ${DTDDIR})
${PREFIX}/bin/xmlcatmgr -c ${PREFIX}/share/xml/catalog \
add "CATALOG" "${PREFIX}/share/xml/docbook/catalog"
- ${INSTALL_DATA} ${WRKSRC}/catalog.docbook ${DTDDIR}/catalog
+ ${INSTALL_DATA} ${WRKSRC}/docbook.cat ${DTDDIR}/catalog
.include "../../textproc/xmlcatmgr/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: pkg-manager->jmmv
Responsible-Changed-By: jmmv
Responsible-Changed-When: Fri Jan 17 12:17:18 PST 2003
Responsible-Changed-Why:
I'll handle this one.
From: Julio Merino <jmmv@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: pr/19890 CVS commit: pkgsrc/textproc/docbook-xml
Date: Sat, 18 Jan 2003 11:39:28 +0200 (EET)
Module Name: pkgsrc
Committed By: jmmv
Date: Sat Jan 18 09:39:28 UTC 2003
Modified Files:
pkgsrc/textproc/docbook-xml: Makefile
Log Message:
Do not remove system identifiers from Docbook's catalog file (i.e., install
it as it comes with the package). This way parsers can locate local files
when looking up entries. Reported in PR pkg/19890 by Joachim Koenig-Baltes.
Okay'ed by seb, the maintainer. Bump PKGREVISION to 3.
To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 pkgsrc/textproc/docbook-xml/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: jmmv
State-Changed-When: Sat Jan 18 01:43:54 PST 2003
State-Changed-Why:
I've fixed the package to install the catalog distributed with it.
Thanks for the PR!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.