Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 17990

Summary: Emerge should do better cleaning of the garbage.
Product: Portage Development Reporter: Sergey Kuleshov (RETIRED) <svyatogor>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED WONTFIX    
Severity: enhancement    
Priority: High    
Version: 2.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sergey Kuleshov (RETIRED) gentoo-dev 2003-03-22 05:14:51 UTC
It would be a good idea if emerge would either do it automatically or had a
special option for cleaning out the /var/tmp/portage directory. It is especially
important for those packages whos build failed or was interrupted, as they leave
behind the work directory, which might be quite big (especially with packages
like kdelibs for example).

Reproducible: Always
Steps to Reproduce:
1. Emerge a package (say kdelibs).
2. Cancel the make process.
3. Look at the /var/tmp/portage/kdelibs-*something*/work

Actual Results:  
Disk space is wasted for unpacked sources.

Expected Results:  
Emerge should clean the automatically.
Comment 1 Brian Harring (RETIRED) gentoo-dev 2005-02-27 22:29:36 UTC
Portage calls the clean phase on successful merges already... wiping the directory when a build fails isn't much of an option however.