Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37022 - x11-libs/gtk+-2.2.4-r1 fails to build
Summary: x11-libs/gtk+-2.2.4-r1 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-02 07:27 UTC by Sascha Silbe
Modified: 2004-01-10 20:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build script (gtk+-2.2.4-r1.script,544.93 KB, text/plain)
2004-01-02 07:28 UTC, Sascha Silbe
Details
/etc/xml/catalog (catalog,1.41 KB, text/plain)
2004-01-10 06:46 UTC, Sascha Silbe
Details
/etc/xml/docbook (docbook,8.20 KB, text/plain)
2004-01-10 06:47 UTC, Sascha Silbe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Silbe 2004-01-02 07:27:56 UTC
x11-libs/gtk+-2.2.4-r1 fails with the following message:

=== Begin ===
mkdir /var/tmp/portage/gtk+-2.2.4-r1/image/usr/share/gtk-doc/html/gdk-pixbuf
(installfiles=`echo ./html/*`; \
if test "$installfiles" = './html/*'; \
then echo '-- Nothing to install' ; \
else \
  for i in $installfiles; do \
    echo '-- Installing '$i ; \
    /bin/install -c -m 644 $i /var/tmp/portage/gtk+-2.2.4-r1/image//usr/share/gtk-doc/html/gdk-pixbuf; \
  done; \
  echo '-- Installing ./html/index.sgml' ; \
  /bin/install -c -m 644 ./html/index.sgml /var/tmp/portage/gtk+-2.2.4-r1/image//usr/share/gtk-doc/html/gdk-pixbuf; \
fi)
-- Installing ./html/home.png
-- Installing ./html/left.png
-- Installing ./html/right.png
-- Installing ./html/up.png
-- Installing ./html/index.sgml
/bin/install: cannot stat `./html/index.sgml': No such file or directory
make[4]: *** [install-data-local] Error 1
make[4]: Leaving directory `/tmp/portage/gtk+-2.2.4-r1/work/gtk+-2.2.4/docs/reference/gdk-pixbuf'
=== End ===



Reproducible: Always
Steps to Reproduce:
1. emerge -v --oneshot gtk+

Actual Results:  
See attached build script.


Expected Results:  
Build gtk+-2.2.4-r1.



/usr/portage/packages
Gentoo Base System version 1.4.3.10p1
Portage 2.0.50_pre9 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.22-cube-2)
=================================================================
System uname: 2.4.22-cube-2 i686 AMD Athlon(tm) processor
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.57-r1
Automake: sys-devel/automake-1.7.5-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium -mcpu=athlon-tbird -O3 -pipe"
CHOST="i586-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/vice/etc /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/afs/modload /etc/gconf /etc/make.globals /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://hybrid.sascha.silbe.org/gentoo-portage"
USE="3dnow X acl afs apm avi berkdb cdr crypt dga doc dvd encode foomaticdb gdbm gif gtk gtk2 gtkhtml guile hbci imap imlib ipv6 j-noaim j-nomsn j-noyahoo jpeg kde krb4 lcms libg++ libwww mad maildir mbox mikmod mmx monitor mozilla mpeg mysql nas ncurses nls oggvorbis opengl oss pam pdflib png postgres python qt qtmt quicktime readline samba sdl skey spell ssl tetex tiff truetype x86 xml xml2 xv zlib linguas_en,de"
Comment 1 Sascha Silbe 2004-01-02 07:28:53 UTC
Created attachment 23017 [details]
build script
Comment 2 Mike Gardiner (RETIRED) gentoo-dev 2004-01-02 19:18:47 UTC
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"

It's an xsl-stylesheets problem, it's that damn build-docbook-catalogs script I bet.

Can you either post your /etc/xml/catalog and /etc/xml/docbook files and I'll look at them, or for a fix you can do the following:

rm /etc/xml/{docbook,catalog}
emerge libxml2
emerge docbook-xsl-stylesheets =docbook-xml-dtd-4.1.2-r4 =docbook-xml-dtd-4.2

That should recreate the catalogs (hopefully) with the correct references.
Comment 3 Mike Gardiner (RETIRED) gentoo-dev 2004-01-10 05:10:22 UTC
Reporter ping, or else I'll close this as invalid ? Did that fix the problem for you ?
Comment 4 Sascha Silbe 2004-01-10 06:46:16 UTC
Sorry, was on vacation this week. Will attach both requested files now.

Comment 5 Sascha Silbe 2004-01-10 06:46:51 UTC
Created attachment 23540 [details]
/etc/xml/catalog
Comment 6 Sascha Silbe 2004-01-10 06:47:13 UTC
Created attachment 23541 [details]
/etc/xml/docbook
Comment 7 Mike Gardiner (RETIRED) gentoo-dev 2004-01-10 06:54:34 UTC
Sorry, what version of xsl-stylesheets as well ?

The 'fix' I mentioned previously:

rm /etc/xml/{docbook,catalog}
emerge libxml2
emerge docbook-xsl-stylesheets =docbook-xml-dtd-4.1.2-r4 =docbook-xml-dtd-4.2

is still the way to go. Don't worry, your catalogs will be remade, and you won't lose things, just the references will be correct after remaking them from scratch.
Comment 8 Sascha Silbe 2004-01-10 06:55:55 UTC
sascha@cube:~$ qpkg -I -v xsl-stylesheets
app-text/docbook-xsl-stylesheets-1.62.0-r1 *

I'll try your workaround now.

Comment 9 Sascha Silbe 2004-01-10 20:30:55 UTC
OK, using your workaround I could successfully build gtk. Thanks!
Anyway, this bug should be hunted down. What exactly was the problem and what could have introduced it?

Comment 10 Mike Gardiner (RETIRED) gentoo-dev 2004-01-10 20:39:25 UTC
What happened was, at some stage you installed xsl-stylesheets, and xml-dtd. The xml-dtd includes a bash script to generate the catalogs in /etc/xml. The xml-dtd script adds in entries for the stylesheets, and links them to a specific versioned directory. When you upgrade stylesheets, the references in /etc/xml/catalog are removed, and readded for the new version. However, the entries placed in docbook by the xml-dtd script _dont_ get updated, and still point to the old directory. Because the new stylesheet references were _readded_ to /etc/xml/catalog, they come after the script references.

So applications go /etc/xml/catalog -> (oo, found a reference to stylesheets, but tells me to look in /etc/xml/docbook for details) -> check /etc/xml/docbook -> find a reference to stylesheets, but pointing to the wrong versioned directory! -> app error.

I've done the research, I'm just perfecting the fix now.

Thanks for your report back.
Comment 11 Sascha Silbe 2004-01-10 20:40:52 UTC
Wonderful, thanks!