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.
Portage calls the clean phase on successful merges already... wiping the directory when a build fails isn't much of an option however.