Subject: pkg/29789: textproc/docbook-xml fails to install correctly
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Chris Gilbert <chris@dokein.co.uk>
List: pkgsrc-bugs
Date: 03/25/2005 01:12:00
>Number: 29789
>Category: pkg
>Synopsis: docbook-xml fails to install, causing other packages to also fail.
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Mar 25 01:12:00 +0000 2005
>Originator: Chris Gilbert <chris@dokein.co.uk>
>Release: NetBSD 2.0.1
>Organization:
>Environment:
System: NetBSD indy.dokein.co.uk 2.0.1 NetBSD 2.0.1 (INDY) #2: Sat Mar 12 22:10:26 GMT 2005 chris@indy.dokein.co.uk:/extra/obj/2.0/i386/sys/arch/i386/compile/INDY i386
Architecture: i386
Machine: i386
>Description:
After the switch to always use BUILDLINK3, it appears that docbook-xml fails to install correctly:
===> Installing for docbook-xml-4.2nb6
install -d -o root -g wheel -m 755 /usr/pkg/share/xml/docbook
install -d -o root -g wheel -m 755 /usr/pkg/share/xml/docbook/ent
(cd /extra/obj/pkgsrc/textproc/docbook-xml/work.indy; install -c -o root -g wheel -m444 calstblx.dtd dbcentx.mod dbgenent.mod dbhierx.mod dbnotnx.mod dbpoolx.mod docbookx.dtd soextblx.dtd /usr/pkg/share/xml/docbook)
(cd /extra/obj/pkgsrc/textproc/docbook-xml/work.indy/ent; install -c -o root -g wheel -m 444 *.ent /usr/pkg/share/xml/docbook/ent)
(cd /extra/obj/pkgsrc/textproc/docbook-xml/work.indy; install -c -o root -g wheel -m 444 README /usr/pkg/share/xml/docbook)
install -c -o root -g wheel -m 444 /extra/obj/pkgsrc/textproc/docbook-xml/work.indy/catalog.xml /usr/pkg/share/xml/docbook/catalog
/extra/obj/pkgsrc/textproc/docbook-xml/work.indy/.pkgdb/+INSTALL: /bin/xmlcatmgr: not found
Note the last line, /bin/xmlcatmgr not found.
More digging shows that BUILDLINK_PREFIX.xmlcatmgr isn't setup correctly, so XMLCATMGR isn't set correctly. IE:
> make show-var VARNAME=XMLCATMGR
/bin/xmlcatmgr
> make show-var VARNAME=BUILDLINK_PREFIX.xmlcatmgr
>
This eventually causes other packages to fail, eg gtk-doc, as they can't find xml related catalogues.
>How-To-Repeat:
make install in pkgsrc/textproc/docbook-xml
>Fix:
Not sure, I think mk/buildlink3/bsd.buildlink3.mk isn't getting included, so BUILDLINK_PREFIX isn't setup.
>Unformatted: