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" }
you can use FEATURES=keepwork to not remove the already compiled sources - usually make then resumes at the point where it broke
(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).
Well, if you system crashed, then relying on the unknown results of unfinished compile is plain whacky.
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.