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

Bug 223071

Summary: app-text/docbook2X-0.8.8-r1 tests does not pass
Product: Gentoo Linux Reporter: Mike Weissman <mike>
Component: New packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: jer, pva
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
URL: http://sourceforge.net/mailarchive/forum.php?thread_name=1211280957.27227.16.camel%40camobap&forum_name=docbook2x-discuss
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 222041    
Attachments: build.log
build.log from successful build
dev-perl:XML-SAX-0.16:20080714-023450.log [teh fail]

Description Mike Weissman 2008-05-21 14:37:27 UTC
When trying to build docbook2X-0.8.8-r1 on x86, the following error occurs:

(full build.log attached)
make[2]: Entering directory `/var/tmp/portage/app-text/docbook2X-0.8.8-r1/work/docbook2X-0.8.8/test/refentry'
../../perl/db2x_xsltproc -C ../../xslt/catalog.xml -s man -o sgml2xml.mxml sgml2xml.xml
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd
sgml2xml.xml:15: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
]>
  ^
sgml2xml.xml:32: parser error : Entity 'mdash' not defined
      An SGML System Conforming to International Standard ISO 8879 &mdash;
                                                                          ^
/usr/bin/perl ../../perl/db2x_manxml --utf8trans-program=../../utf8trans/utf8trans --utf8trans-map=../../charmaps/roff.charmap sgml2xml.mxml
/usr/bin/iconv: illegal input sequence at position 622
../../perl/db2x_manxml: program in pipeline exited with an error
make[2]: *** [sgml2xml.1] Error 1
make[2]: *** Deleting file `sgml2xml.1'
rm sgml2xml.mxml
make[2]: Leaving directory `/var/tmp/portage/app-text/docbook2X-0.8.8-r1/work/docbook2X-0.8.8/test/refentry'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-text/docbook2X-0.8.8-r1/work/docbook2X-0.8.8/test'
make: *** [check-recursive] Error 1


Reproducible: Always

Steps to Reproduce:
1. emerge docbook2X
2.
3.

Actual Results:  

 * ERROR: app-text/docbook2X-0.8.8-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_test
 *             environment, line  114:  Called die
 * The specific snippet of code:
 *               hasq test $FEATURES && die "Make check failed. See above for details.";
 *  The die message:
 *   Make check failed. See above for details.


Expected Results:  
emerge docbook2X builds successfully 


Portage 2.1.5.2 (default/linux/x86/2008.0, gcc-4.2.3, glibc-2.7-r2, 2.6.24-gentoo-r4 i686)
=================================================================
System uname: 2.6.24-gentoo-r4 i686 Intel(R) Pentium(R) D CPU 2.80GHz
Timestamp of tree: Wed, 21 May 2008 11:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r6, 2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.4-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe -fomit-frame-pointer -g -ggdb"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/sudoers /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks metadata-transfer nostrip parallel-fetch sandbox sfperms strict test unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ "
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/myebuilds"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa apache2 avi bash-completion bzip2 cli compat cracklib crypt cups dbcpalsa dbus dri firefox ftp gdbm gpm hal iconv intel isdnlog java java5 java6 jbdc jboss jpeg kde logitech mailwrapper midi mp3 mpeg mudflap mysql ncurses nls nptl nptlonly ntp nvidia odbc opengl openmp pam pcre perl png postgres pppd python qt3 qt4 rar readline reflection sdk session spl ssl svg tcpd tiff tomcat truetype unicode vim vim-completion vim-syntax vim-with-x x86 xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mike Weissman 2008-05-21 14:37:53 UTC
Created attachment 153851 [details]
build.log
Comment 2 Peter Volkov (RETIRED) gentoo-dev 2008-05-22 11:44:07 UTC
Thank you for report, Mike. Well, I've reported bug upstream. We'll see how it goes. I/O error is caused by wrong deps, and will be fixed together with this bug.
Comment 3 Mike Weissman 2008-05-22 15:45:45 UTC
I was working on some perl dev for a personal product and i installed some modules  for perl and just as a test i was able to build doctbook2X, i am not sure which one specially did the trick but here is the list of modules i installed:

Data-DumpXML 
XML-AutoWriter 
XML-Catalog
xmlsec 
xmlwrapp
XML-DTDParser 
XML-Encoding 
XML-Grove 
XML-Generator 
XML-Handler-YAWriter 
XML-Mini
XML-Parser
XML-Simple 
XML-Stream 
XML-Twig 
XML-XUpdate-LibXML 
PEAR-XML_Tree

I Attached the build log.
Hopes This helps,
-Mike
Comment 4 Mike Weissman 2008-05-22 15:49:50 UTC
Created attachment 153951 [details]
build.log from successful build
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2008-05-22 17:17:49 UTC
Yup, this really helped, thank you. Installation of dev-perl/XML-LibXML fixes the issue. This bug should be fixed in docbook2X-0.8.8-r2. If that's not the case, feel free to reopen this bug.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-11 06:07:44 UTC
(In reply to comment #5)
> Yup, this really helped, thank you. Installation of dev-perl/XML-LibXML fixes
> the issue. This bug should be fixed in docbook2X-0.8.8-r2. If that's not the
> case, feel free to reopen this bug.

The stable version dev-perl/XML-LibXML-1.65 was installed before I tried docbook2X but it didn't fix the issue for me. Upgrading to dev-perl/XML-LibXML-1.66 did. Or maybe it's something perl-cleaner could have fixed or a re-emerge of the stable version...
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-11 08:14:41 UTC
Not entirely the same problem, but with the very same make target:

Making check in refentry
make[2]: Entering directory `/dev/shm/portage/app-text/docbook2X-0.8.8-r2/work/docbook2X-0.8.8/test/refentry'
../../perl/db2x_xsltproc -C ../../xslt/catalog.xml -s man -o sgml2xml.mxml sgml2xml.xml
/usr/bin/perl ../../perl/db2x_manxml --utf8trans-program=../../utf8trans/utf8trans --utf8trans-map=../../charmaps/roff.charmap sgml2xml.mxml
could not find ParserDetails.ini in /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX
/usr/bin/iconv: illegal input sequence at position 285
../../perl/db2x_manxml: program in pipeline exited with an error
make[2]: *** [sgml2xml.1] Error 1
make[2]: *** Deleting file `sgml2xml.1'
rm sgml2xml.mxml
make[2]: Leaving directory `/dev/shm/portage/app-text/docbook2X-0.8.8-r2/work/docbook2X-0.8.8/test/refentry'
make[1]: *** [check-recursive] Error 1
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-11 15:49:18 UTC
It's not fixed.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-11 15:56:49 UTC
OK, lets start a bit of a process of elimination (surely this could be done more conveniently?)... From the list in comment #3 I happen to have these installed:

Data-DumpXML not installed
XML-AutoWriter not installed
XML-Catalog not installed
xmlsec not installed
dev-libs/xmlwrapp-0.5.0-r1
dev-perl/XML-DTDParser-2.01
XML-Encoding not installed
XML-Grove not installed
dev-perl/XML-Generator-1.01
XML-Handler-YAWriter not installed
XML-Mini not installed
dev-perl/XML-Parser-2.34-r1
dev-perl/XML-Simple-2.18
dev-perl/XML-Stream-1.22
XML-Twig not installed
XML-XUpdate-LibXML not installed

(Ignoring the dev-php/PEAR* atom.)
Comment 10 Mike Weissman 2008-07-11 16:20:44 UTC
Shouldn't dev-perl/XML-Simple-2.18 take care of the because that will pull down Dev-Perl/XML-SAX, which includes ParserDetails.ini
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-14 04:02:24 UTC
Created attachment 160307 [details]
dev-perl:XML-SAX-0.16:20080714-023450.log [teh fail]

(In reply to comment #10)
> Shouldn't dev-perl/XML-Simple-2.18 take care of the because that will pull down
> Dev-Perl/XML-SAX, which includes ParserDetails.ini

There's still something wrong with dev-perl/XML-SAX:

>>> Original instance of package unmerged safely.
 * Man pages are not installed for most modules now.
 * Please use perldoc instead.
could not find ParserDetails.ini in /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX

This was a rebuild too - all the currently known requirements were already installed.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2008-07-14 04:15:31 UTC
Oh, and there's this:

 "It should be created by the XML::SAX installation script and should be
  updated automatically by the install script for each SAX parser module."[1]

I don't have it[2] now it seems - only I can't figure out why it didn't use to be there. And I still get this:

Making check in refentry
make[2]: Entering directory `/dev/shm/portage/app-text/docbook2X-0.8.8-r2/work/d
ocbook2X-0.8.8/test/refentry'
../../perl/db2x_xsltproc -C ../../xslt/catalog.xml -s man -o sgml2xml.mxml sgml2
xml.xml
/usr/bin/perl ../../perl/db2x_manxml --utf8trans-program=../../utf8trans/utf8tra
ns --utf8trans-map=../../charmaps/roff.charmap sgml2xml.mxml
/usr/bin/iconv: illegal input sequence at position 285


[1] http://perl-xml.sourceforge.net/faq/#parserdetails.ini

[2] # cat /usr/lib/perl5/vendor_perl/5.8.8/XML/SAX/ParserDetails.ini
[XML::SAX::PurePerl]
http://xml.org/sax/features/namespaces = 1
[followed by two newlines]
Comment 13 Mike Weissman 2008-07-14 13:33:22 UTC
(In reply to comment #12)
> Making check in refentry
> make[2]: Entering directory
> `/dev/shm/portage/app-text/docbook2X-0.8.8-r2/work/d
> ocbook2X-0.8.8/test/refentry'
> ../../perl/db2x_xsltproc -C ../../xslt/catalog.xml -s man -o sgml2xml.mxml
> sgml2
> xml.xml
> /usr/bin/perl ../../perl/db2x_manxml
> --utf8trans-program=../../utf8trans/utf8tra
> ns --utf8trans-map=../../charmaps/roff.charmap sgml2xml.mxml
> /usr/bin/iconv: illegal input sequence at position 285

For that see this:
http://article.gmane.org/gmane.text.docbook.docbook2x.general/268

Failing on unicode chars.

'perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()"'

Runs in pkg_postinst for Dev-Perl/XML-SAX, but it runs without a conditional statement, thus:
"Don't unconditionally run this command, or users who re-install XML::SAX may find that any fast SAX parser they have installed will be replaced as the default by the pure-Perl parser."

Did the rebuild of XML-SAX remove the ParserDetails.ini?


Comment 14 Ian Delaney (RETIRED) gentoo-dev 2012-03-23 15:36:19 UTC
archtester docbook2X # ebuild docbook2X-0.8.8-r1.ebuild clean test

make[2]: Leaving directory `/mnt/gen2/TmpDir/portage/app-text/docbook2X-0.8.8-r1/work/docbook2X-0.8.8/test/utf8trans'
Making check in sgml
--------------------------------------------------make[2]: Leaving directory `/mnt/gen2/TmpDir/portage/app-text/docbook2X-0.8.8-r1/work/docbook2X-0.8.8/test'
make[1]: Leaving directory `/mnt/gen2/TmpDir/portage/app-text/docbook2X-0.8.8-r1/work/docbook2X-0.8.8/test'

does not error out.  There are dozens of lines of 
data-type: element not matched by any template
&&
warning: invalid encoded character `iexcl'
and such
all non critical.
It appears that the subsequent newer versions of the dependencies have cured the test fail
Comment 15 Sergey Popov (RETIRED) gentoo-dev 2013-07-29 11:04:37 UTC
Try -r3. I do not see any errors while doing tests.