Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70958 - Emerge wait function
Summary: Emerge wait function
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-12 05:21 UTC by Mathy Vanvoorden
Modified: 2005-10-16 07:20 UTC (History)
0 users

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


Attachments
The patch, apply it against portage-2.0.51-r3 (portage-wait.diff,3.27 KB, patch)
2004-11-12 05:22 UTC, Mathy Vanvoorden
Details | Diff
Patch again (portage-wait.diff,3.27 KB, patch)
2004-11-12 07:40 UTC, Mathy Vanvoorden
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mathy Vanvoorden 2004-11-12 05:21:58 UTC
Hi,

Since I haven't found any bugs about something similar, I've created a patch against portage-2.0.51-r3 which makes emerge wait for a keypress between install and merge, thus enabling one to stop a running daemon or do something else before files are merged to the live filesystem. This is triggered by using the -w (or --wait) option

I am a noob to python, so please correct me if I made any mistakes, and I hope this patch gets accepted, because it's something I (and I can imagine others too) can really use. It wouldn't be the first time a server crashed on me because I didn't stop apache before updating and tried restarting it afterwards. Using this method, I don't have to stop apache before the compiling starts, which does make a big difference on production servers.
Comment 1 Mathy Vanvoorden 2004-11-12 05:22:57 UTC
Created attachment 43780 [details, diff]
The patch, apply it against portage-2.0.51-r3
Comment 2 Mathy Vanvoorden 2004-11-12 07:40:44 UTC
Created attachment 43784 [details, diff]
Patch again

Fixed spelling mistake
Comment 3 SpanKY gentoo-dev 2004-11-13 14:23:55 UTC
Bug 4780
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2005-10-16 07:20:46 UTC
This can be done with binaries.   
   
emerge -b apache && /etc/init.d/apache2 stop && emerge -k apache   
&& /etc/init.d/apache2 start   
 
Except with this way you can get a faster end result. It is advisable that you 
check any upgrade on a backup server first though.