Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 444710 - sys-power/upower-0.9.18 - Fails on `xsltproc -nonet ...` - warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"
Summary: sys-power/upower-0.9.18 - Fails on `xsltproc -nonet ...` - warning: failed to...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-25 17:11 UTC by Carsten Milkau
Modified: 2012-11-25 19:08 UTC (History)
1 user (show)

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


Attachments
emerge --info '=sys-power/upower-0.9.18' (info.txt.gz,3.17 KB, application/x-gzip)
2012-11-25 18:17 UTC, Carsten Milkau
Details
Uncompressed `emerge --info =sys-power/upower-0.9.18` from reporter. (file_444710.txt,6.34 KB, text/plain)
2012-11-25 18:24 UTC, Tom Wijsman (TomWij) (RETIRED)
Details
build log (build.log.gz,3.59 KB, application/x-gzip)
2012-11-25 18:26 UTC, Carsten Milkau
Details
Uncompressed build log from reporter. (file_444710.txt,16.00 KB, text/plain)
2012-11-25 18:31 UTC, Tom Wijsman (TomWij) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carsten Milkau 2012-11-25 17:11:28 UTC
Looks like an upstream bug, but I'm not sure, so filing here first.

From Makefile.am:
%.1 %.7 %.8 : %.xml
        $(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<


This can't work. xsltproc refuses to fetch the http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl with -nonet option.

Reproducible: Always

Steps to Reproduce:
1. emerge =sys-power/upower-0.9.18

Actual Results:  
Build fails with message:

I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current"
cannot parse http://docbook.sourceforge.net/release/xsl/current


Expected Results:  
You probably don't want a network URL for the stylesheet at all here.
Comment 1 Rafał Mużyło 2012-11-25 17:31:51 UTC
Attach build log with the error, not just your guesses.
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-11-25 18:09:09 UTC
Please post the output of `emerge --info =sys-power/upower-0.9.18` as well.
Comment 3 Carsten Milkau 2012-11-25 18:17:58 UTC
Created attachment 330554 [details]
emerge --info '=sys-power/upower-0.9.18'

Oops, sorry, there you go.
Comment 4 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-11-25 18:21:07 UTC
Please also attach the build log, as listed in the comment before mine, found at

/var/tmp/portage/sys-power/upower-0.9.18/temp/build.log
Comment 5 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-11-25 18:24:07 UTC
Created attachment 330558 [details]
Uncompressed `emerge --info =sys-power/upower-0.9.18` from reporter.
Comment 6 Carsten Milkau 2012-11-25 18:26:24 UTC
Created attachment 330560 [details]
build log

I removed -nonet and completed the build, after that emerge wiped the log. The error appears while generating the manpages. It is not strictly caused by Makefile.am because automake isn't run by the ebuild, so to verify it's caused by this line, you need to fix Makefile.in or run automake manually.
Comment 7 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2012-11-25 18:31:35 UTC
Created attachment 330562 [details]
Uncompressed build log from reporter.

Thank you, uncompressed the files to spare some time and assigned the bug to the maintainers.
Comment 8 Rafał Mużyło 2012-11-25 18:40:45 UTC
'-nonet' is *not* a bug.
The problem here is that something went wrong.
app-text/docbook-xsl-stylesheets (which should provide those files) should be installed, but for some reason xsltproc doesn't see it.
Comment 9 Carsten Milkau 2012-11-25 19:08:23 UTC
Thanks for the hint! /etc/xml/catalog was gone. I restored it from a backup, and xsltproc was happy. If anyone else sees this, I assume rebuilding app-text/docbook-xsl-stylesheets should repair /etc/xml/catalog as well.