View previous topic :: View next topic |
Author |
Message |
makoffee n00b
Joined: 05 Mar 2003 Posts: 22 Location: Minneapolis
|
Posted: Mon Apr 07, 2003 9:15 pm Post subject: question about "emerge -e world" |
|
|
If my computer craps out on an "emerge -e world", is there a way to resume it where it left off as aposed to rebuilding stuff twice? _________________ -Makoffee
"Hey sexy mamma, wanna kill all human" - Bender B. Rodriguez |
|
Back to top |
|
|
Apolonius Guru
Joined: 24 Jan 2003 Posts: 325
|
Posted: Mon Apr 07, 2003 9:26 pm Post subject: |
|
|
yes!!
you could use the not-yet documented option --resume of emerge |
|
Back to top |
|
|
plb n00b
Joined: 19 Dec 2002 Posts: 34
|
Posted: Wed Apr 16, 2003 2:25 pm Post subject: |
|
|
I've read that in a few posta already but it doesnt seem to resume for alot of people. I get :
!!! Error: --resume is a invalid option
Thats 3 tries its crapped out on now best I have made it so far is 100 of 435. Anyone know why? |
|
Back to top |
|
|
mpsii l33t
Joined: 11 Mar 2003 Posts: 658 Location: Jackson, TN
|
Posted: Wed Apr 16, 2003 3:04 pm Post subject: |
|
|
Have you updated portage?
Code: | emerge -up portage
emerge -u portage |
|
|
Back to top |
|
|
plb n00b
Joined: 19 Dec 2002 Posts: 34
|
Posted: Thu Apr 17, 2003 4:16 am Post subject: |
|
|
mpsii wrote: | Have you updated portage?
Code: | emerge -up portage
emerge -u portage |
|
Yes, still get invalid option. --resume |
|
Back to top |
|
|
markan18 n00b
Joined: 17 Apr 2003 Posts: 11 Location: wonderland
|
Posted: Thu Apr 17, 2003 6:13 am Post subject: Resume building packages |
|
|
Im looking for a --resume like option in portage for a while but with no luck. Instead, i wrote a little shell script that will resume the package build where it has been left. This script looks in /var/db/pkg for all ebuild
files. I think there is one ebuild file in /var/db/pkg for each package installed. Then, the script looks in /usr/portage/packages/All and checks
if a package has been built for all ebuild files in /var/db/pkg. If the package is missing, my script builds it.
Here is the code, feel free to send comments / bugs reports / improvements.
#!/bin/bash
# Builds missing packages on a gentoo system
declare -a liste
liste=`find /var/db/pkg/ -name "*.ebuild" | rev | cut -d / -f 1 | rev | sed s/.ebuild/.tbz2/`
cd /usr/portage/packages/All
for i in ${liste[*]}
do
if [ ! -f $i ] ; then
emerge -b `echo $i | sed s/-[0-9]./"\/"/ | cut -d / -f 1`
fi
done _________________ emerge -u beer |
|
Back to top |
|
|
cybermans Apprentice
Joined: 04 Apr 2003 Posts: 193
|
|
Back to top |
|
|
plb n00b
Joined: 19 Dec 2002 Posts: 34
|
Posted: Thu Apr 17, 2003 9:16 pm Post subject: |
|
|
cybermans wrote: | -resume ? a - too many (or am I not awake enough) |
Dunno, I think I tried both, Seems alot of ppl have problems with resume with -e world. I think I read that it doesnt work at all with the emtytree option. I am on my 5th try now and up to about 150 of 400+. *crosses fingers* Maybe I wont have to resume and it finishes this time. |
|
Back to top |
|
|
|