Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/var/tmp/portage
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
curmudgeon
Veteran
Veteran


Joined: 08 Aug 2003
Posts: 1740

PostPosted: Thu Feb 19, 2004 11:03 pm    Post subject: /var/tmp/portage Reply with quote

I just had an ebuild blow up after more than twenty-four hours
of compiling because it ran out of space on /var (a separate
filesystem). It ran out of space because remnants of past (failed)
ebuilds still haunted the system (about 3.5 GB worth when I
added them up).

Questions:

1. Do these directories and files have any value after a (successful)
ebuild, or can I just alias emerge to a script that calls the emerge
program, and then does an "rm -fr /var/tmp/portage" after the
program finishes (with an error code of 0).

2. Does portage have any options to clean this up. Simply removing
all of the directories from packages no longer on the system would
represent a huge step in the right direction, but an option to remove
them as part of the ebuild process (especially after, say, upgrading
to a new version of a package) seems even better.
Back to top
View user's profile Send private message
ecatmur
Advocate
Advocate


Joined: 20 Oct 2003
Posts: 3595
Location: Edinburgh

PostPosted: Thu Feb 19, 2004 11:36 pm    Post subject: Reply with quote

Unless you have FEATURES="noclean" Portage will delete almost everything in /var/tmp/portage/pkgspec after a successful merge. Your plan could work except it would cause problems when doing merges during an ebuild post-mortem. If you think that won't be a problem, then go for it; personally I rely on remembering to houseclean that area every few weeks or so.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum