First error: It uses the depreciated head -1 and head -2. Second error: config.status: executing depfiles commands make all-am make[1]: Entering directory `/var/tmp/portage/xmlto-0.0.15/work/xmlto-0.0.15' 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 ) 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 ) head: `-1' option is obsolete; use `-n 1' Try `head --help' for more information. head: `-1' option is obsolete; use `-n 1' Try `head --help' for more information. head: `-2' option is obsolete; use `-n 2' Try `head --help' for more information. head: `-2' option is obsolete; use `-n 2' Try `head --help' for more information. 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.YDm38j 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.rJSDul line 4 element import xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl head: `-1' option is obsolete; use `-n 1' Try `head --help' for more information. head: `-1' option is obsolete; use `-n 1' Try `head --help' for more information. head: `-2' option is obsolete; use `-n 2' Try `head --help' for more information. head: `-2' option is obsolete; use `-n 2' Try `head --help' for more information. 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.68nf7E 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.0lzoyB 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]: *** Waiting for unfinished jobs.... cat: FAQ: No such file or directory make[1]: *** [man/man1/xmlif.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 24, Exitcode 2 !!! (no error message) ------- Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.1, glibc-2.3.2-r6, 2.4.21-pfeifer-r1_pre4) ================================================================= System uname: 2.4.21-pfeifer-r1_pre4 i686 AMD Athlon(tm) Processor Gentoo Base System version 1.4.3.11 distcc 2.11.2 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox usersandbox cvs userpriv distcc ccache" GENTOO_MIRRORS="ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://gentoo.noved.org/ ftp://gentoo.noved.org/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="cvs://lisa@cvs.gentoo.org:/home/cvsroot" USE="x86 oss apm foomaticdb libg++ mad mikmod nls pdflib quicktime gtkhtml gdbm berkdb slang readline tetex bonobo guile sdl gpm libwww ssl python imlib motif -arts 3dnow aalib acl avi cdr crypt cups curl dga directfb doc dvd encode alsa -esd ethereal evo flash freetds gd gif gnome gphoto2 gtk ipv6 jpeg -kde -java lcms maildir mbox memlimit mmx mpeg -mozilla mysql ncurses oggvorbis opengl pam pda -pcmcia perl png qt samba sasl spell svga truetype tcpd tcltk X xml xml2 xmms xv zlib ldap gtk2"
the docbook-xsl-stylesheets de has been updated to 1.62.0 which includes the manpage stylesheets, and ive committed a patch for xmlto to use head -n X instead of head -X. please report on success, thanks.
I have the latest docbook-xsl-stylesheets: # /usr/lib/portage/bin/pkglist | grep docbook-xsl-stylesheets app-text/docbook-xsl-stylesheets-1.62.0 I still get the error, though: ... 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.UGOLnG 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.Sz6fNH 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.CbRmnB 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.s2EAlA 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]: *** Waiting for unfinished jobs.... cat: FAQ: No such file or directory make[1]: *** [man/man1/xmlif.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 30, Exitcode 2 !!! (no error message)
does qpkg -l docbook-xsl-stylesheets | grep "manpages" show some output ? could you also attach /etc/xml/catalog and /etc/xml/docbook. If docbook-xsl-stylesheets was installed correctly it definitely rewrites "http://docbook.sourceforge.net/release/current" to the local URI.
# qpkg -l docbook-xsl-stylesheets | grep manpages | wc -l 0 No mention of manpages in there. Funny story: I re-emerged docboox-xsl-stylesheets, no changes, and lo! I have manpages in the qpkg -l. And now xmlto emerges fine, although I do get this warning: /var/tmp/portage/xmlto-0.0.15/work/xmlto-0.0.15/./doc/xmlif.xml:4: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"> But it carries on and works out just dandy. Thanks.
I also solved this issue by re-emerging docbook-xsl-stylesheets. After I did that, xmkto emerged without a warning. It is possible that the last time I merged docbook-xsl-stylesheets, I did not have the "doc" USE var set, but I know I did when I merged it this time.
we all fixed here ? the stylesheets dependency should be for 1.62.0 which includes the manpages, and i've applied a patch to fix the head issue. anything else outstanding ?
For some reason, all the installations of docbook-xsl-stylesheets that I can see do not have the manpage stylesheets included, although it seems that simply re-emerging the package fixes this. There is no version change, but a reinstall works. If you look in CVS for the docbook-xsl-stylesheets ebuild, you'll see that revision 1.3 took out the comment "manpages are excluded here because they arent fully supported", and added 'manpages' in to the for-loop: http://www.gentoo.org/cgi-bin/viewcvs.cgi/app-text/docbook-xsl-stylesheets/docbook-xsl-stylesheets-1.62.0.ebuild.diff?r1=text&tr1=1.2&r2=text&tr2=1.3&diff_format=h This really should have been a version bump, because anybody who had already installed docbook-xsl-stylesheets would not have had the manpage extensions. Any of them who want to install xmlto in the future will have this same problem. Perhaps give docbook-xsl-stylesheets a version bump, to force a reinstall, to make sure that the manpage stylesheets are there?
I know about that, because I made the comments :) This is the first thing that's actually required the manpage stylesheets, and I've been trying to decide whether to revision bump the stylesheets. That, revision and manpages aside, does xmlto emerge and work for you ?
stylesheets revision bumped, new version of xsl-stylesheets added and we should be done. thanks for the feedback here.
Cool, all seems working now ;-) Cheers, -Jonathan
bad news: I did an emerge sync a few minutes ago and then did an 'emerge -upD world'. xmlto was marked as a new package. 'emerge -uD world' failed with the same problem in xmlto: ... 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.4j7q3T 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.qIwFJx line 4 element import xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl cat: FAQ: Onbekend bestand of map make[1]: *** [man/man1/xmlto.1] Fout 1 make[1]: Leaving directory `/var/tmp/portage/xmlto-0.0.15/work/xmlto-0.0.15' make: *** [all] Fout 2 !!! ERROR: app-text/xmlto-0.0.15 failed. !!! Function src_compile, Line 35, Exitcode 2 !!! (no error message)
Either you've manually removed xsl-stylesheets (unlikely) or you have broken catalogs. A quick fix for the latter is rm /etc/xml/{docbook,catalog} emerge libxml2 emerge docbook-xsl-stylesheets =docbook-xml-dtd-4.1.2* =docbook-xml-dtd-4.2 That should get the catalogs back into the right state, after which you can remerge xmlto. Sorry, it's an odd user side thing, some people end up with their catalogs broken unfortunately.