Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 273983 - kde-base/*-4.2.4 fails to build
Summary: kde-base/*-4.2.4 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks: 277868
  Show dependency tree
 
Reported: 2009-06-13 11:39 UTC by DamirK
Modified: 2009-09-02 22:25 UTC (History)
2 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 DamirK 2009-06-13 11:39:26 UTC
Packages from kdebase-4.2.4 fail to build. 



Reproducible: Always

Steps to Reproduce:
1.Emerge any package from kdebase-4.2.4.tar.bz2 


Actual Results:  
Example:
>>> Emerging (2 of 130) kde-base/libkonq-4.2.4
 * kdebase-4.2.4.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                             [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                 [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                [ ok ]
 * checking miscfile checksums ;-) ...                                                                                               [ ok ]
>>> Unpacking source...                                                                                                                   
 * Unpacking parts of kdebase-4.2.4.tar.bz2 to /var/tmp/portage/kde-base/libkonq-4.2.4/work ...                                           
mv: cannot stat `kdebase-4.2.4/': No such file or directory                                                                               
 *                                                                                                                                         
 * ERROR: kde-base/libkonq-4.2.4 failed.                                                                                                   
 * Call stack:                                                                                                                             
 *               ebuild.sh, line   49:  Called src_unpack                                                                                 
 *             environment, line 3813:  Called kde4-meta_src_unpack                                                                       
 *             environment, line 3049:  Called kde4-meta_src_extract                                                                       
 *             environment, line 2994:  Called die                                                                                         
 * The specific snippet of code:                                                                                                           
 *           mv ${topdir} ${P} || die "Died while moving \"${topdir}\" to \"${P}\"";                                                       
 *  The die message:                                                                                                                       
 *   Died while moving "kdebase-4.2.4/" to "libkonq-4.2.4"                                                                                 
 *                                                                                                                                         
 * 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/kde-base/libkonq-4.2.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-base/libkonq-4.2.4/temp/environment'.
 *

>>> Failed to emerge kde-base/libkonq-4.2.4, Log file:

>>>  '/var/tmp/portage/kde-base/libkonq-4.2.4/temp/build.log'

 * Messages for package kde-base/libkonq-4.2.4:

 *
 * ERROR: kde-base/libkonq-4.2.4 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_unpack
 *             environment, line 3813:  Called kde4-meta_src_unpack
 *             environment, line 3049:  Called kde4-meta_src_extract
 *             environment, line 2994:  Called die
 * The specific snippet of code:
 *           mv ${topdir} ${P} || die "Died while moving \"${topdir}\" to \"${P}\"";
 *  The die message:
 *   Died while moving "kdebase-4.2.4/" to "libkonq-4.2.4"
 *
 * 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/kde-base/libkonq-4.2.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-base/libkonq-4.2.4/temp/environment'. 



Package kdebase-4.2.4 includes:
kfind, plasma-apps, libkonq, keditbookmarks, kdialog, kdepasswd, kinfocenter, konqueror, konsole, nsplugins

They all fail at "mv: cannot stat `kdebase-4.2.4/': No such file or directory                                      "
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2009-06-13 11:40:59 UTC
How about posting emerge --info
Comment 2 DamirK 2009-06-13 11:46:50 UTC
Modifying ebuilds I managed to resolve this:

changed 

KMNAME="kdebase-apps"
KMMODULE="lib/konq"

to

KMNAME="kdebase"
KMMODULE="apps/lib/konq/"


I got this from libkonq-4.2.1.ebuild

Did the same with every other ebuild from kdebase-4.2.4 group of packages
Comment 3 DamirK 2009-06-13 11:56:23 UTC
emerge --info
Portage 2.2_rc33 (default/linux/x86/2008.0/desktop, gcc-4.1.2, glibc-2.9_p20081201-r2, 2.6.25-gentoo-r7 i686)
=================================================================                                            
System uname: Linux-2.6.25-gentoo-r7-i686-AMD_Athlon-tm-_64_Processor_3200+-with-glibc2.0                    
Timestamp of tree: Sat, 13 Jun 2009 08:00:01 +0000                                                           
app-shells/bash:     3.2_p17-r1                                                                              
dev-java/java-config: 1.3.7, 2.1.6-r1                                                                        
dev-lang/python:     2.4.2, 2.5.2-r2                                                                         
dev-python/pycrypto: 2.0.1-r6                                                                                
dev-util/cmake:      2.6.3
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1, 1.10.1
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.24
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe -finline-functions"
CHOST="i686-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/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=k8 -pipe -finline-functions -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en hr"
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 --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac accessibility acl acpi alsa apache2 asf avi berkdb bitmap-fonts branding bzip2 cairo cdr cli consolekit cracklib crypt cups dbus dri dts dvd dvdr dvdread eds embedded emboss encode evo fam firefox gdbm gif glitz gpm gstreamer gtk gtk2 hal iconv ipodipv6 isdnlog jpeg kde kdeenablefinal libnotify live mad maildir matroska mbox midi mikmod mmx mmxext mng mp3 mpeg mudflap musepack mysql ncurses network newspr nls nptl nptlonly nvidia ogg oggvorbis opengl openmp oscar pam pcre pdf perl png ppds pppd python qt qt3 qt3support qt4quicktime readline reflection sdl session sms spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype truetype-fonts type1-fontsunicode usb utf8 vnc vorbis webkit win32codecs wlm x264 x86 xcb xcomposite xine xml xorg xulrunner xv xvid xvmc zeroconf zlib" ALSA_CARDS="intel8x0" 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 hr" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2009-06-13 11:59:29 UTC
Update your bash at least to bash-3.2_p39 or later please. And try again some of the broken ones.
Comment 5 DamirK 2009-06-13 14:49:13 UTC
upgrading bash to bash-3.2_p39 does not resolve the problem
Comment 6 Maciej Mrozowski gentoo-dev 2009-06-15 18:31:49 UTC
Well, that's very strange - please try updating your system first (emerge -vaDu world).
Do you happen to have userland_GNU use flag disabled for app-arch/tar ? (so that it possibly wouldn't support regular expressions - even though it's very doubtful)
Comment 7 Alex Alexander (RETIRED) gentoo-dev 2009-07-23 22:28:39 UTC
Maybe an old kde eclass in an overlay is overriding the portage one, 
creating havoc?

I'm marking this bug as NEEDINFO,
feel free to re-open it if you need further help :)
Comment 8 Jack Greenbaum 2009-08-18 03:33:42 UTC
Upgrading bash to bash-3.2_p39 didn't solve it for me either, but moving to tar-1.20 did fix it. Looks like something to force people to upgrade tar would help. I didn't see what rev I had before, sorry. 
Comment 9 Jack Greenbaum 2009-08-18 03:34:20 UTC
And thanks to Emperor2k3 on #gentoo-kde for the help.
Comment 10 Tomáš Chvátal (RETIRED) gentoo-dev 2009-08-18 08:43:56 UTC
Looks like it is quite well explained
Comment 11 Kozak Daniel 2009-09-01 20:10:43 UTC
I have the same problem (4.3.0 and now 4.3.1 - did not have it before) with many packages belonging to kdebase. I emerged tar-1.20 (even 1.22 later) and bash-3.2_p39 already (I think I had these versions even before the problem appeared), but I still get the error. Any ideas? What should I post here to help finding the cause of the issue?
Comment 12 Maciej Mrozowski gentoo-dev 2009-09-01 21:52:37 UTC
scarabeus, we hould stamp our eclasses with some version, so that jus treading tmpdir/environment will tell us what eclass is being used.

@Daniel

Make sure the only kde overlay you use is 'kde-testing' (if any) - this is the most important.
Second, you could attach emerge --info and whole build log for one kde4 application that fails for you (libkonq for example as I suspect only kdebase-apps to fail if any).
Comment 13 Kozak Daniel 2009-09-02 15:15:06 UTC
Maciej, thanks for the reply. I forgot to write that after the error occurred, I also tried to disable all my overlays, but it made no difference. I even downloaded a new portage tree instead of just syncing.

Here is emerge --info:

Portage 2.2_rc40 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-zen1 i686)
=================================================================
System uname: Linux-2.6.30-zen1-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5200+-with-gentoo-2.0.1
Timestamp of tree: Wed, 02 Sep 2009 14:30:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.8-r1
dev-lang/python:     2.5.4-r3, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 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="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=k8 -march=k8 -msse3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.3/env /usr/kde/4.3/share/config /usr/kde/4.3/shutdown /usr/share/config"
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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=k8 -march=k8 -msse3 -pipe -fomit-frame-pointer -fvisibility-inlines-hidden"
DISTDIR="/store/distfiles/"
FEATURES="assume-digests distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US"
LDFLAGS="-Wl,-O1"
LINGUAS="hu en en_US en_GB"
MAKEOPTS="-j4"
PKGDIR="/store/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="/store/porttmp"
PORTDIR="/store/portage/"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="16bit 3dnow 3dnowext X a52 aac acl acpi akode alsa arts artswrappersuid avi bash-completion berkdb bitmap-fonts bluetooth branding bzip2 cairo cdr cli cracklib crypt cups custom-cxxflags dbus dga divx4linux dlloader dri dts dvd dvdr dvdread emboss encode evo exif faad fam ffmpeg firefox flac foomaticdb gd gdbm gif gimp glitz gpm gstreamer gtk2 hal iconv icq idn imagemagick imlib isdnlog jp2 jpeg jpeg2k kde kde4 kdeenablefinal kdehiddenvisibility kdeprefix kipi libnotify libsamplerate lzo lzw lzw-tiff mad mmx mmx2 mmxext monkey mp3 mp4 mpeg mudflap ncurses nls no_wxgtk1 nptl nptlonly nvidia ogg oggvorbis opengl openmp oss pam pch pcre pdf perl pic png policykit ppds pppd python qt qt3 qt3support quicktime readline reflection scanner sdl semantic-desktop session slp sndfile spell spl sse sse2 sse3 ssl startup-notification svg sysfs tetex threads thunar tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis win32codecs x264 x86 xcb xcomposite xine xml xml2 xorg xulrunner xv xvid xvmc zlib" ALSA_CARDS="intel8x0" 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" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="hu en en_US en_GB" SANE_BACKENDS="canon_pp" USERLAND="GNU" VIDEO_CARDS="none nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

The build log for libkonq:

>>> Unpacking source...
 [32;01m*[0m Unpacking parts of kdebase-4.3.1.tar.bz2 to /store/porttmp/portage/kde-base/libkonq-4.3.1/work ...
mv: cannot stat `kdebase-4.3.1/': No such file or directory
 [31;01m*[0m 
 [31;01m*[0m ERROR: kde-base/libkonq-4.3.1 failed.
 [31;01m*[0m Call stack:
 [31;01m*[0m               ebuild.sh, line   49:  Called src_unpack
 [31;01m*[0m             environment, line 4031:  Called kde4-meta_src_unpack
 [31;01m*[0m             environment, line 3253:  Called kde4-meta_src_extract
 [31;01m*[0m             environment, line 3198:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m           mv ${topdir} ${P} || die "Died while moving \"${topdir}\" to \"${P}\"";
 [31;01m*[0m  The die message:
 [31;01m*[0m   Died while moving "kdebase-4.3.1/" to "libkonq-4.3.1"
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant.
 [31;01m*[0m A complete build log is located at '/var/log/portage/kde-base:libkonq-4.3.1:20090902-150146.log'.
 [31;01m*[0m The ebuild environment file is located at '/store/porttmp/portage/kde-base/libkonq-4.3.1/temp/environment'.
 [31;01m*[0m 
Comment 14 Maciej Mrozowski gentoo-dev 2009-09-02 17:02:51 UTC
Hmm, what do we have here:

You override
PORTAGE_TMPDIR="/store/porttmp"
but I suppose it does not cause any issues here.

Please do sth like this:
1. go to /usr/portage/eclass
2. backup kde4-meta.eclass
3. in line kde4-meta.eclass:268 remove "2> /dev/null" (make it dump errors on terminal)
4. emerge -va1 libkonq:4.3

Now tar should show what's the problem with unpacking (permissions, destination directory does not exist, or sth)
Comment 15 Kozak Daniel 2009-09-02 19:16:58 UTC
After modifying kde4-meta.eclass the relevant error message appears:
"tar: Option --transform=s|apps/|| is not supported"

...which suggested investigating what kind of tar I'm actually using. As it turned out, my /usr/bin/tar symlink pointed to /bin/bsdtar instead of /bin/tar. Switching to the latter solved the problem, libkonq compiles fine now.

Again, many thanks for your help.
Comment 16 Maciej Mrozowski gentoo-dev 2009-09-02 21:11:44 UTC
Sweet, I never saw that coming.

Next time some I see some bug report about application immediately crashing on startup I'm going to ask, whether it's not actually symlink to some .so file :P
Comment 17 Maciej Mrozowski gentoo-dev 2009-09-02 21:12:46 UTC
Btw, how did it happen that you had your /usr/bin/tar symlinked to something else? I need to know what to prevent in the future.
Comment 18 Kozak Daniel 2009-09-02 22:25:03 UTC
Well, I'm afraid you would have to prevent a new Linux/Gentoo user (that was me, around 2005) experimenting when he reads on the forums that an alternative is better/faster than the default; then, seeing that it works (apparently), completely forgetting about that change over time ;-)