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

Bug 379733

Summary: kde-base/kde-l10n-4.7.0-r2: missing docbook-xml-dtd:4.2 dependency
Product: Gentoo Linux Reporter: bay <alex3255>
Component: New packagesAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: minor    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 380499    
Attachments: Build log(app-text/docbook-xml-dtd absence is emulated)

Description bay 2011-08-18 15:07:04 UTC
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.
Comment 1 bay 2011-08-18 15:15:39 UTC
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
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2011-08-27 12:12:56 UTC
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.
Comment 3 Maciej Mrozowski gentoo-dev 2011-08-28 21:09:01 UTC
This is already handled by KDE_HANDBOOK variable.
I'd say any other means to pull those dependencies are wrong.
Comment 4 Maciej Mrozowski gentoo-dev 2011-10-02 19:17:33 UTC
Suggested change reverted. Please fill individual bugs for broken docbook dependencies in packages (see bug 385253 as example).
Comment 5 Maciej Mrozowski gentoo-dev 2011-10-02 19:33:39 UTC
IUSE=handbook replaced with KDE_HANDBOOK=optional.