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

Bug 731736

Summary: emerge: an option to wipe PORTAGE_TMPDIR before emerge starts
Product: Portage Development Reporter: Agostino Sarubbo <ago>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=937037
Whiteboard:
Package list:
Runtime testing required: ---

Description Agostino Sarubbo gentoo-dev 2020-07-08 13:44:23 UTC
$summary

this can be useful to me in tinderbox work

Just FTR, if the option should do its job before emerge starts, then fine. If the option should do its job before do anything with each ebuild (so done multiple times when e.g. emerge is emerging 10 packages) it should not be compatible with -j
Comment 1 Zac Medico gentoo-dev 2020-07-08 19:21:41 UTC
We have FEATURES=fail-clean which is intended for a similar type of scenario. I guess you don't want to use FEATURES=fail-clean because you need to collect some information from PORTAGE_TMPDIR after a build failure?  If so, maybe you could automate that by using register_die_hook in /etc/portage/bashrc to register a function to do whatever it is that you need to do.