Emerging a package leaves files "eclass-debug.log" and "environment" in the /var/tmp/portage/<package>/temp directory. Especially the "environment" file is quite large and it accumulates over time, while the files are of no obvious usefulness and likely serve only portage debugging and therefore be by default deleted - if they are of any use, they shouldn't be in /var/tmp/portage. It also hides possible huge temporary directories left over by packages whose emerging was interrupted. Reproducible: Always Steps to Reproduce: 1. emerge plenty of packages 2. admire the huge /var/tmp/portage directory Actual Results: /var/tmp/portage/<packagename>/temp/* is left over after each emerge. Expected Results: It should delete /var/tmp/portage/<packagename> after the merge is successfully over. Gentoo Base System version 1.6.13 Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1, 2.6.12-gentoo-r10 i686) ================================================================= System uname: 2.6.12-gentoo-r10 i686 AMD Athlon(tm) XP 2000+ ccache version 2.3 [enabled] dev-lang/python: 2.3.5-r2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-mcpu=athlon-xp -march=athlon-xp -fomit-frame-pointer -O2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/qmail/control /var/run/dspam /var/spool/dspam" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-mcpu=athlon-xp -march=athlon-xp -fomit-frame-pointer -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy ccache distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/share/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 3dnow X aac aalib adns alsa apache2 apm audiofile avi bash-completion bitmap-fonts calendar cdparanoia cdr crypt ctype cups curl doc dvd dvdr dvdread eds emboss encode fam fb fbcon foomaticdb fortran gd gdbm ggi gif gpm graphviz gstreamer gtk gtk2 guile imagemagick imlib ipv6 jpeg latex libcaca libg++ libwww live lm_sensors lua mad matroska mbox mikmod mime mmap mmx motif mozilla mp3 mpeg mysql ncurses nls nptl nptlonly ogg oggvorbis opengl opie oss pam pcre pda pdflib perl perlsuid png posix procmail profile python qt quicktime readline real recode rtc sdl shared sharedmem slang sockets spell sqlite sse ssl svga tcltk tcpd tetex tidy tiff truetype truetype-fonts type1-fonts vcd vorbis wmf xine xml2 xmms xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
I already discussed a similar issue myself on #gentoo-portage. I can confirm this problem. Additionally - for me at least - portage leaves *everything* in /var/tmp/portage, the whole work, image, temp subtrees and sources/temp files when I do 'emerge -B some-ebuild'. Of course, a lot of cruft accumulater really quickly and /var runs out of disk space periodically. :( P.S. No, I *don't* have keeptemp or keepwork in FEATURES. ;)
(In reply to comment #0) > Emerging a package leaves files "eclass-debug.log" and "environment" Actually, it is when the previous version is unmerged that ${T}/{eclass-debug.log,environment} are left behind. That makes the reported issue a duplicate of bug 85803. (In reply to comment #1) > Additionally - for me at least - portage leaves *everything* in > /var/tmp/portage, the whole work, image, temp subtrees and sources/temp files > when I do 'emerge -B some-ebuild'. Jakub, have you resolved your issue? If so, do you know what caused it?
(In reply to comment #2) > Jakub, have you resolved your issue? If so, do you know what caused it? No, it's still broken here and I have NFC what's the problem. :-(
i dont think it's broken the behavior i see is: - /var/tmp/portage is empty - i install package test-0 - /var/tmp/portage has the 'test-0' subdir cleaned out - i upgrade to test-1 - /var/tmp/portage has the 'test-1' subdir cleaned out but the 'test-0' is left behind
(In reply to comment #4) > the behavior i see is: > - /var/tmp/portage is empty > - i install package test-0 > - /var/tmp/portage has the 'test-0' subdir cleaned out > - i upgrade to test-1 > - /var/tmp/portage has the 'test-1' subdir cleaned out but the 'test-0' is left > behind Well, what I see here is that anything emerged with -B leaves all the cruft behind; don't think this should be considered a feature...
Okay, I did emerge -B somepackage and got the same results as Jakub. The code inside emerge clearly shows that the "clean" target is only run after the merge if "--buildpkgonly" not in myopts.
This is in svn r2840 for release in 2.1_pre6.
Released in 2.1_pre6.