The build-docbook-catalog-4.2 script in the files directory, is exactly the same as build-docbook-catalog-4.1.2. This script is designed to add the docbook entries to the general catalogs in /etc/xml. Of course, when installing 4.2 version, the script (which is called from the ebuild thanks to pkg_postinst()) tries to add entries of 4.1.2 files, which is incorrect, and may fail if 4.1.2 files aren't installed. I have rewritten the build-docbook-catalog-4.2 script to match the new docbook version. It seems to works properly, having or not 4.1.2/4.1.2-r3 installed. Reproducible: Always Steps to Reproduce: emerge the current app-text/docbook-xml-dtd-4.2, which is actually marked as unstable. Actual Results: look at the output, it may have this : >>> /usr/share/sgml/docbook/xml-dtd-4.2/calstblx.dtd find: /usr/share/xml: No such file or directory could not locate docbookx.dtd for DocBook XML >>> Regenerating /etc/ld.so.cache... Expected Results: >>> /usr/share/sgml/docbook/xml-dtd-4.2/calstblx.dtd Found DocBook XML 4.2 DTD in /usr/share/sgml/docbook/xml-dtd-4.2 Found ISO DocBook entities in /usr/share/sgml/docbook/xml-dtd-4.2/ent Found DocBook XSLT stylesheets in /usr/share/sgml/docbook/xsl-stylesheets-1.57.0 >>> Regenerating /etc/ld.so.cache... Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r2) ================================================================= System uname: 2.4.20-gentoo-r1 i686 AMD Athlon(tm) processor GENTOO_MIRRORS="ftp://gentoo.linux.no/pub/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb:/usr/kde/3.1/share/config:/usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss 3dnow avi crypt cups encode gif jpeg libg++ mmx mpeg ncurses nls pdflib png quicktime spell xml2 xmms xv zlib gdbm berkdb slang readline arts svga java X sdl gpm tcpd pam libwww ssl python imlib oggvorbis gtk qt kde motif opengl aalib acpi alsa -apm cdr dvd esd flash gd gtk2 -gnome imap lcms maildir mozilla mikmod perl sasl scanner tcltk tetex tiff truetype usb" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer -falign-functions=4 -fforce-addr -ffast-math -mmmx -m3dnow" CXXFLAGS="-march=athlon-tbird -O3 -pipe -fomit-frame-pointer -falign-functions=4 -fforce-addr -ffast-math -mmmx -m3dnow" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j4" AUTOCLEAN="yes" SYNC="rsync://rsync.de.gentoo.org" FEATURES="sandbox ccache distcc"
Created attachment 9525 [details] new build-docbook-catalog-4.2 script Here is the new build-docbook-catalog-4.2 script.
Just reporting that I had success with the fix, http://bugs.gentoo.org/attachment.cgi?id=9525&action=view Thanks.
okay, after i've had some recent investigations into docbook-xml-dtd i think this is valid, and we also need to version the build-docbook-catalog script, as the versions are slotted. cc'ing me.
Better fix is in bug 52725, which rewrites the build-docbook-catalog script to be version independent
As aron mentioned, this is fixed with his build-docbook-catalog script and bug #52725, so we're over there now.