Emerge of kmplayer-0.7.3 fails with "no configure script found". It looks like this is because the bz2 file doesn't create the directory "/var/tmp/portage/kmplayer-0.7.3/work/kmplayer". When I look in "/var/tmp/portage/kmplayer-0.7.3/work/" all I find is the uncompressed tar file. Reproducible: Always Steps to Reproduce: 1. emerge kmplayer Actual Results: Calculating dependencies ...done! >>> emerge (1 of 1) media-video/kmplayer-0.7.3 to / >>> md5 ;-) kmplayer-0.7.3.tar.bz2 >>> Unpacking source... >>> Unpacking kmplayer-0.7.3.tar.bz2 to /var/tmp/portage/kmplayer-0.7.3/work /usr/sbin/ebuild.sh: line 37: cd: /var/tmp/portage/kmplayer-0.7.3/work/kmplayer: No such file or directory /usr/sbin/ebuild.sh: line 43: cd: /var/tmp/portage/kmplayer-0.7.3/work/kmplayer: No such file or directory >>> Source unpacked. /usr/sbin/ebuild.sh: line 64: cd: /var/tmp/portage/kmplayer-0.7.3/work/kmplayer: No such file or directory /usr/sbin/ebuild.sh: line 64: cd: /var/tmp/portage/kmplayer-0.7.3/work/kmplayer: No such file or directory !!! ERROR: media-video/kmplayer-0.7.3 failed. !!! Function kde_src_compile, Line 107, Exitcode 1 !!! no configure script found, generation unsuccessful Portage 2.0.47-r10 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-gentoo-r2 i686 AMD Athlon(tm) XP 1600+ GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb:/usr/kde/3.1/share/config:/usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi crypt encode gif gpm jpeg libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts svga java sdl tcpd pam libwww ssl perl python imlib oggvorbis motif opengl mozilla scanner X qt kde alsa cups dvd tetex -gtk -gnome -esd" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
It works here. Are you sure the tar file is correct?
do other ebuilds work? a friend had the same problem, it was a broken sed (which always returned a segfault) -> ebuild.sh couldn't parse .tar.bz2 and only bunzip2ed the tarball. insert an 'echo $y' in /usr/sbin/ebuild.sh line 276. (after the "bz2)").
As hannes suggested I modified ebuild.sh as follows, bz2) echo "debug \$y:${y}" if [ "${y}" == "tar" ]; then tar xj --no-same-owner -f ${DISTDIR}/${x} || die "$myfail" On running it appears tha $y is completely empty at this stage. So i guess it may well be a sed bug
As for Pauls' comment I have extracted the tar file in /var/tmp/portage/kmplayer-0.7.3/work/ using "tar xf kmplayer-0.7.3.tar". That worked fine however emerge kmplayer still fails.
other ebuilds work? echo kmplayer-0.7.3.tar.bz2 | sed 's:.*\.\(tar\)\.[a-zA-Z0-9]*:\1:' should return 'tar'; export x='kmplayer-0.7.3.tar.bz2'; echo ${x##*.} should return 'bz2' please try recompiling sed.
Its sed thats the problem, stewart@orb stewart $ echo $x | sed 's:.*\.\(tar\)\.[a-zA-Z0-9]*:\1:' Segmentation fault Problem is I can't run emerge sed even if a force $y="tar" because the configure script dies. I guess I must have updated to a buggy sed when I emerged world last night. Unless anyone has a better suggestion I'll just find a compiled working sed somewhere and use that
Got hold of a working sed then did "emerge sed". Everything working now :). I guess that my sed binary must have got corrupted somehow. Thanks for your help
you're welcome. marking as fixed.