Created attachment 283781 [details] Build log(app-text/docbook-xml-dtd absence is emulated) Package kde-base/kdelibs-4.7.0-r1 has app-text/docbook-xml-dtd:4.2 in DEPEND but not in RDEPEND. Package kde-base/kdelibs-4.7.0-r1 uses app-text/docbook-xml-dtd:4.2 in runtime. This is fragment of file /usr/share/apps/ksgmltools2/customization/dtd/kdex.dtd from kdelibs package: <!ENTITY % DocBookDTD PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "/usr/share/sgml/docbook/xml-dtd-4.2/docbookx.dtd" > %DocBookDTD; File /usr/share/sgml/docbook/xml-dtd-4.2/docbookx.dtd belongs to app-text/docbook-xml-dtd:4.2 and docbookx.dtd used to generate documentation during building of kde-base/kde-l10n-4.7.0-r2. If that file doesn't exists the building will fail with error: file:///usr/share/apps/ksgmltools2/customization/dtd/kdex.dtd:101: warning: failed to load external entity "file:///usr/share/sgml/docbook/xml-dtd-4.2/docbookx.dtd" Full build log of kde-base/kde-l10n-4.7.0-r2 without of docbook-xml-dtd is in attach. I propose to add app-text/docbook-xml-dtd:4.2 to RDEPEND of kde-base/kdelibs.
Same with app-text/docbook-xsl-stylesheets. Please, move it to RDEPEND too. The error is: I/O warning : failed to load external entity "/usr/share/sgml/docbook/xsl-stylesheets/html/autoidx.xsl" compilation error: file /usr/share/apps/ksgmltools2/customization/kde-include-common.xsl line 4 element import xsl:import : unable to load /usr/share/sgml/docbook/xsl-stylesheets/html/autoidx.xsl
I did what you suggested for now. The cleaner way would probably be to add these both to the DEPENDS of all kde packages via the eclass, but I need to talk to the other kde guys for that first. Keeping the bug open for now.
This is already handled by KDE_HANDBOOK variable. I'd say any other means to pull those dependencies are wrong.
Suggested change reverted. Please fill individual bugs for broken docbook dependencies in packages (see bug 385253 as example).
IUSE=handbook replaced with KDE_HANDBOOK=optional.