Created attachment 365332 [details] build.log and emerge --info x11-libs/libdrm-2.4.50 ebuild fails if test -n "drm-mm.7" ; then /bin/sed -i -e 's/^\.so \([a-z_]\+\)\.\([0-9]\)$/\.so man\2\/\1\.\2/' "drm-mm.7" ; fi if test -n "drm-gem.7" ; then /bin/sed -i -e 's/^\.so \([a-z_]\+\)\.\([0-9]\)$/\.so man\2\/\1\.\2/' "drm-gem.7" ; fi /bin/sed: can't read drm-mm.7: No such file or directory make[2]: *** [drm-mm.7] Error 2 make[2]: *** Waiting for unfinished jobs.... /bin/sed: can't read drm-gem.7: No such file or directory make[2]: *** [drm-gem.7] Error 2 make[2]: Leaving directory `/var/tmp/portage/x11-libs/libdrm-2.4.50/work/libdrm-2.4.50-default/man' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/x11-libs/libdrm-2.4.50/work/libdrm-2.4.50-default' make: *** [all] Error 2 [31;01m*[0m ERROR: x11-libs/libdrm-2.4.50::gentoo failed (compile phase): [31;01m*[0m emake failed
Check if you have app-text/docbook-xml-dtd:4.2. Ebuild doesn't seem to pull that dep, probably cause the eclass would pull much more than really needed.
localhost jon # equery l docbook-xml-dtd * Searching for docbook-xml-dtd ... [IP-] [ ] app-text/docbook-xml-dtd-4.1.2-r6:4.1.2 [IP-] [ ] app-text/docbook-xml-dtd-4.3-r1:4.3 I have these installed
I installed docbook-xml-dtd-4.2-r2 libdrm still fails
(In reply to Jonwiz from comment #3) > I installed docbook-xml-dtd-4.2-r2 > > libdrm still fails Was there a significant change in the build log ? It should have removed 'warning: failed to load external entity' warnings.
(In reply to Rafał Mużyło from comment #4) > Was there a significant change in the build log ? > It should have removed 'warning: failed to load external entity' warnings. I have this bug now. Try emerging libdrm-2.4.52, having the newest docbook-xml-dtd (4.5), autoconf, etc. I could trace the problem being: in /var/tmp/portage/x11-libs/libdrm-2.4.52/work/libdrm-2.4.52-default/man/ the files are: Makefile drm-memory.7 drmAvailable.3 drmModeGetResources.3 drm\-mm.7 drm-kms.7 drm.7 drmHandleEvent.3 drm\-gem.7 drm\-ttm.7 while they should be: Makefile drm-memory.7 drmAvailable.3 drmModeGetResources.3 drm-mm.7 drm-kms.7 drm.7 drmHandleEvent.3 drm-gem.7 drm-ttm.7 so I guess either is an escape sequence is messed up somewhere in the Makefile, or one of the tools are outdated in my sysetm, which I do not know.
One more thing: if I rename the files, the make all and make install runs without error, but that does not make portage happy... 8).
try this steps: emerge -pv --depclean docbook-xsl-stylesheets quickpkg docbook-xsl-stylesheets emerge -b1 -O docbook-xsl-stylesheets
Excellent, this indeed solved the issue. (Is it possible to know what it was?)
In attached build.log you can see this: /usr/bin/xsltproc -o "drmModeGetResources.3" --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 --stringparam funcsynopsis.style ansi --stringparam man.output.quietly 1 --nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl "/var/tmp/portage/x11-libs/libdrm-2.4.50/work/libdrm-2.4.50/man/drmModeGetResources.xml" --nonet and http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl When xsltproc build man pages drm-mm.7 etc., this stylesheet loaded from /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl (app-text/docbook-xsl-stylesheets). Your version was old (I think), and <refnamediv> <refname>drm-memory</refname> <refname>drm-mm</refname> <refname>drm-gem</refname> <refname>drm-ttm</refname> <refpurpose>DRM Memory Management</refpurpose> </refnamediv> (in sources of libdrm man/drm-memory.xml ) transormed to drm\-mm.7 incorrectly.
Sorry, this string of build.log /usr/bin/xsltproc -o "drm-memory.7" --stringparam man.authors.section.enabled 0 --stringparam man.copyright.section.enabled 0 --stringparam funcsynopsis.style ansi --stringparam man.output.quietly 1 --nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl "/var/tmp/portage/x11-libs/libdrm-2.4.50/work/libdrm-2.4.50/man/drm-memory.xml"
Thank you.
I guess this isn't a libdrm issue? Closing.