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

Bug 173657

Summary: emerge soft resume after crash.
Product: Gentoo Linux Reporter: Maciej Piechotka <uzytkownik2>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED WONTFIX    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Maciej Piechotka 2007-04-07 12:43:04 UTC
There are few packages which takes a lot of time to build (gcj, gcc for example). If something break(there would be cut in power supply etc.) I have two options:
- See if I can run make in $(WORKDIR) and with which options
- Rerun emerge and pray it won't happend second time

It could be a special method for example:

pkg_softresume() {
    [ -a Makefile ] || ./configure --prefix=/usr
    make
}

and I could do emerge --soft-resume or something like that. Of course default should be something like:

pkg_softresume() {
    die "This package have no support for soft resume"
}
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2007-04-07 12:49:48 UTC
you can use FEATURES=keepwork to not remove the already compiled sources - usually make then resumes at the point where it broke
Comment 2 Maciej Piechotka 2007-04-07 12:58:14 UTC
(In reply to comment #1)
> you can use FEATURES=keepwork to not remove the already compiled sources -
> usually make then resumes at the point where it broke
> 

You misundersttod me - I know I can enter the directory and do something like

make && cd ~ && ebuild /usr/portage/.... install preinst qmerge postinst clean

But it's hard

PS.
When something crash(like power supply) I don't need the keepwork feature ;). I'd like to extend emerge --resume to not delete the work it have already done(by deleting unpacking and compiling once again).
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-04-07 13:06:41 UTC
Well, if you system crashed, then relying on the unknown results of unfinished compile is plain whacky. 
Comment 4 Maciej Piechotka 2007-04-07 13:47:26 UTC
Well - make supports such feature (and it would be provided to not all packages). Provided the fs is not damaged I can't see what is danger in.