View previous topic :: View next topic |
Author |
Message |
cokey Advocate
Joined: 23 Apr 2004 Posts: 3355
|
Posted: Tue Sep 12, 2006 11:18 pm Post subject: --skipfirst |
|
|
--skipfirst is the greatest thing since sliced bread, i has saved me so many times in the last 6 hours.
Who made it, they are a genius. Who was the ex portage lead, was it him? _________________ https://otw20.com/ OTW20 The new place for off the wall chat |
|
Back to top |
|
|
Q-collective Advocate
Joined: 22 Mar 2004 Posts: 2071
|
Posted: Wed Sep 13, 2006 4:10 am Post subject: |
|
|
Oh yeah! --skipfirst is absolute love!
Saved me countless of headaches. |
|
Back to top |
|
|
anello Guru
Joined: 17 Jul 2005 Posts: 557 Location: EU -> DE -> Stuttgart
|
Posted: Thu Sep 14, 2006 12:22 pm Post subject: |
|
|
Hmm, whats soooo good about it?
You just skip one package, that you'll have to deal later with. _________________ Antonino Catinello | http://catinello.eu |
|
Back to top |
|
|
Ian l33t
Joined: 28 Oct 2002 Posts: 834 Location: Somerville, MA
|
Posted: Thu Sep 14, 2006 12:43 pm Post subject: |
|
|
But when you've got a massive list of things that need to be updated, and one bad package (that isn't a dependency) is breaking it all, it's great. |
|
Back to top |
|
|
syg00 l33t
Joined: 23 Aug 2004 Posts: 907 Location: Brisbane, AUS
|
Posted: Thu Sep 14, 2006 1:04 pm Post subject: |
|
|
Very useful - not perfect, but useful; can anyone explain this ? _________________ Got a good backup ??? - any advice offered presumes you have. |
|
Back to top |
|
|
cokey Advocate
Joined: 23 Apr 2004 Posts: 3355
|
Posted: Thu Sep 14, 2006 4:34 pm Post subject: |
|
|
anello wrote: | Hmm, whats soooo good about it?
You just skip one package, that you'll have to deal later with. | ok, you do a emerge -e world which has 600 packages and at package 400 it fails... would you rather --skipfirst , fix the package later and carry on to the next one... or fix that package and then re-emerge the 400 again and hope it gets all the way to the end?
emerge --resume --skipfirst is just sweeeeeeeeeeeeet!!!
Also if you are unmasking and testing some hard-masked packages or porting a package from another architecture which has seperate parts then you can just let everything that will compile do so and just change options after or create a bug report if it wont compile at all _________________ https://otw20.com/ OTW20 The new place for off the wall chat |
|
Back to top |
|
|
welp Retired Dev
Joined: 24 Sep 2005 Posts: 103 Location: Ipswich, UK
|
Posted: Thu Sep 14, 2006 6:47 pm Post subject: |
|
|
I love it... seriously... my emerge -e world failed quite a few times the last time i did it, so meh... *tries to recall what failed * but seriously... whoever invented it should be knighted... hmm, that's an idea... knighting teh uber devs! anyway. _________________ Gentoo/BSD, Gentoo/Alt AT and Bugday lead
AMD64, Xfce, Sunrise, www-servers, net-irc, lang-misc, Artwork
If you find a bug, submit it! Bugzilla |
|
Back to top |
|
|
anello Guru
Joined: 17 Jul 2005 Posts: 557 Location: EU -> DE -> Stuttgart
|
Posted: Thu Sep 14, 2006 7:08 pm Post subject: |
|
|
cokehabit wrote: | ok, you do a emerge -e world which has 600 packages and at package 400 it fails... would you rather --skipfirst , fix the package later and carry on to the next one... or fix that package and then re-emerge the 400 again and hope it gets all the way to the end? |
Yeah, I guessed that scenario, but I'm still not impressed. I'd fix that package. But emerge needs a good skip option anyway even if only for blocking packages. Maybe even a reverse dependency structure, but that's gonna be difficult. _________________ Antonino Catinello | http://catinello.eu |
|
Back to top |
|
|
cokey Advocate
Joined: 23 Apr 2004 Posts: 3355
|
Posted: Thu Sep 14, 2006 8:17 pm Post subject: |
|
|
maybe a good idea would be for portage to have a command where it carries on after failure and gives you a report of the failures and the reasons for it. Like Code: | emerge -e world --nostop --review |
_________________ https://otw20.com/ OTW20 The new place for off the wall chat |
|
Back to top |
|
|
Ian l33t
Joined: 28 Oct 2002 Posts: 834 Location: Somerville, MA
|
Posted: Thu Sep 14, 2006 11:45 pm Post subject: |
|
|
Cokehabit wins all the points for ever.
That would be an incredible feature to add into portage. Another neat idea would be having portage suggest when a revdep-rebuild is in order. I'm not sure if that's possible, but it'd be neat. |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Thu Sep 14, 2006 11:56 pm Post subject: |
|
|
cokehabit wrote: | maybe a good idea would be for portage to have a command where it carries on after failure and gives you a report of the failures and the reasons for it. Like Code: | emerge -e world --nostop --review |
|
Yup, this would be cool. Maybe paladius will be better, but i don't know much about it. _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu |
|
Back to top |
|
|
iKiddo Guru
Joined: 27 Jun 2002 Posts: 341 Location: Europe?
|
Posted: Thu Sep 14, 2006 11:59 pm Post subject: |
|
|
I'm a 100% fan of the two suggestions!!
(Being:
- emerge --nostop as smartly looped emerge --resume with logging
- auto-suggest of revdep-rebuild, emerge --newuse etc.
)
But, I think the latter might need some work on portage to do efficiently. I'd like to add a feature to do the portage tree syncing on the fly, this seems to me as more efficient, but might have some angles to it. |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Fri Sep 15, 2006 12:51 am Post subject: |
|
|
Another suggestion, that would help me a lot, would be
Code: | emerge --resume --next
|
This would emerge just the next package and stop.
It would come handy in situations, when you have to set something so a package compiles. I have a few packages that do not want to be compiled when nvidia opengl is set. so everytime I have to stop compilation, set xorg-x11, and then set it back.
There are also other situations that would be easier with this option. _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu |
|
Back to top |
|
|
cokey Advocate
Joined: 23 Apr 2004 Posts: 3355
|
Posted: Fri Sep 15, 2006 1:32 am Post subject: |
|
|
also there needs to be some way of portage telling you that an emerge failed because of or lack of a USE flag. For instance, gnome applets fails if you dont have the hal USE flag _________________ https://otw20.com/ OTW20 The new place for off the wall chat |
|
Back to top |
|
|
runningwithscissors Guru
Joined: 21 Apr 2006 Posts: 454 Location: the third world
|
Posted: Fri Sep 15, 2006 7:21 am Post subject: |
|
|
cokehabit wrote: | also there needs to be some way of portage telling you that an emerge failed because of or lack of a USE flag. For instance, gnome applets fails if you dont have the hal USE flag |
er.... wouldn't that be like a bonafide dependency? It should flash big huge warnings in that case.
Anyway, about the topic, yes, it is quite useful. I used it this morning when one of the kdebase-startkde dependencies wasn't compiling. |
|
Back to top |
|
|
count_zero Guru
Joined: 17 May 2004 Posts: 460 Location: Little Rock, Arkansas, USA
|
Posted: Fri Sep 15, 2006 2:03 pm Post subject: |
|
|
iKiddo wrote: | I'm a 100% fan of the two suggestions!!
(Being:
[list][*]emerge --nostop as smartly looped emerge --resume with logging
|
Check out my script:
https://forums.gentoo.org/viewtopic-t-497125.html
It runs emerge [ -uD | -e ] world, automatically skipping over failed packages, and conveniently leaving you a list to deal with later (including log files!). _________________ "We must all hang together, or assuredly we shall all hang separately."
-Ben Franklin |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
|
Back to top |
|
|
iKiddo Guru
Joined: 27 Jun 2002 Posts: 341 Location: Europe?
|
Posted: Fri Sep 15, 2006 7:44 pm Post subject: |
|
|
Why are all these great scripts and features that users make, not included by the Gentoo developers or even documented in some grand page. They are really hard to find on these forums!
count_zero wrote: | iKiddo wrote: | I'm a 100% fan of the two suggestions!!
(Being:
[list][*]emerge --nostop as smartly looped emerge --resume with logging
|
Check out my script:
https://forums.gentoo.org/viewtopic-t-497125.html
It runs emerge [ -uD | -e ] world, automatically skipping over failed packages, and conveniently leaving you a list to deal with later (including log files!). |
Thanks for the tip! |
|
Back to top |
|
|
Icer Guru
Joined: 26 Aug 2003 Posts: 395 Location: @home
|
Posted: Fri Sep 15, 2006 7:52 pm Post subject: |
|
|
I dont know. Maybe some devs are testing those scripts. However if not then user reps could report them to the devs. Also if some dev has went through the script then we could use some opinions. For example say if it's greatest thing since sliced bread or complete bollocks. There will allways be user opinions but dev opinions weight more when I decide if I want to try such scripts myself.
Well I guess I want to say that if there's some new 1337 script it should be tested properly before it can be suggested for the average users. And devs do wisely not to jump right away suggesting any script there is. _________________ Everything can be done. There's just a longer delivery time for impossible projects. |
|
Back to top |
|
|
count_zero Guru
Joined: 17 May 2004 Posts: 460 Location: Little Rock, Arkansas, USA
|
Posted: Sat Sep 16, 2006 12:22 am Post subject: |
|
|
Easy.
Just run Guenther's script to get the list of packages to emerge, and pipe that list into 'emergelist':
Code: | grep "item " /root/recompile-remaining-packages | sed 's/item\ .*\ //'> ~/.update-world/emergelist |
Then run my script:
Now you have your entire system (minus the new GCC which you have already compiled), built in the correct order, running without interruption. _________________ "We must all hang together, or assuredly we shall all hang separately."
-Ben Franklin
Last edited by count_zero on Sat Sep 16, 2006 12:32 am; edited 1 time in total |
|
Back to top |
|
|
Phenax l33t
Joined: 10 Mar 2006 Posts: 972
|
Posted: Sat Sep 16, 2006 12:29 am Post subject: |
|
|
Real men don't get these problems, therefor do not need to use --skipfirst.
I've never used --skipfirst in my (About a year now?) of using Gentoo. |
|
Back to top |
|
|
Q-collective Advocate
Joined: 22 Mar 2004 Posts: 2071
|
Posted: Sat Sep 16, 2006 2:23 am Post subject: |
|
|
Phenax wrote: | Real men don't get these problems, therefor do not need to use --skipfirst.
I've never used --skipfirst in my (About a year now?) of using Gentoo. |
Real men use ~arch, therefor use --skipfirst |
|
Back to top |
|
|
zxy Veteran
Joined: 06 Jan 2006 Posts: 1160 Location: in bed in front of the computer
|
Posted: Sat Sep 16, 2006 4:19 am Post subject: |
|
|
iKiddo wrote: | Why are all these great scripts and features that users make, not included by the Gentoo developers or even documented in some grand page. They are really hard to find on these forums!
....
|
I agree, things ar scatered all around the forums, sometimes a good script is in page 12 of a big topic somewhere in the middle where it is almost impossible to find it without going through lots of other stuff (especialy with the current search engine). It can be found, but it's time consuming...
There should realy be some repository, or a page with links to the posts, maybe each author could describe a script - if he/she wishes to.
count_zero thanks for combinig them together.
Phenax wrote: | Real men don't get these problems, therefor do not need to use --skipfirst.
I've never used --skipfirst in my (About a year now?) of using Gentoo. |
Even with stable arch things get broken (I use ~arch, but I can still remember my beginnings). And sometimes I just need a working machine, so I don't care about broken media player or whatever. So i use --skipfirst. I don't realy like to use it. I like things working, too. But when you don't have time to solve a problem with one package, what can you do - emerge packages by hand - one a a time (no, thank you) _________________ Nature does not hurry, yet everything is accomplished.
Lao Tzu |
|
Back to top |
|
|
Phenax l33t
Joined: 10 Mar 2006 Posts: 972
|
Posted: Sat Sep 16, 2006 4:34 am Post subject: |
|
|
Q-collective wrote: | Phenax wrote: | Real men don't get these problems, therefor do not need to use --skipfirst.
I've never used --skipfirst in my (About a year now?) of using Gentoo. |
Real men use ~arch, therefor use --skipfirst |
I'm on ~amd64, always have been. |
|
Back to top |
|
|
cokey Advocate
Joined: 23 Apr 2004 Posts: 3355
|
Posted: Sat Sep 16, 2006 3:31 pm Post subject: |
|
|
Phenax wrote: | Q-collective wrote: | Phenax wrote: | Real men don't get these problems, therefor do not need to use --skipfirst.
I've never used --skipfirst in my (About a year now?) of using Gentoo. | Real men use ~arch, therefor use --skipfirst | I'm on ~amd64, always have been. | real men: Code: | ln -s /usr/portage/package.mask /etc/portage/package.unmask |
_________________ https://otw20.com/ OTW20 The new place for off the wall chat |
|
Back to top |
|
|
|