Package: weechat
Version: 0.4.2-2
Severity: important
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch trusty

If you try to build weechat on a builder that lacks general Internet
access (a good practice to aid reproducibility), then it fails as
follows:

  a2x: ERROR: "xsltproc"  --stringparam callout.graphics 0 --stringparam 
navig.graphics 0 --stringparam admon.textlabel 1 --stringparam admon.graphics 0 
 "/etc/asciidoc/docbook-xsl/manpage.xsl" 
"/build/buildd/weechat-0.4.2/builddir/doc/en/weechat.1.en.xml" returned 
non-zero exit status 5

You can reproduce this by building in an sbuild instance and removing
/etc/resolv.conf from the chroot at the start of the build, after
build-dependencies have been installed.  Doing this and then running the
command above by hand to see its error output, I get:

  error : connection refused
  warning: failed to load external entity 
"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl";
  compilation error: file /etc/asciidoc/docbook-xsl/manpage.xsl line 12 element 
import
  xsl:import : unable to load 
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl

The fix is to build-depend on docbook-xsl.

  * Build-depend on docbook-xsl so that asciidoc can operate offline.

diff -Nru weechat-0.4.2/debian/control weechat-0.4.2/debian/control
--- weechat-0.4.2/debian/control        2013-10-08 08:19:50.000000000 +0100
+++ weechat-0.4.2/debian/control        2013-10-23 12:53:38.000000000 +0100
@@ -6,6 +6,7 @@
     asciidoc (>= 8.5),
     source-highlight,
     xsltproc,
+    docbook-xsl,
     debhelper (>= 9),
     cmake, pkg-config,
     libncursesw5-dev,

Thanks,

-- 
Colin Watson                                       [cjwat...@ubuntu.com]


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to