I was having trouble with an emerge of gnome-power-manager failing on a SGML to man conversion step. Eventually traced to problem to the fact that I had both app-text/docbook2X and app-text/docbook-sgml-utils installed and the /usr/bin/docbook2man file as taken from the app-text/docbook2X which did not work. After "emerge -vCa app-text/docbook2X-0.8.7" and "emerge -va app-text/docbook-sgml-utils" all worked as expected. Reproducible: Didn't try Steps to Reproduce: 1. emerge =app-text/docbook-sgml-utils-0.6.14 2. emerge =app-text/docbook2X-0.8.7 3. emerge =gnome-extra/gnome-power-manager-2.16.3 Actual Results: --- Cut from portage log --- Making all in man make[2]: Entering directory `/var/tmp/portage/gnome-extra/gnome-power-manager-2.16.3/work/gnome-power-manager-2.16.3/man' docbook2man gnome-power-manager.sgml > gnome-power-manager.1 docbook2man gnome-power-preferences.sgml > gnome-power-preferences.1 gnome-power-manager.sgml:1: parser error : StartTag: invalid element name <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [ ^ gnome-power-manager.sgml:1: parser error : Extra content at the end of the document <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [ ^ unable to parse gnome-power-manager.sgml gnome-power-preferences.sgml:1: parser error : StartTag: invalid element name <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [ ^ gnome-power-preferences.sgml:1: parser error : Extra content at the end of the document <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [ ^ unable to parse gnome-power-preferences.sgml Empty Stream at /usr/lib/perl5/vendor_perl/5.8.8/i686-linux-thread-multi/XML/LibXML/SAX/Parser.pm line 24 make[2]: *** [gnome-power-preferences.1] Error 9 make[2]: *** Waiting for unfinished jobs.... Empty Stream at /usr/lib/perl5/vendor_perl/5.8.8/i686-linux-thread-multi/XML/LibXML/SAX/Parser.pm line 24 make[2]: *** [gnome-power-manager.1] Error 9 make[2]: Leaving directory `/var/tmp/portage/gnome-extra/gnome-power-manager-2.16.3/work/gnome-power-manager-2.16.3/man' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gnome-extra/gnome-power-manager-2.16.3/work/gnome-power-manager-2.16.3' make: *** [all] Error 2 make: Leaving directory `/var/tmp/portage/gnome-extra/gnome-power-manager-2.16.3/work/gnome-power-manager-2.16.3' !!! ERROR: gnome-extra/gnome-power-manager-2.16.3 failed. Call stack: ebuild.sh, line 1613: Called dyn_compile ebuild.sh, line 970: Called qa_call 'src_compile' environment, line 1762: Called src_compile ebuild.sh, line 1303: Called gnome2_src_compile gnome2.eclass, line 71: Called die !!! compile failure !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/log/portage/gnome-extra:gnome-power-manager-2.16.3:20070207-211432.log'. Expected Results: Normal emerge results Removing app-text/docbook2X-0.8.7 and remerge app-text/docbook-sgml-utils-0.6.14 allows the emerge of gnome-extra/gnome-power-manager-2.16.3 to complete. There maybe other examples of of the difference between
*** Bug 168391 has been marked as a duplicate of this bug. ***
*** Bug 166777 has been marked as a duplicate of this bug. ***
Created attachment 115950 [details] New ebuild, --prefix-program=.pl and an elog Someone commit this.
in cvs now.
Created attachment 125715 [details] Fix for the "fixed" docbook2X-0.8.7-r1.ebuild Apparently, no one noticed until now that tacking on a ".pl" to everything breaks the two scripts that actually need renaming. Also, it renames the utf8trans binary, which is compiled from C source, and sgml2xml-isoent which is really a big sed script with a bit of shell wrapping it. I've fixed this by only renaming the two files that actually collide.
Thomas, thank you, I've applied your patch (and fixed bug #205703). But next time, please, open new bug to report new breakages.