Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
--skipfirst
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Tue Sep 12, 2006 11:18 pm    Post subject: --skipfirst Reply with quote

--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
View user's profile Send private message
Q-collective
Advocate
Advocate


Joined: 22 Mar 2004
Posts: 2071

PostPosted: Wed Sep 13, 2006 4:10 am    Post subject: Reply with quote

Oh yeah! --skipfirst is absolute love!
Saved me countless of headaches.
Back to top
View user's profile Send private message
anello
Guru
Guru


Joined: 17 Jul 2005
Posts: 557
Location: EU -> DE -> Stuttgart

PostPosted: Thu Sep 14, 2006 12:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ian
l33t
l33t


Joined: 28 Oct 2002
Posts: 834
Location: Somerville, MA

PostPosted: Thu Sep 14, 2006 12:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
syg00
l33t
l33t


Joined: 23 Aug 2004
Posts: 907
Location: Brisbane, AUS

PostPosted: Thu Sep 14, 2006 1:04 pm    Post subject: Reply with quote

Very useful - not perfect, but useful; can anyone explain this ?
_________________
Got a good backup ??? - any advice offered presumes you have.
Back to top
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Thu Sep 14, 2006 4:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
welp
Retired Dev
Retired Dev


Joined: 24 Sep 2005
Posts: 103
Location: Ipswich, UK

PostPosted: Thu Sep 14, 2006 6:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
anello
Guru
Guru


Joined: 17 Jul 2005
Posts: 557
Location: EU -> DE -> Stuttgart

PostPosted: Thu Sep 14, 2006 7:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Thu Sep 14, 2006 8:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ian
l33t
l33t


Joined: 28 Oct 2002
Posts: 834
Location: Somerville, MA

PostPosted: Thu Sep 14, 2006 11:45 pm    Post subject: Reply with quote

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
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Thu Sep 14, 2006 11:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
iKiddo
Guru
Guru


Joined: 27 Jun 2002
Posts: 341
Location: Europe?

PostPosted: Thu Sep 14, 2006 11:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Fri Sep 15, 2006 12:51 am    Post subject: Reply with quote

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
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Fri Sep 15, 2006 1:32 am    Post subject: Reply with quote

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
View user's profile Send private message
runningwithscissors
Guru
Guru


Joined: 21 Apr 2006
Posts: 454
Location: the third world

PostPosted: Fri Sep 15, 2006 7:21 am    Post subject: Reply with quote

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
View user's profile Send private message
count_zero
Guru
Guru


Joined: 17 May 2004
Posts: 460
Location: Little Rock, Arkansas, USA

PostPosted: Fri Sep 15, 2006 2:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Fri Sep 15, 2006 6:15 pm    Post subject: Reply with quote

I would suggest combining this script
https://forums.gentoo.org/viewtopic-t-494331-start-0-postdays-0-postorder-asc-highlight-guenther.html
with previous ideas about non-stop emerge. The script emerges in the right order (better than emerge -e world) and if it would be made to run without interruptions it would be poetry.
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
iKiddo
Guru
Guru


Joined: 27 Jun 2002
Posts: 341
Location: Europe?

PostPosted: Fri Sep 15, 2006 7:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Icer
Guru
Guru


Joined: 26 Aug 2003
Posts: 395
Location: @home

PostPosted: Fri Sep 15, 2006 7:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
count_zero
Guru
Guru


Joined: 17 May 2004
Posts: 460
Location: Little Rock, Arkansas, USA

PostPosted: Sat Sep 16, 2006 12:22 am    Post subject: Reply with quote

zxy wrote:
I would suggest combining this script
https://forums.gentoo.org/viewtopic-t-494331-start-0-postdays-0-postorder-asc-highlight-guenther.html
with previous ideas about non-stop emerge. The script emerges in the right order (better than emerge -e world) and if it would be made to run without interruptions it would be poetry.


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:
Code:
update-world -i


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
View user's profile Send private message
Phenax
l33t
l33t


Joined: 10 Mar 2006
Posts: 972

PostPosted: Sat Sep 16, 2006 12:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Q-collective
Advocate
Advocate


Joined: 22 Mar 2004
Posts: 2071

PostPosted: Sat Sep 16, 2006 2:23 am    Post subject: Reply with quote

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
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Sat Sep 16, 2006 4:19 am    Post subject: Reply with quote

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
View user's profile Send private message
Phenax
l33t
l33t


Joined: 10 Mar 2006
Posts: 972

PostPosted: Sat Sep 16, 2006 4:34 am    Post subject: Reply with quote

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
View user's profile Send private message
cokey
Advocate
Advocate


Joined: 23 Apr 2004
Posts: 3355

PostPosted: Sat Sep 16, 2006 3:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum