see below Reproducible: Always Steps to Reproduce: 1. ebuild /usr/portage/sys-libs/db/db-1.85-r1.ebuild unpack Actual Results: >>> md5 src_uri ;-) db.1.85.tar.gz /usr/lib/portage/bin/ebuild.sh: line 1702: /var/db/pkg/sys-libs/db-1.85-r1/db-1.85-r1.ebuild: No such file or directory !!! ERROR: sys-libs/db-1.85-r1 failed. !!! Function , Line 1702, Exitcode 1 !!! error sourcing ebuild !!! If you need support, post the topmost build error, NOT this status message. Gentoo Base System version 1.4.16 Portage 2.0.51.19 (default-linux/x86/2004.0, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.11.2 i686) ================================================================= System uname: 2.6.11.2 i686 AMD Athlon(tm) XP 2600+ Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 8 2005, 20:00:50)] distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [disabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.5, 1.7.9-r1, 1.4_p6, 1.9.4, 1.6.3, 1.8.5-r3 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CXXFLAGS="-O2 -march=athlon-xp -pipe" FEATURES="autoaddcvs autoconfig buildpkg distlocks sandbox sfperms" MAKEOPTS="-j2" USE="x86 X aalib apm arts avi berkdb bitmap-fonts cdr crypt cups curl directfb dvd dvdr dvdread emboss encode esd fam flac font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imagemagick imlib ipv6 java jpeg ldap libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg mysql ncurses oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby samba sdl slang sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts xml xml2 xmms xv zlib video_cards_nvidia" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
i tried: 1) emerge -C db 2) ebuild /usr/portage/sys-libs/db/db-1.85-r1.ebuild unpack and i could reproduce problem i also tried with other ebuild functions and other packages and the same problem appears....
rm -rf /var/tmp/portage... Problem still happen?
I use a different compilation directory so that would be: # rm -rf $(portageq envvar PORTAGE_TMPDIR)/portage # ebuild /usr/portage/sys-libs/db/db-1.85-r1.ebuild unpack >>> md5 src_uri ;-) db.1.85.tar.gz >>> Unpacking source... >>> Unpacking db.1.85.tar.gz to /big/portage_tmp/portage/db-1.85-r1/work * Applying db.1.85.patch ... [ ok ]>>> Source unpacked. and that seems to work!
so will "unmerge" need to remove all files-related of PORTAGE_TMPDIR? or is it about a flag or sthg?
It doesn't make sense to me if you tried with other packages as well unless they fall under the same umbrella, but if you only tried with db and db had previously failed to unmerge in the past it would make perfect sense.
(In reply to comment #1) > i tried: > 1) emerge -C db > 2) ebuild /usr/portage/sys-libs/db/db-1.85-r1.ebuild unpack > and i could reproduce problem I can reproduce this using portage-2.0.51.22-r2.
Portage seems to be using ${PORTAGE_TMPDIR}/portage/${P}/temp/environment from the previous unmerge operation. That is where the vardb ${EBUILD} variable comes from.
The environment pollution occurs in the following block when "ebuild.sh setup" is called: if [ "$*" != "depend" ] && [ "$*" != "clean" ] && [ "$*" != "nofetch" ]; then if [ -f "${T}/environment" ]; then source "${T}/environment" &>/dev/null fi fi This problem is related to bug 105706 which reports "environment" and "eclass-debug.log" being left behind in ${T} after each unmerge.
*** Bug 125391 has been marked as a duplicate of this bug. ***
This is fixed in r2844 for release in 2.1_pre6.
Released in 2.1_pre6.