
What sometimes fails? It fails to remove files even when emerging was successful? Because I have tons of crap from ebuilds which never failed to merge for me o.O Time to go use tmpreaper and spare me the hassle."These files and folder are usually deleted upon a successful merge, but this sometimes fails. "
As for cleaning, you may also want to read the FAQ SA1: Running out of disk space.Zxynax wrote:posts like this are great, they always point out useful software that are sometimes overlooked. Or remind us to visit the FAQ every so often.
can't remember it all......

I don't know if this is the reason but if you rm -rf /var/tmp/portage/ and then try to emerge --resume it won't work - the emerge will start from the begining.dirtyepic wrote:if the emerge was successful, all that will be left is /var/tmp/portage/package-ver/temp/eclass-debug.log and environment. actually, i dunno why they're left behind.
Hmm... perhaps they are used by emerge to determine the flags the package was compiled with? There should be a valid reason why they were not removed afterall. However, I don't see any valid reason on why those directories/files still remain behind after you upgrade. For example, I had a bunch of directories since Gaim-1.0.0 until my current version, obviously -even if portage uses those files- there was no need for the files/directories left behind after the package got upgraded. Sounds like a small deficiency/bug in portage to me.dirtyepic wrote:if the emerge was successful, all that will be left is /var/tmp/portage/package-ver/temp/eclass-debug.log and environment. actually, i dunno why they're left behind.
No, /var/db/pkg.Skotlex wrote:Hmm... perhaps they are used by emerge to determine the flags the package was compiled with?dirtyepic wrote:if the emerge was successful, all that will be left is /var/tmp/portage/package-ver/temp/eclass-debug.log and environment. actually, i dunno why they're left behind.
tmp means TEMPORARY. This WORKDIR is where the actual compiling takes place. You can remove these files whenever you want as long as emerge isn't running and there's no emerge you want to --resume.There should be a valid reason why they were not removed afterall. However, I don't see any valid reason on why those directories/files still remain behind after you upgrade. For example, I had a bunch of directories since Gaim-1.0.0 until my current version, obviously -even if portage uses those files- there was no need for the files/directories left behind after the package got upgraded. Sounds like a small deficiency/bug in portage to me.
Sorry for being persistent, but if tmp is for temporary, why it is not cleaned on reboot together with /tmp? I am certain I must have rebooted my system a few times since I installed Gaim 1.0.0 :Pansient wrote:tmp means TEMPORARY.
/tmp is for temporary data that does not persist across reboots. /var/tmp is for temporary data that does persist across reboots.Skotlex wrote:Perhaps I'll just take my gripe to the gentoo-bugzilla, or someone here already has a good reason why /var/tmp/portage shouldn't somehow be automatically cleaned?


If it is temporary then it must be cleaned upon some condition, right ? /var/tmp/portage seems to accumulate leftover, composed mostly of debug information.spb wrote:/tmp is for temporary data that does not persist across reboots. /var/tmp is for temporary data that does persist across reboots.Skotlex wrote:Perhaps I'll just take my gripe to the gentoo-bugzilla, or someone here already has a good reason why /var/tmp/portage shouldn't somehow be automatically cleaned?
I'll go file a bug report suggesting that the /var/tmp/portage directory of a package should be cleaned when performing an "emerge -C" (which includes removing previous versions when upgrading), seems like the most sane/easy decision. Or make it delete the directory contents as soon as the emerge is successfully completed, altough as I don't know what use these remaining files have, it might not be appropiate to get rid of them inmediately.spb wrote:/tmp is for temporary data that does not persist across reboots. /var/tmp is for temporary data that does persist across reboots.Skotlex wrote:Perhaps I'll just take my gripe to the gentoo-bugzilla, or someone here already has a good reason why /var/tmp/portage shouldn't somehow be automatically cleaned?