Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2833 - RFE: allow portage to retry compiling an ebuild if failed
Summary: RFE: allow portage to retry compiling an ebuild if failed
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Daniel Robbins (RETIRED)
URL:
Whiteboard:
Keywords:
: 8775 (view as bug list)
Depends on:
Blocks: 2765
  Show dependency tree
 
Reported: 2002-05-18 16:14 UTC by Francisco León
Modified: 2011-10-30 22:21 UTC (History)
4 users (show)

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 Francisco León 2002-05-18 16:14:58 UTC
It's sick to start compiling kde again if i get a compiler error for example, 
when if i would be compiling it on my own i would just typed "make" and allow 
it to resume compiling. Because portage deletes the temp dirs when compiling is 
done (successful or not) we cant do this right now.

I saw some parameter to disable this, but i am not too sure if this was 
intented for this behaviour
Comment 1 Dan Armak (RETIRED) gentoo-dev 2002-05-19 12:00:51 UTC
That parameter is FEATURES+="noclean" in make.conf. When set, the workdir  
won't be removed, either after a sucessful or a failed emerge. You can then  
manually correct the problem and run ebuild file.ebuild compile install  
qmerge, which should resume the building from where it left off for at least  
95% of the ebuilds.  
And yes, this is (partly) what it's intended for. 
Does this solve your problem? 
Comment 2 Francisco León 2002-05-19 13:02:42 UTC
This would be a "workaround" for my problem, and may work, but wont fix this 
rfe. The main goal of this rfe should be for portage to get smart enough to not 
clean the workdir if compiling fails. I think this is not that hard to do, we 
make portage only remove the temp dir if the compile was successful (of course 
unless we have noclean defined)

This would save _everyone_ lots of _time_
I had to recompile ~10 times some packages in order to finally get kde compiled 
because of internal compiling errors (which is known and not gentoo's fault)
Comment 3 SpanKY gentoo-dev 2002-10-05 16:07:18 UTC
*** Bug 8775 has been marked as a duplicate of this bug. ***
Comment 4 Thiago dos Santos Alves 2002-10-05 16:18:50 UTC
I think that portage could has a flag file created in temp directory like this:  
  
/var/tmp/portage/any_package/temp/inprogress  
  
and when it start, it verify if this file is created, and then if it is,  
portage do not delete everything and on a sucefull emerge (and if noclean is 
not setted) portage delete this file.  
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2002-10-22 23:10:59 UTC
Continuing on a possible corrupt build is not desired.
If you want to risk it use FEATURES="noauto"