Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85803 - /var/tmp/portage should be cleaned after unmerging
Summary: /var/tmp/portage should be cleaned after unmerging
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 125391 (view as bug list)
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2005-03-18 11:29 UTC by Evert
Modified: 2006-03-11 14:02 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 Evert 2005-03-18 11:29:59 UTC
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
Comment 1 Marco Morales 2005-03-20 18:10:54 UTC
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....
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2005-04-12 06:35:20 UTC
rm -rf /var/tmp/portage... Problem still happen?
Comment 3 Evert 2005-04-12 10:36:27 UTC
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!
Comment 4 Marco Morales 2005-04-12 11:01:39 UTC
so will "unmerge" need to remove all files-related of PORTAGE_TMPDIR? or is it about a flag or sthg?
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2005-04-13 04:31:22 UTC
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.
Comment 6 Zac Medico gentoo-dev 2005-09-04 19:25:33 UTC
(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.
Comment 7 Zac Medico gentoo-dev 2005-09-04 21:23:25 UTC
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.
Comment 8 Zac Medico gentoo-dev 2005-09-15 14:06:39 UTC
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.
Comment 9 Zac Medico gentoo-dev 2006-03-07 12:42:05 UTC
*** Bug 125391 has been marked as a duplicate of this bug. ***
Comment 10 Zac Medico gentoo-dev 2006-03-10 17:36:29 UTC
This is fixed in r2844 for release in 2.1_pre6.
Comment 11 Zac Medico gentoo-dev 2006-03-11 14:02:57 UTC
Released in 2.1_pre6.