Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 392197 - kde-base/kwrite 4.7.80 fails to build (docbook parts missing)
Summary: kde-base/kwrite 4.7.80 fails to build (docbook parts missing)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 392345 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-11-27 15:37 UTC by Christian Loosli
Modified: 2011-12-26 02:22 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Loosli 2011-11-27 15:37:46 UTC
kwrite 4.7.80  (KDE 4.8 Beta 1) fails to build,

>>> Source configured.
>>> Compiling source in /var/tmp/portage/kde-base/kwrite-4.7.80/work/kwrite-4.7.80 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/kde-base/kwrite-4.7.80/work/kwrite-4.7.80_build"
make -j2 
Scanning dependencies of target kdeinit_kwrite_automoc
Scanning dependencies of target kwrite-handbook                                                                              
[  0%] Generating index.cache.bz2                                                                                            
Generating kwritemain.moc                                                                                                    
Generating moc_kwriteapp.cpp                                                                                                 
warning: failed to load external entity "../kate/part.docbook"                                                               
index.docbook:98: parser error : Failure to process entity part-chapter
&part-chapter;
              ^
index.docbook:98: parser error : Entity 'part-chapter' not defined
&part-chapter;
              ^
make[2]: *** [doc/kwrite/index.cache.bz2] Fehler 1


kde overlay is active, gentoo on x86_64, useflags are
kde-base/kwrite-4.7.80 [4.7.3] USE="handbook (-aqua) -debug (-kdeenablefinal)"


Reproducible: Always

Steps to Reproduce:
1. emerge kwrite 4.7.80

Actual Results:  
it fails

Expected Results:  
it builds
Comment 1 Marian Kyral 2011-11-27 18:56:22 UTC
I can confirm. Workaround is to build without "hanbook" USE flag.
Comment 2 Duncan 2011-11-29 09:00:56 UTC
*** Bug 392345 has been marked as a duplicate of this bug. ***
Comment 3 Duncan 2011-11-29 09:08:02 UTC
(In reply to comment #2)
> *** Bug 392345 has been marked as a duplicate of this bug. ***

I missed this one in my pre-filing search because my search was for the standardized kde-base/kwrite.   Another user referred me here. (Thanks!)

Please, someone with privs to do so, change the title to reflect the full kde-base/kwrite-4.7.80 package name, so it shows up in searches including the category.  It would have prevented my dup.  (Altho the necessity is lower now, since my dup has the full name so at least it, as a dup of this one, will turn up in fully qualified searches.)

Duncan
Comment 4 Johannes Huber (RETIRED) gentoo-dev 2011-11-29 15:47:10 UTC
Investigation:
Unfortunately tags for 4.8 Beta 1 are not pushed yet. But i assume after the commit https://projects.kde.org/projects/kde/kde-baseapps/kate/repository/revisions/e75833890fe614a041a103fe5c6aa0952f93a18d the tarball for kate/kwrite was created. The commit https://projects.kde.org/projects/kde/kde-baseapps/kate/repository/revisions/1bf2a8c87dfed803b371e861c7f7a680055d083a should fix this issue. Patch size is about 157 KB. 

Conclusion: 
Dont patch because of patch size. Problem should gone in next beta. I suggest to disable handbook in =kde-base/kwrite-4.7.80.ebuild and bring it back in next release.
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2011-11-29 21:58:19 UTC
Handbook disabled for this release
Comment 6 Duncan 2011-12-23 17:38:49 UTC
I'm still getting this error with 4.7.95 (4.8-rc1).

Looking at the tarball, there IS a file (kate-4.7.95/)doc/kate/part.docbook, which the error suggests it's looking for.

However, looking at the unpacked workdir, there's only the doc/kwrite subdir, NOT the doc/kate subdir that it's looking for.

This bug therefore appears to be a product of gentoo's split-packages, NOT upstream, as the file exists in the tarball, just not in the workdir as unpacked to build kwrite.

Please reopen the bug as it'll certainly need addressed by release, and we're already in the rcs.
Comment 7 Duncan 2011-12-23 17:59:31 UTC
Fix:

KMEXTRACTONLY="doc/kate"

Adding that line to the ebuild under KMNAME="kate" and re-manifesting was all it took, here.  kwrite-4.7.95 now builds with USE=handbook. =:^)
Comment 8 Duncan 2011-12-26 02:22:58 UTC
Now fixed for 4.7.95+, FWIW (git show excerpt): 

commit 2ef476c3292f71322a959fde405238eebc76e886
Author: Andreas K. Huettel (dilfridge) <dilfridge@gentoo.org>
Date:   Fri Dec 23 20:07:22 2011 +0100

    [kde-base/kwrite] Extract documentation DTD

    (Portage version: 2.1.10.41/git/Linux x86_64, unsigned Manifest commit)

diff --git a/kde-base/kwrite/kwrite-4.7.95.ebuild b/kde-base/kwrite/kwrite-4.7.95.ebuild
index 60d8a83..1381a1f 100644
--- a/kde-base/kwrite/kwrite-4.7.95.ebuild
+++ b/kde-base/kwrite/kwrite-4.7.95.ebuild
@@ -6,6 +6,7 @@ EAPI=4

 KDE_HANDBOOK="optional"
 KMNAME="kate"
+KMEXTRACTONLY="doc/kate"
 KDE_SCM="git"
 inherit kde4-meta

(... And the same change for 4.8.49.9999 and 9999.)