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: 1. 2. 3.
/usr/lib/portage/bin/ebuild.sh dyn_unpack() .... that's the place where i would like a test for the option to emerge, and yet another copy of the: newstuff="yes" rm -rf "${WORKDIR}"
still works here, could you provide your `emerge --info` ?
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 1.4.3.13 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 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-mcpu=athlon-tbird -march=athlon-tbird -pipe -O3" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" 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" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache digest keeptemp keepwork noauto noclean nostrip sandbox userpriv usersandbox" GENTOO_MIRRORS="http://www.ibiblio.org/pub/linux/distributions/gentoo ftp://ftp.unina.it/pub/linux/sunsite/Gentoo http://cnuce-arch.cnr.it/Linux/distributions/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages.k7" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" 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"
i changed my /usr/lib/portage/bin/ebuild.sh 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 #mmc: newstuff="yes" rm -rf "${WORKDIR}" #end mmc
If you want emerge to clean the WORKDIR don't set FEATURES="keepwork"
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.
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. ;)
Closing due to old age.