Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 193966

Summary: app-text/asciidoc: any ebuild calling a2x will fail if there is no external networking and docbook-xml-dtd-4.2 is not present
Product: Gentoo Linux Reporter: Robin Johnson <robbat2>
Component: Current packagesAssignee: Gentoo SGML project <sgml>
Status: RESOLVED FIXED    
Severity: normal CC: coldwind, pva
Priority: High    
Version: 2007.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 240355    
Bug Blocks:    

Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-09-27 09:50:01 UTC
The a2x program depends on having docbook-xml-dtd-4.2 present.
If it is not present, the program tries to connect to the internet, which fails in networkless situations.

Example, running a2x manually after I hit it in a package:
$ /usr/bin/a2x -d manpage -f manpage -v man/mylvmbackup.1.txt
a2x: eval: asciidoc --doctype=manpage  -d manpage -b docbook "man/mylvmbackup.1.txt"
a2x: eval: cd "man"
a2x: eval: xsltproc  --stringparam callout.graphics 0         --stringparam navig.graphics 0         --stringparam admon.textlabel 1         --stringparam admon.graphics 0 --nonet         "/etc/asciidoc/docbook-xsl/manpage.xsl" "/home/robbat2/mylvmbackup-svn/man/mylvmbackup.1.xml"
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd
/home/robbat2/mylvmbackup-svn/man/mylvmbackup.1.xml:2: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
D DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
                                                                               ^
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-09-27 09:52:57 UTC
*** Bug 191535 has been marked as a duplicate of this bug. ***
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2008-10-18 14:12:50 UTC
Well, I've added asciidoc-8.2.7 with additional dependency:
app-text/docbook-xsl-stylesheets
With that a2x still issues warnings about failed to load external entity but works and generates pages. So a2x can work without docbook-xml-dtd as I see. I think bug is fixed.