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 ) 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.UqywRg 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.Lb5Bii 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.QGANBE 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/xmlif.1] Error 1 make[1]: *** Waiting for unfinished jobs.... 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.ytNXOK 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 32, Exitcode 2 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 20531 [details, diff] xmlto-0.0.15-skip-validation.patch
Created attachment 20532 [details, diff] xmlto-0.0.15.ebuild.patch If the text-markup team doesn't mind, I can go ahead and fix this.
Thanks very much for the patch; worked a treat here (and building xmlto has proved impossible for me over the last few weeks, even when re-emerging docbook-xsl-stylesheets).
Aron, what version of docbook-xsl-stylesheets do you have installed ? Also, I've had no problems building with -j3.
docbook-xsl-stylesheets-1.62.4 Have you looked at what it's doing when built with -j3? It builds the same files multiple times because the build process is not parallel clean. Sure, it works most of the time, but what was the point again? ;-)
Created attachment 20670 [details] catalog at request of Obz
Obz, are you going to apply my patches? I just noticed they're not applied yet.
Sorry, forgot to push the commit button on the -j1 fix. That's 1 of them. The other one (catalog/docbook/stylesheets) is next.
Okay, I've looked through your catalog, and here's what (I think) is happening. We look through the catalog from top to bottom (or xsltproc does, that's what xmlto is using) and we get to these which are the first match: <delegateSystem systemIdStartString="http://docbook.sourceforge.net/release/xsl/" catalog="file:///etc/xml/docbook"/> <delegateURI uriStartString="http://docbook.sourceforge.net/release/xsl/" catalog="file:///etc/xml/docbook"/> Now the catalog we're after is http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl As you can see this matches the start string of the above delegate lines, so now we're referring to the catalog specified there (/etc/xml/docbook) If this new catalog (/etc/xml/docbook) doesnt list the xsl rewrites, then the processor (xsltproc in this case) will look at the internet to resolve the link (which we dont want! because we have it local). There are two things at fault here. The ordering of the entries in /etc/xml/catalog and the delegate{System,URI}'s that refer to the docbook catalog. So, here's what we need to do. Please check /etc/xml/docbook, there shouldnt be any xsl references in there. I don't know where those delegate{System,URI} entries have come from, I dont have them in mine locally, so please remove those two lines. This way, /etc/xml/catalog will correctly match the xsl stylesheets entries when it reaches <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"/> which is what we want. If I havent made this clear, please contact me on IRC and we can try to go over it. Finally, this brings me to your second patch, the skip-validation patch. While this may fix the symptom here, the real problem lies in the catalogs being incorrect, so I don't believe patching xmlto in this way is correct. Rather, we need to fix the catalogs. Thanks, Mike.
Created attachment 20932 [details] /etc/xml/docbook Mike, I don't understand exactly what you mean by xsl references, so I attached the file. However I removed the lines you suggested from /etc/xml/catalog and xmlto built successfully. Nice work! Let me know where to go from here.
Okay, I'm going to close this one as we're tracking a similar sort of problem in 32542. I think they're both really caused by 17698 which I can hopefully fix this weekend. Glad it worked Aron, thanks for the feedback.