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

Bug 270744

Summary: =app-office/kword-1.6.3-r2 and =app-office/karbon-1.6.2 fail to unpack due to changes to kde-functions.eclass
Product: Gentoo Linux Reporter: Duncan Exon Smith <duncanphilipnorman>
Component: EclassesAssignee: Gentoo KDE team <kde>
Status: RESOLVED FIXED    
Severity: major CC: ansla80, bugs.gentoo.org-6, dhp_gentoo, joerg.schaible, juantxorena, kde, ross, stefano.priore
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 271547    
Attachments: reverts a change in kde-functions.eclass to allow =app-office/kword-1.6.3-r2 (among others) to build

Description Duncan Exon Smith 2009-05-21 17:51:23 UTC
After running 'eix-sync' and 'emerge -uavDN world', I ran 'emerge @preserved-rebuild' to rebuild =app-office/kword-1.6.3-r2 and =app-office/karbon-1.6.2 (among others).

The build failed failed while unpacking the source, during 'kde-meta_src_unpack'.

Reproducible: Always

Actual Results:  
Here's a snippet from the failed merge:

>>> Unpacking parts of koffice-1.6.3.tar.bz2 to /var/tmp/portage/app-office/kword-1.6.3-r2/work
 *
 * ERROR: app-office/kword-1.6.3-r2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 4492:  Called kde-meta_src_unpack 'unpack'
 *             environment, line 3165:  Called die
 * The specific snippet of code:
 *                               die "Can't find library ${libname} under ${PREFIX}/$(get_libdir)/";
 *  The die message:
 *   Can't find library libkformula under /usr/kde/3.5/lib64/
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/app-office/kword-1.6.3-r2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-office/kword-1.6.3-r2/temp/environment'.
 *




'locate libkformula' gives:
/usr/lib64/kde3/libkformulapart.la
/usr/lib64/kde3/libkformulapart.so
/usr/lib64/libkformulalib.la
/usr/lib64/libkformulalib.so
/usr/lib64/libkformulalib.so.4
/usr/lib64/libkformulalib.so.4.0.0

So I figure kde-meta_src_unpack has the wrong value for PREFIX.  Sure enough, a search turned up bug 245954, which has a suggested patch for kde-functions.eclass.
http://bugs.gentoo.org/245954
http://bugs.gentoo.org/attachment.cgi?id=173480

Although that bug is still open, it appears that a similar patch has already been applied to the tree.  I reverted the changes locally, and now I can merge 'kword' and 'karbon' without issue.

emerge --info gives:

Portage 2.2_rc33 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r7-vennsa-dev-em64t x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r7-vennsa-dev-em64t-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.66GHz-with-gentoo-2.0.0
Timestamp of tree: Thu, 21 May 2009 16:45:02 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.6.2
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.3-r2
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=nocona -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=nocona -pipe"
DISTDIR="/opt/gentoo-portage/distfiles"
FEATURES="autoaddcvs buildpkg distlocks fixpackages multilib parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.arcticnetwork.ca/source/ http://gentoo.mirrors.tera-byte.com/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.osuosl.org/ http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo "
LDFLAGS="-Wl,-O1"
LINGUAS="en_CA en_GB en zh zh_TW zh_CN"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/vmware /usr/local/vennsa/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa amd64 arts bash-completion berkdb bitmap-fonts bluetooth branding bzip2 cairo calendar cdr cli cracklib crypt cscope cups curl curlwrappers dbus dga directfb doc dri dvd dvdr dvdread eds emacs emboss encode esd evo examples exif expat fam fbcon ffmpeg firefox flac foomaticdb fortran gd gdbm gif gmp gnutls gpm graphviz gstreamer gtk gtk2 hal iconv idn ieee1394 imagemagick imap imlib ipod ipv6 isdnlog jabber java javascript jpeg jpeg2k kde kdexdeltas kerberos latex ldap leim libnotify m17n-lib mad midi mikmod mime mmx mng motif mp3 mpeg mpg mpi mplayer msn mudflap multilib musicbrainz ncurses nls nptl nptlonly nsplugin ofx ogg openexr opengl openmp pam pcre pdf perl plotutils png ppds pppd python qt3 qt3support qt4 quicktime readline reflection samba sasl sdl session spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs tcl tcpd tetex threads tiff tk truetype truetype-fonts type1-fonts unicode usb vhosts vim-syntax vorbis wmf x264 xcomposite xface xine xinerama xml xorg xprint xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_CA en_GB en zh zh_TW zh_CN" USERLAND="GNU" VIDEO_CARDS="nvidia radeon vesa vga intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-21 23:10:04 UTC
Looks to be fallout from the total-prefixing of kde3 apps. Kde herd, just re-emerge untill it works?
Comment 2 Holger Ackermann 2009-05-26 16:46:30 UTC
(In reply to comment #0)
> Although that bug is still open, it appears that a similar patch has already
> been applied to the tree.  I reverted the changes locally, and now I can merge
> 'kword' and 'karbon' without issue.

Not here, emerge of karbon and kword still fails. Patching the eclass according to the patch in the bug doesn't change it.

emerge --info:
Portage 2.1.6.11 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.8_p2000602-r1, 2.6.29-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.29-gentoo-r4-x86_64-Intel-R-_Core-TM-2_CPU_T5600_@_1.83Hz-with-glibc2.2.5
Timestamp of tree: Tue, 26 May 2009 15:20:04 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.7
dev-lang/python:     2.5.4-r2
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shtdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etcfonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-activ/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuid /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.de.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe "
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks fixpackages parallel-fetch protectowned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ "
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress--force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclde=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/enlightenment /usr/local/portage"
SYNC="rsync://rsync.B15.lan/gentoo-portage/ "
USE="X a52 aac acl acpi alsa amd64 apache2 apm bash-completion berkdb bluetoothbranding bzip2 cairo caps cddb cdr cjk cli cracklib crypt ctype cups curl dbus ri dts dvb dvd dvdnac dvdr dvdread emboss encode evo fam fat ffmpeg flac fortra ftp fuse gd gdbm gif gnutls gpm hal http iconv id3tag ieee1394 imap innodb ipv ipw3945 isdnlog java javascript jpeg jpeg2k kde laptop ldap libffi libnotify lve loop-aes mad midi mikmod mime mmx mp3 mp4 mpeg mplayer mudflap multilib musibrainz mysql ncurses nls nptl nptlonly nsplugin ntfs ntpl ntplonly ogg opengl oenmp pam pcre pdf perl png postgres postgresql ppds pppd python qt3 qt3support t4 quicktime rar readline reflection reiserfs samba sdl session sndfile socketssound spell spl sse sse2 sse3 ssl ssse3 startup-notification stream subversion vg sysfs tcl tcpd tetex theora tiff tk truetype twolame unicode usb v4l v4l2 vc vim-with-x vorbis xine xinerama xml xorg xpm xulrunner xv xvid xvmc zip zlib" LSA_CARDS="snd_hda_intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emulmulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alas auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_fie authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filtr file_cache filter headers ident imagemap include info log_config logio mem_cahe mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alis" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics wacom evdev" KERNEL="lnux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncures text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, PORAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Comment 3 Duncan Exon Smith 2009-05-26 17:31:06 UTC
Created attachment 192513 [details, diff]
reverts a change in kde-functions.eclass to allow =app-office/kword-1.6.3-r2 (among others) to build

(In reply to comment #2)
> (In reply to comment #0)
> > Although that bug is still open, it appears that a similar patch has already
> > been applied to the tree.  I reverted the changes locally, and now I can merge
> > 'kword' and 'karbon' without issue.
> 
> Not here, emerge of karbon and kword still fails. Patching the eclass according
> to the patch in the bug doesn't change it.
> 
Did you do a forward or reverse patch?  I actually made the changes by hand myself.

I've attached the exact change I made to my kde-functions.eclass... maybe that will work for you too.
Comment 4 Holger Ackermann 2009-05-26 19:10:01 UTC
(In reply to comment #3)
> I've attached the exact change I made to my kde-functions.eclass... maybe that
> will work for you too.

Thanks, works for me. Seems this time I succeeded in patching the eclass...


Comment 5 DEMAINE Benoît-Pierre, aka DoubleHP 2009-06-05 17:16:04 UTC
Attached file does not work (on my system, line numbering are not the same), but manual edit does the job.

moon-gen-3 gnetman # diff -Naur /usr/portage/eclass/kde-functions.eclass-old /usr/portage/eclass/kde-functions.eclass-new
--- /usr/portage/eclass/kde-functions.eclass-old        2009-06-05 19:15:31.000000000 +0200
+++ /usr/portage/eclass/kde-functions.eclass-new        2009-06-05 19:08:51.000000000 +0200
@@ -717,11 +717,18 @@
        if [[ -n "$KDEPREFIX" ]]; then
                export PREFIX="$KDEPREFIX"
        else
+#              if [[ -z "$KDEBASE" ]]; then
+#                      PREFIX="/usr/kde/3.5"
                if [[ -z "$KDEBASE" ]]; then
-                       PREFIX="/usr/kde/3.5"
+                       case $PN in
+                               libkipi|libkdcraw|libkexiv2) export PREFIX="/usr/kde/3.5";;
+                               *) export PREFIX="/usr";;
+                       esac
+
                else
                        case $KDEMAJORVER.$KDEMINORVER in
-                               3*) export PREFIX="/usr/kde/3.5";;
+#                              3*) export PREFIX="/usr/kde/3.5";;
+                               3.5) export PREFIX="/usr/kde/3.5";;
                                5.0) export PREFIX="/usr/kde/svn";;
                                *) die "failed to set PREFIX";;
                        esac
@@ -745,7 +752,8 @@
                else
                        # kde-base ebuilds must always use the exact version of kdelibs they came with
                        case $KDEMAJORVER.$KDEMINORVER in
-                               3*) export KDEDIR="/usr/kde/3.5";;
+#                              3*) export KDEDIR="/usr/kde/3.5";;
+                               3.5) export KDEDIR="/usr/kde/3.5";;
                                5.0) export KDEDIR="/usr/kde/svn";;
                                *) die "failed to set KDEDIR";;
                        esac
moon-gen-3 gnetman #
Comment 6 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2009-06-05 17:49:13 UTC
No, the solution is to prefix koffice to /usr/kde/3.5 as all kde3 apps are now, and slot it in :3.5, i'll do it tomorrow (maybe today if i hurry up)
Comment 7 Laurent Bachelier 2009-06-13 15:49:27 UTC
emerge -De koffice-meta "fixed" it.
Comment 8 DEMAINE Benoît-Pierre, aka DoubleHP 2009-06-15 19:51:12 UTC
(In reply to comment #7)
> emerge -De koffice-meta "fixed" it.
> 

This kind of things are not a fix; -D is a standard maintainance option for updating your machine. I emerge -DaNuv world every week. Not using -D will "of course" lead you to broken machine.

What "may" have been usefull would have been to give the list of packages -D made you remerge (but I fear -e makes this useless).
Comment 9 Laurent Bachelier 2009-06-15 20:03:06 UTC
I know what -D does.
Every package was up to date on my system.
I tried to recompile all the dependencies with -eD and it worked. I understand my input as little meaning as this command nearly recompiles the entire system.

(In reply to comment #8)
> (In reply to comment #7)
> > emerge -De koffice-meta "fixed" it.
> > 
> 
> This kind of things are not a fix; -D is a standard maintainance option for
> updating your machine. I emerge -DaNuv world every week. Not using -D will "of
> course" lead you to broken machine.
> 
> What "may" have been usefull would have been to give the list of packages -D
> made you remerge (but I fear -e makes this useless).
> 

Comment 10 Andreas Plesch 2009-06-17 17:08:27 UTC
Today revdep-rebuild on my system suggested to reemerge karbon which then failed with the above symptoms. Just a heads up that the problem is still there.

Comment 11 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2009-06-20 14:09:15 UTC
just try to re-emerge koffice-libs this should fix it
Comment 12 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2009-06-20 14:10:20 UTC
And also please update to koffice-meta-1.6.3_p20090204, it is going to be stabilized soon
Comment 13 Theo Chatzimichos (RETIRED) archtester gentoo-dev Security 2009-11-22 11:31:36 UTC
old and fixed