Bug 86515

Summary: Wayland build fails if there is no internet connection.
Product: Wayland Reporter: Srivardhan Hebbar <sri.hebbar>
Component: waylandAssignee: Jon A. Cruz <jonc>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: medium CC: jonc
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Srivardhan Hebbar 2014-11-21 08:26:39 UTC
If there is no internet connection, wayland build fails with the following error:
doc/publican/en-US/Wayland.xml:5: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"

However there is workaround for this. We can build by disabling documentation. --disable-documentation.
Comment 1 Jon A. Cruz 2014-11-21 19:55:09 UTC
I've seen this sort of fetching-DTD-network error a few times in the past with different technologies. I'll be able to take a look at this.
Comment 2 Jon A. Cruz 2014-12-02 19:37:42 UTC
The problem does not manifest on Mint 17 or recent Debian. Platform specifics will be needed to reproduce.
Comment 3 Srivardhan Hebbar 2014-12-03 06:11:57 UTC
I wasn't able to reproduce the same issue with the latest code. In the latest code, though I get error, the make just prints the error and continues.
Below is the error:
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"
compilation error: file /tmp/xmlto-xsl.wS9dlu line 4 element import
xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl
make[3]: Leaving directory '/home/srihebbar/foss/src/Wayland/wayland/doc/publican'

My build configuration:
Distro: Arch Linu.
Doxygen version: 1.8.7

(In reply to Jon A. Cruz from comment #2)
> The problem does not manifest on Mint 17 or recent Debian. Platform
> specifics will be needed to reproduce.
Comment 4 Jon A. Cruz 2014-12-08 07:27:25 UTC
Appears to be due to missing dependencies on Arch Linux. docbook-xml and docboox-xsl were the main ones seen to cause issues:

pacman -S docbook-xml docbook-xsl libxslt libxml2

As per https://wiki.archlinux.org/index.php/Docbook

Full resolution probably warrants a website documentation update.
Comment 5 Pekka Paalanen 2014-12-16 14:20:21 UTC
I will push http://patchwork.freedesktop.org/patch/38375/
and since that's just a "make sure you have dependencies installed", and apparently there is no easy way to check they exist during ./configure, I'm marking this as WORKSFORME.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.