NetBSD Problem Report #20339
Received: (qmail 5340 invoked by uid 605); 14 Feb 2003 15:54:09 -0000
Message-Id: <20030214155329.4C0A53D5@compaq.cms.tecmath.com>
Date: Fri, 14 Feb 2003 16:53:29 +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: textproc/docbook installs uncomplete catalog for version 4.2
X-Send-Pr-Version: 3.95
>Number: 20339
>Category: pkg
>Synopsis: textproc/docbook installs uncomplete catalog for version 4.2
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Feb 14 15:55:00 +0000 2003
>Closed-Date: Sat Mar 22 10:32:15 +0000 2003
>Last-Modified: Sat Mar 22 10:33:00 +0000 2003
>Originator: Joachim Koenig-Baltes
>Release: NetBSD 1.6N
>Organization:
>Environment:
System: NetBSD compaq 1.6N NetBSD 1.6N (JOACHIM_ISDN) #0: Mon Feb 3 11:36:17 CET 2003 joachim@compaq:/usr/src/sys/arch/i386/compile/JOACHIM_ISDN i386
Architecture: i386
Machine: i386
>Description:
textproc/docbook installs SGML catalog files for the DTD files for supporting
tools to get from public to system identifiers. The installation rules work
correct for the catalogs up to and including version 4.1, but fail for version
4.2, because the information in the latter case is split over two successive
lines and so a simple egrep does not catch all the required information
>How-To-Repeat:
% cd /usr/pkgsrc/textbrok/docbook
% make install
% jade <some sgml file>
and see it fail on parsing /usr/pkg/share/sgml/docbook/4.2/catalog
>Fix:
The following patch also includes the adjacent line of the original catalog
file and removes '--'-lines, added by egrep for the -A option by an additional
egrep. This is not very NetBSD-ic, but works on NetBSD, don't know about the
availability for other OSs such as SunOS and Linux.
--- Makefile.orig 2003-02-14 16:29:28.000000000 +0100
+++ Makefile 2003-02-14 16:30:22.000000000 +0100
@@ -87,7 +87,7 @@
# 4.2:
#
@(cd ${INSTDIR}/4.2; unzip ${DISTDIR}/docbook-4.2.zip)
- @${EGREP} '^PUBLIC.*(DocBook|Table)' ${INSTDIR}/4.2/docbook.cat >${INSTDIR}/4.2/catalog
+ @${EGREP} -A 1 '^PUBLIC.*(DocBook|Table)' ${INSTDIR}/4.2/docbook.cat | ${EGREP} -v '^--' >${INSTDIR}/4.2/catalog
@${ECHO} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/4.2/catalog
@${CHMOD} ${SHAREMODE} ${INSTDIR}/4.2/*
#
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: jmmv
State-Changed-When: Sat Mar 22 02:31:47 PST 2003
State-Changed-Why:
Catalogs fixed, thanks for the PR.
From: Julio Merino <jmmv@netbsd.org>
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: pr/20339 CVS commit: pkgsrc/textproc/docbook
Date: Sat, 22 Mar 2003 12:31:08 +0200 (EET)
Module Name: pkgsrc
Committed By: jmmv
Date: Sat Mar 22 10:31:07 UTC 2003
Modified Files:
pkgsrc/textproc/docbook: Makefile
Added Files:
pkgsrc/textproc/docbook/files: catalog41 catalog42
Log Message:
Install sane catalog files for DocBook 4.1 and 4.2. Closes PR pkg/20339 by
Joachim Koenig-Baltes. Bump PKGREVISION to 3.
Also fix trailing whitespace to make pkglint happy.
To generate a diff of this commit:
cvs rdiff -r1.20 -r1.21 pkgsrc/textproc/docbook/Makefile
cvs rdiff -r0 -r1.1 pkgsrc/textproc/docbook/files/catalog41 \
pkgsrc/textproc/docbook/files/catalog42
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>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.