Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417755 - Record emerge stages.
Summary: Record emerge stages.
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Conceptual/Abstract Ideas (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-27 12:41 UTC by C. Wijtmans
Modified: 2012-05-27 22:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description C. Wijtmans 2012-05-27 12:41:56 UTC
Record a stage file in temporary working directory.
This prevents failed builds to unpack downloaded files every time and should be easy to implement.
Also introduce a new flag --start-clean or something similar that ignores stages.
After unpacking files set the stage file in the temporary working to dir to 1 as an example.
Comment 1 Zac Medico gentoo-dev 2012-05-27 21:43:28 UTC
It already does this by creating a hidden file for each ebuild phase. For example, the unpack phase creates a file named '.unpacked'. By default, emerge cleans all previous work before beginning. You can use FEATURES=keepwork to keep previous work, but this feature can cause problems, so it's recommended to disable it when you don't need it.

You might also be interested in the ebuild(1) command, which doesn't clean automatically, so you don't need FEATURES=keepwork with that.
Comment 2 C. Wijtmans 2012-05-27 22:36:58 UTC
Do you think it will be possible to let some ebuilds that are not known to cause any problems to keepwork by default?
Comment 3 Zac Medico gentoo-dev 2012-05-27 22:45:12 UTC
No, this kind of behavior is just too error-prone, so it's only useful when someone is intimately familiar with the consequences (like when an ebuild developer actively working on fixing a particular ebuild).