Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33151 - app-text/xmlto-0.0.15 fails to build
Summary: app-text/xmlto-0.0.15 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Highest normal (vote)
Assignee: Text-Markup Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-10 07:18 UTC by Carsten Lohrke (RETIRED)
Modified: 2003-11-28 19:47 UTC (History)
1 user (show)

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


Attachments
xmlto-0.0.15-skip-validation.patch (xmlto-0.0.15-skip-validation.patch,635 bytes, patch)
2003-11-10 09:53 UTC, Aron Griffis (RETIRED)
Details | Diff
xmlto-0.0.15.ebuild.patch (xmlto-0.0.15.ebuild.patch,622 bytes, patch)
2003-11-10 09:56 UTC, Aron Griffis (RETIRED)
Details | Diff
catalog at request of Obz (catalog,2.69 KB, text/plain)
2003-11-12 19:24 UTC, Aron Griffis (RETIRED)
Details
/etc/xml/docbook (docbook,8.20 KB, text/plain)
2003-11-18 19:45 UTC, Aron Griffis (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Lohrke (RETIRED) gentoo-dev 2003-11-10 07:18:26 UTC
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.
Comment 1 Aron Griffis (RETIRED) gentoo-dev 2003-11-10 09:53:26 UTC
Created attachment 20531 [details, diff]
xmlto-0.0.15-skip-validation.patch
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2003-11-10 09:56:56 UTC
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.
Comment 3 Graham Ashton 2003-11-10 14:58:31 UTC
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).
Comment 4 Mike Gardiner (RETIRED) gentoo-dev 2003-11-11 05:03:06 UTC
Aron, what version of docbook-xsl-stylesheets do you have installed ? Also,
I've had no problems building with -j3.
Comment 5 Aron Griffis (RETIRED) gentoo-dev 2003-11-11 07:39:10 UTC
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? ;-)
Comment 6 Aron Griffis (RETIRED) gentoo-dev 2003-11-12 19:24:49 UTC
Created attachment 20670 [details]
catalog at request of Obz
Comment 7 Aron Griffis (RETIRED) gentoo-dev 2003-11-16 18:31:03 UTC
Obz, are you going to apply my patches?  I just noticed they're not applied yet.
Comment 8 Mike Gardiner (RETIRED) gentoo-dev 2003-11-16 21:24:59 UTC
Sorry, forgot to push the commit button on the -j1 fix. That's 1 of them. The other one (catalog/docbook/stylesheets) is next.
Comment 9 Mike Gardiner (RETIRED) gentoo-dev 2003-11-16 21:33:42 UTC
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.
Comment 10 Aron Griffis (RETIRED) gentoo-dev 2003-11-18 19:45:54 UTC
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.
Comment 11 Mike Gardiner (RETIRED) gentoo-dev 2003-11-28 19:47:51 UTC
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.