Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44398 - emerge doesn't remove the build directory /usr/tmp/portage/XXX-version
Summary: emerge doesn't remove the build directory /usr/tmp/portage/XXX-version
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
Depends on:
Reported: 2004-03-11 15:41 UTC by Michal Maruska
Modified: 2007-01-11 12:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Michal Maruska 2004-03-11 15:41:38 UTC
in previous versions of portage, emerge XX ,implicitely as the first step, removed (if existing) the directory used by the previous run.
Now, 2.0.50 doesn't do it, it tries to reuse the unpacked sources. 
I would like to have an option to emerge, which does this first step.
I need it, when i apply a patch in the unpack step, and when i change this patch, and rerun emerge.

Reproducible: Always
Steps to Reproduce:
Comment 1 Michal Maruska 2004-03-11 16:33:51 UTC
/usr/lib/portage/bin/   dyn_unpack() .... that's the place where i would like a test for the option to emerge, and yet another copy of the:
rm -rf "${WORKDIR}"
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2004-03-11 17:22:32 UTC
still works here, could you provide your `emerge --info` ?
Comment 3 Michal Maruska 2004-03-12 02:49:30 UTC
emerge --info:

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r1,2.3.2-r9, 2.4.25)
System uname: 2.4.25 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version
distcc 2.11.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
CFLAGS="-mcpu=athlon-tbird -march=athlon-tbird -pipe -O3"
CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=athlon-tbird -march=athlon-tbird -pipe -O3"
FEATURES="autoaddcvs ccache digest keeptemp keepwork noauto noclean nostrip sandbox userpriv usersandbox"
USE="3dnow X aalib alsa apm arts avi berkdb bonobo bonono cdr crypt cups dga directfb doc dvd emacs encode esd evo fbcon flash foomaticdb gb gd gdbm ghpoto2 gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile icc icc-pgo imap imlib innodb java jikes jpeg kde lcms ldap leim libg++ libgda libwww lua mad maildir matrox mikmod mmx motif mozctl mozilla mozirc mozxmlterm mpeg mule mysql nas ncurses nls odbc oggvorbis opengl oss pam pdflib perl pic plotutils png postgres python qt qtmt quicktime readline ruby samba sane scanner sdl slang slp snmp spell sse ssl svga tcltk tcpd tetex tiff truetype x86 xface xml xml2 xmms xv zlib"
Comment 4 Michal Maruska 2004-03-12 02:53:34 UTC
i changed my /usr/lib/portage/bin/  this way. I shoul make it conditional, and depend on a setting/optional argument to emerge....

dyn_unpack() {
	trap "abort_unpack" SIGINT SIGQUIT
	local newstuff="no"
	if [ -e "${WORKDIR}" ]; then
		local x
		local checkme
                rm -rf "${WORKDIR}"
#end mmc
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2004-03-12 03:17:17 UTC
If you want emerge to clean the WORKDIR don't set FEATURES="keepwork"
Comment 6 Michal Maruska 2004-03-12 04:01:45 UTC
but i want to keep the work directory, until i do another _emerge_, not a simple, explicit ebuild XXX YYY ..., or until i remove it with other tools.

That was the behaviour 2 versions ago --I guess -- before the recycling was introduced. I just want an _option_ to keep the old behaviour.
Comment 7 Jason Stubbs (RETIRED) gentoo-dev 2005-07-28 07:25:27 UTC
Putting a hold on feature requests for portage as they are drowning out the 
bugs. Most of these features should be available in the next major version of 
portage. But for the time being, they are just drowning out the major bugs and 
delaying the next version's progress. 
Any bugs that contain patches and any bugs for etc-update or dispatch-conf can 
be reopened. Sorry, I'm just not good enough with bugzilla. ;) 
Comment 8 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 12:56:42 UTC
Closing due to old age.