Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 37797

Summary: updating system fails because of dependency xmlto-0.0.15
Product: Gentoo Linux Reporter: felix schmid <felix>
Component: New packagesAssignee: Text-Markup Team (OBSOLETE) <text-markup+disabled>
Status: RESOLVED FIXED    
Severity: normal CC: karl
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /etc/xml/catalog
/etc/xml/docbook
as requested...
as requested

Description felix schmid 2004-01-10 07:40:53 UTC
I am trying to do a emerge -uD. It keeps failing at xmlto.


Reproducible: Always
Steps to Reproduce:
1. emerge xmlto
2.
3.

Actual Results:  
# emerge xmlto
...
configure: creating ./config.status
config.status: creating Makefile
config.status: creating xmlto
config.status: creating xmlto.spec
config.status: creating config.h
config.status: executing depfiles commands
make  all-am
make[1]: Entering directory `/var/tmp/portage/xmlto-0.0.15/work/xmlto-0.0.15'
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -mcpu=athlon-xp -march=athlon-xp -O2 
-pipe -MT xmlif/xmlif.o -MD -MP -MF "xmlif/.deps/xmlif.Tpo" \
  -c -o xmlif/xmlif.o `test -f 'xmlif/xmlif.c' || echo './'`xmlif/xmlif.c; \
then mv -f "xmlif/.deps/xmlif.Tpo" "xmlif/.deps/xmlif.Po"; \
else rm -f "xmlif/.deps/xmlif.Tpo"; exit 1; \
fi
gcc  -mcpu=athlon-xp -march=athlon-xp -O2 -pipe   -o xmlif/xmlif  xmlif/xmlif.o  
for xml in xmlif.xml xmlto.xml; do \
  FORMAT_DIR=./format XSL_DIR=./xsl \
   bash ./xmlto man -o man/man1 ./doc/$xml ; \
done || ( RC=$?; cat FAQ; exit $RC )
warning: failed to load external entity "http://docbook.sourceforge.
net/release/xsl/current/manpages/docbook.xsl"
compilation error: file /var/tmp/portage/xmlto-0.0.15/temp/xmlto-xsl.aHK0Y0 line 
4 element import
xsl:import : unable to load http://docbook.sourceforge.
net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.
net/release/xsl/current/manpages/docbook.xsl"
compilation error: file /var/tmp/portage/xmlto-0.0.15/temp/xmlto-xsl.fhxRjm line 
4 element import
xsl:import : unable to load http://docbook.sourceforge.
net/release/xsl/current/manpages/docbook.xsl
cat: FAQ: No such file or directory
make[1]: *** [man/man1/xmlto.1] Error 1
make[1]: Leaving directory `/var/tmp/portage/xmlto-0.0.15/work/xmlto-0.0.15'
make: *** [all] Error 2

!!! ERROR: app-text/xmlto-0.0.15 failed.
!!! Function src_compile, Line 35, Exitcode 2
!!! (no error message)



Expected Results:  
clean install

hydra felix 511 (~): sudo emerge info
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.6.0-mm1)
=================================================================
System uname: 2.6.0-mm1 i686 AMD Athlon(tm) XP 2000+
Gentoo Base System version 1.4.3.10p1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/tomcat/conf /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/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-mcpu=athlon-xp -march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://mirrors.sec.informatik.
tu-darmstadt.de/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.
org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X alsa apache2 apm arts avi berkdb bonobo cdr crypt cups directfb doc 
encode esd ethereal fbcon foomaticdb gdbm gif gnome gpm gtk gtk2 gtkhtml imap 
imlib innodb java jpeg kde ldap libg++ libwww mad mikmod mmx motif mozilla mpeg 
mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt 
quicktime readline sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype 
usb x86 xml xml2 xmms xv zlib"
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2004-01-10 09:19:57 UTC
Have a look at Bug 33151 
Comment 2 Mike Gardiner (RETIRED) gentoo-dev 2004-01-10 17:52:49 UTC
The xsl-stylesheets dependency should be fixed in xmlto-0.0.15, please sync and remerge and let me know the results.
Comment 3 felix schmid 2004-01-10 21:06:01 UTC
Still fail :(


...
checking whether getopt handles long options... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating xmlto
config.status: creating xmlto.spec
config.status: creating config.h
config.status: executing depfiles commands
make  all-am
make[1]: Entering directory `/var/tmp/portage/xmlto-0.0.15/work/xmlto-0.0.15'
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -mcpu=athlon-xp -march=athlon-xp -O2 -pipe -MT xmlif/xmlif.o -MD -MP -MF "
xmlif/.deps/xmlif.Tpo" \
  -c -o xmlif/xmlif.o `test -f 'xmlif/xmlif.c' || echo './'`xmlif/xmlif.c; \
then mv -f "xmlif/.deps/xmlif.Tpo" "xmlif/.deps/xmlif.Po"; \
else rm -f "xmlif/.deps/xmlif.Tpo"; exit 1; \
fi
gcc  -mcpu=athlon-xp -march=athlon-xp -O2 -pipe   -o xmlif/xmlif  xmlif/xmlif.o  
for xml in xmlif.xml xmlto.xml; do \
  FORMAT_DIR=./format XSL_DIR=./xsl \
   bash ./xmlto man -o man/man1 ./doc/$xml ; \
done || ( RC=$?; cat FAQ; exit $RC )
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
compilation error: file /var/tmp/portage/xmlto-0.0.15/temp/xmlto-xsl.lsDbyQ line 4 element import
xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
compilation error: file /var/tmp/portage/xmlto-0.0.15/temp/xmlto-xsl.PeC0um line 4 element import
xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
cat: FAQ: No such file or directory
make[1]: *** [man/man1/xmlto.1] Error 1
make[1]: Leaving directory `/var/tmp/portage/xmlto-0.0.15/work/xmlto-0.0.15'
make: *** [all] Error 2

!!! ERROR: app-text/xmlto-0.0.15 failed.
!!! Function src_compile, Line 36, Exitcode 2
!!! (no error message)

Comment 4 Mike Gardiner (RETIRED) gentoo-dev 2004-01-10 21:44:27 UTC
output of qpkg -I -v xsl-stylesheets please ?
Comment 5 felix schmid 2004-01-11 07:50:05 UTC
hydra felix 501 (~): qpkg -I -v xsl-stylesheets
app-text/docbook-xsl-stylesheets-1.62.0-r1 *
Comment 6 Mike Gardiner (RETIRED) gentoo-dev 2004-01-11 15:37:42 UTC
*sigh* not another catalogs problem. please post /etc/xml/docbook and /etc/xml/catalog, thanks.
Comment 7 Ernst Herzberg 2004-01-11 18:01:53 UTC
Created attachment 23636 [details]
/etc/xml/catalog
Comment 8 Ernst Herzberg 2004-01-11 18:04:03 UTC
Created attachment 23639 [details]
/etc/xml/docbook

Still trying to understand bugzilla :-)
Comment 9 Ernst Herzberg 2004-01-11 18:09:10 UTC
Priority should be increased. If you USE="+doc" no installation or update is possible, even in the stable tree.
Comment 10 Mike Gardiner (RETIRED) gentoo-dev 2004-01-12 01:35:51 UTC
Sorry, Ernst, it's your catalogs that are broken. Look in /etc/xml/docbook, see all those references to xsl-stylesheets are pointing to yelp ? Not a good thing. It's not your fault, it's a scripts fault and yes I'm looking into it, it's my first pri atm.

Please 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

Gracias.
Comment 11 felix schmid 2004-01-12 02:40:11 UTC
Created attachment 23664 [details]
as requested...
Comment 12 felix schmid 2004-01-12 02:40:33 UTC
Created attachment 23665 [details]
as requested
Comment 13 Mike Gardiner (RETIRED) gentoo-dev 2004-01-14 04:33:03 UTC
Felix have you tried the fix/workaround I mentioned ? Your catalogs are broken it seems.
Comment 14 felix schmid 2004-01-14 12:25:34 UTC
It seems to work that way - xmlto disapeared as a dependency for emerge -uDp system..
Comment 15 felix schmid 2004-01-14 12:28:39 UTC
not cool...

I tried emerge xmlto (it's listed in emerge -uDp world):

checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for mktemp program... mktemp
checking for GNU find program... find
checking for bash... bash
checking for getopt program... getopt
checking whether getopt handles long options... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating xmlto
config.status: creating xmlto.spec
config.status: creating config.h
config.status: executing depfiles commands
make  all-am
make[1]: Entering directory `/var/tmp/portage/xmlto-0.0.15/work/xmlto-0.0.15'
if gcc -DHAVE_CONFIG_H -I. -I. -I.     -mcpu=athlon-xp -march=athlon-xp -O2 -pipe -MT xmlif/xmlif.o -MD -MP -MF "xmlif/.deps/xmlif.Tpo" \
  -c -o xmlif/xmlif.o `test -f 'xmlif/xmlif.c' || echo './'`xmlif/xmlif.c; \
then mv -f "xmlif/.deps/xmlif.Tpo" "xmlif/.deps/xmlif.Po"; \
else rm -f "xmlif/.deps/xmlif.Tpo"; exit 1; \
fi
gcc  -mcpu=athlon-xp -march=athlon-xp -O2 -pipe   -o xmlif/xmlif  xmlif/xmlif.o  
for xml in xmlif.xml xmlto.xml; do \
  FORMAT_DIR=./format XSL_DIR=./xsl \
   bash ./xmlto man -o man/man1 ./doc/$xml ; \
done || ( RC=$?; cat FAQ; exit $RC )
file:///etc/xml/catalog:1: parser error : Document is empty

^
file:///etc/xml/catalog:1: parser error : Start tag expected, '<' not found

^
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
compilation error: file /var/tmp/portage/xmlto-0.0.15/temp/xmlto-xsl.prVHnU line 4 element import
xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
file:///etc/xml/catalog:1: parser error : Document is empty

^
file:///etc/xml/catalog:1: parser error : Start tag expected, '<' not found

^
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
compilation error: file /var/tmp/portage/xmlto-0.0.15/temp/xmlto-xsl.t6XGxD line 4 element import
xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl
cat: FAQ: No such file or directory
make[1]: *** [man/man1/xmlto.1] Error 1
make[1]: Leaving directory `/var/tmp/portage/xmlto-0.0.15/work/xmlto-0.0.15'
make: *** [all] Error 2

!!! ERROR: app-text/xmlto-0.0.15 failed.
!!! Function src_compile, Line 36, Exitcode 2
!!! (no error message)


...more errors than before :((
 
Comment 16 Ernst Herzberg 2004-01-14 14:56:33 UTC
Now it works for me.

What i have done:

emerge sync

rm /etc/xml/{docbook,catalog}

emerge libxml2
emerge docbook-xml-dtd
emerge docbook-xsl-stylesheets [ebuild U 1.62.4 <== 1.62.0-r1]
emerge xmlto (emerges now without error)

catalog and docbook are small enough to include into this massage:

catalog:
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
  <rewriteSystem systemIdStartString="http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" rewritePrefix="/usr/share/sgml/docbook/xml-dtd-4.2/docbookx.dtd"/>
  <rewriteURI uriStartString="http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" rewritePrefix="/usr/share/sgml/docbook/xml-dtd-4.2/docbookx.dtd"/>
  <rewriteSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl/1.62.4" rewritePrefix="/usr/share/sgml/docbook/xsl-stylesheets-1.62.4"/>
  <rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl/1.62.4" rewritePrefix="/usr/share/sgml/docbook/xsl-stylesheets-1.62.4"/>
  <rewriteSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl/current" rewritePrefix="/usr/share/sgml/docbook/xsl-stylesheets-1.62.4"/>
  <rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl/current" rewritePrefix="/usr/share/sgml/docbook/xsl-stylesheets-1.62.4"/>
</catalog>

-----------------

docbook:

<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"/>

---------

Don't know if anything else is broken ;-)
Comment 17 Mike Gardiner (RETIRED) gentoo-dev 2004-01-14 15:42:47 UTC
Okay, Ersnt fixed, well done. Felix, is this post-workaround/fix that you're getting this manpage errors ? Something is definitely wrong if you've got 

file:///etc/xml/catalog:1: parser error : Document is empty

Please do as I said, and Ernst said, including the rm /etc/xml/{docbook,catalog} step.
Comment 18 felix schmid 2004-01-15 06:29:50 UTC
ok, following earny's steps worked out for me too. I emerged xmlto without any problems...solved.

Comment 19 Mike Gardiner (RETIRED) gentoo-dev 2004-01-15 06:34:03 UTC
yep, i know why we get these, i hope to fix it this weekend, no time until then. thanks for reporting back btw, makes things easier for us!