2.6.1-2ubuntu1 FTBFS on i386

Bug #815760 reported by James Page
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nut (Ubuntu)
Fix Released
Medium
James Page

Bug Description

https://launchpad.net/ubuntu/+source/nut/2.6.1-2ubuntu1/+build/2639553

make[3]: Leaving directory `/build/buildd/nut-2.6.1/docs/website'
/usr/bin/a2x --attribute icons --attribute localdate=`TZ=UTC date +%Y-%m-%d` --attribute localtime=`TZ=UTC date +%H:%M:%S` --attribute iconsdir=./images --attribute=badges --attribute=external_title -a toc -a numbered --destination-dir=. --attribute=chunked_format --format=chunked user-manual.txt
a2x: ERROR: xsltproc --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0 --stringparam base.dir user-manual.chunked/ /etc/asciidoc/docbook-xsl/chunked.xsl /build/buildd/nut-2.6.1/docs/user-manual.xml returned non-zero exit status 5

exit status 5 = Error in the stylesheet

Related branches

Revision history for this message
James Page (james-page) wrote :

Reproduced locally in sbuild environment; a bit more information on the failure:

xsltproc --stringparam callout.graphics 0 --stringparam navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0 --stringparam base.dir user-manual.chunked/ /etc/asciidoc/docbook-xsl/chunked.xsl /build/jamespage-nut_2.6.1-2ubuntu1-i386-VnuJ0Q/nut-2.6.1/docs/user-manual.xml
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"
compilation error: file http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl line 25 element import
xsl:import : unable to load http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl

description: updated
James Page (james-page)
Changed in nut (Ubuntu):
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → James Page (james-page)
Revision history for this message
Arnaud Quette (aquette) wrote : Re: [Bug 815760] Re: 2.6.1-2ubuntu1 FTBFS on i386

Hi James,

thanks for your report.

2011/7/25 James Page <email address hidden>

> Reproduced locally in sbuild environment; a bit more information on the
> failure:
>
> xsltproc --stringparam callout.graphics 0 --stringparam navig.graphics 0
> --stringparam admon.textlabel 1 --stringparam admon.graphics 0
> --stringparam base.dir user-manual.chunked/
> /etc/asciidoc/docbook-xsl/chunked.xsl
> /build/jamespage-nut_2.6.1-2ubuntu1-i386-VnuJ0Q/nut-2.6.1/docs/user-manual.xml
> warning: failed to load external entity "
> http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl"
> compilation error: file
> http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl line 25
> element import
> xsl:import : unable to load
> http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl
>

strange. Can you please try with the verbose version:
$ ASCIIDOC_VERBOSE=-v make

we should get more info, since the above is probably not the actual issue...

cheers,
Arnaud
--
Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/

Revision history for this message
James Page (james-page) wrote :

Hi Arnaud

Digging into this in a bit more detail I think I hit two issues:

1) My local sbuild environment was failing but has now started working again

2) The i386 build always fails in PPA

Looking at what this step does I think the problem is that a2x uses xsltproc which imports stylesheets from external references. In 1) I think I was being hit by issues with the external reference site (http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl) but in 2) the PPA/Distribution buildd's don't allow general network access outside of the archive so it will always fail to import this external reference.

As the documentation forms part of the architecture independent package it only gets built on i386 - hence why amd64, armel and powerpc builds all completed successfully.

I guess options include disabling this part of the documentation build - not ideal but would work around this problem.

Cheers

James

Revision history for this message
James Page (james-page) wrote :

Disabling the generation of html-chunked documentation and making a couple of other tweaks to debian/rules + nut-doc.doc-base. files results in a package that will build in PPA; however it only generates PDF documentation (which would be as expected).

Revision history for this message
Laurent Bigonville (bigon) wrote :

Maybe you should try to build-depends on docbook directly

Revision history for this message
James Page (james-page) wrote :

docbook-xsl looks like it might help out in this instance as it plugs into xsltproc through /etc/xml/catalog which should result in offline generation; testing to see if this results in a full offline build.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package nut - 2.6.1-2ubuntu2

---------------
nut (2.6.1-2ubuntu2) oneiric; urgency=low

  * Fix FTBFS for Ubuntu (LP: #815760):
    - debian/control: Build-Depends-Indep on docbook-xsl for offline
      document generation.
 -- James Page <email address hidden> Mon, 25 Jul 2011 12:02:48 +0100

Changed in nut (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.