Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[PEBKAC]Portage is getting less and less poweruser-friendly!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri May 14, 2010 8:19 pm    Post subject: [PEBKAC]Portage is getting less and less poweruser-friendly! Reply with quote

Hi guys,

often times when newly installing a Gentoo system or after a long time upgrading my system with a long list of packages obviously something breaks from time to time

so my troubleshooting plan always was:

at the beginning of emerging the large list or while it still was emerging:

Code:
emerge -pv > /root/emerge-resume.txt

(for documentation purposes only)

e.g. at world-updates:
Quote:
emerge -puD world | cut -s -d ] -f 2 | awk '{print "="$1}' > emerge.todo


and as a resume-list if resume of portage broke (more often than you can think of !):

Code:
emerge -p --resume | cut -s -d ] -f 2 | awk '{print "="$1}' > emerge.todo


after that emerge the remaining packages was quite easy:

Code:
emerge -a1v `cat emerge.todo`



today I conveniently wanted to emerge a list of packages (e.g. a list of font-packages) and found out that this doesn't work anymore


can anyone please come up with an replacement or one of the devs: please fix that behavior :(
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D


Last edited by kernelOfTruth on Sat May 15, 2010 2:16 pm; edited 1 time in total
Back to top
View user's profile Send private message
Shining Arcanine
Veteran
Veteran


Joined: 24 Sep 2009
Posts: 1110

PostPosted: Fri May 14, 2010 8:22 pm    Post subject: Reply with quote

I suggest that you file a bug report.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Fri May 14, 2010 9:14 pm    Post subject: Re: Portage is getting less and less poweruser-friendly ! Reply with quote

kernelOfTruth wrote:
can anyone please come up with an replacement

There already is one!

Quote:
Code:
emerge -puD world | cut -s -d ] -f 2 | awk '{print "="$1}' > emerge.todo

emerge -p --resume | cut -s -d ] -f 2 | awk '{print "="$1}' > emerge.todo

emerge -a1v `cat emerge.todo`

Code:
paludis -i installed-slots --continue-on-failure if-independent


Quote:
Code:
emerge -pv > /root/emerge-resume.txt

(for documentation purposes only)

Code:
ln -s /usr/share/paludis/hooks/{demos,auto}/pretend_resume.hook
    # only needs to be done once

export PALUDIS_CMDLINE_resume_command_template="/root/resume.txt"
    # can be set in /root/.bashrc

paludis -pi whatever
    # automatically writes to that file from now on

eval "$(</root/resume.txt) -p"


I bet the pkgcore users can come up with some examples at least this good ;)
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Sat May 15, 2010 8:40 am    Post subject: Reply with quote

man emerge:

      --keep-going[=n]
              Continue as much as possible after an error. When an error occurs, dependencies are recalculated for remaining pack-
              ages and any with unsatisfied dependencies are automatically dropped. Also see the related --skipfirst option.

_________________
http://phajdan-jr.blogspot.com/
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat May 15, 2010 11:14 am    Post subject: Reply with quote

phajdan.jr wrote:
man emerge:

      --keep-going[=n]
              Continue as much as possible after an error. When an error occurs, dependencies are recalculated for remaining pack-
              ages and any with unsatisfied dependencies are automatically dropped. Also see the related --skipfirst option.


thanks but I know that already and have it permanently enabled in my /etc/make.conf

emerge nevertheless says that the resume queue is empty if I use keep-going or not :wink:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat May 15, 2010 11:17 am    Post subject: Re: Portage is getting less and less poweruser-friendly ! Reply with quote

Shining Arcanine wrote:
I suggest that you file a bug report.


done :)

https://bugs.gentoo.org/show_bug.cgi?id=319777

Ant_P wrote:
kernelOfTruth wrote:
can anyone please come up with an replacement

There already is one!

Quote:
Code:
emerge -puD world | cut -s -d ] -f 2 | awk '{print "="$1}' > emerge.todo

emerge -p --resume | cut -s -d ] -f 2 | awk '{print "="$1}' > emerge.todo

emerge -a1v `cat emerge.todo`

Code:
paludis -i installed-slots --continue-on-failure if-independent


Quote:
Code:
emerge -pv > /root/emerge-resume.txt

(for documentation purposes only)

Code:
ln -s /usr/share/paludis/hooks/{demos,auto}/pretend_resume.hook
    # only needs to be done once

export PALUDIS_CMDLINE_resume_command_template="/root/resume.txt"
    # can be set in /root/.bashrc

paludis -pi whatever
    # automatically writes to that file from now on

eval "$(</root/resume.txt) -p"


I bet the pkgcore users can come up with some examples at least this good ;)


thanks Ant_P !

seems like I need to get used to paludis' syntax first :(

I've several times hesitated to use it in place of portage because of its (at the beginning) rather not so intuitive commands
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Sat May 15, 2010 11:20 am    Post subject: Reply with quote

kernelOfTruth wrote:
emerge nevertheless says that the resume queue is empty if I use keep-going or not :wink:


That's true, I guess because the last emerge exited "successfully". But why don't you just emerge -uDNa world after this --keep-going command finishes? Then you should be dealing only with the failing packages. I'm not sure what advantage there is here by using --resume or reading a list of packages from file.
_________________
http://phajdan-jr.blogspot.com/
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat May 15, 2010 11:27 am    Post subject: Reply with quote

phajdan.jr wrote:
kernelOfTruth wrote:
emerge nevertheless says that the resume queue is empty if I use keep-going or not :wink:


That's true, I guess because the last emerge exited "successfully". But why don't you just emerge -uDNa world after this --keep-going command finishes? Then you should be dealing only with the failing packages. I'm not sure what advantage there is here by using --resume or reading a list of packages from file.


the advantages (at least to me) are that I have the packages in a more readable list & can use it also to install it on another system or use it to install those packages later (e.g. during maintenance)

for example:

I'm having this list of fonts that I want to install:
Code:
media-fonts/alee-fonts
media-fonts/arabeyes-fonts
media-fonts/arkpandora
media-fonts/arphicfonts
media-fonts/baekmuk-fonts
media-fonts/cardo
media-fonts/cheapskatefonts
media-fonts/culmus
media-fonts/ekushey-bangla-fonts
media-fonts/encodings
media-fonts/essays1743
media-fonts/farsi-fonts
media-fonts/fgdc-emergency
media-fonts/font-adobe-100dpi
media-fonts/font-adobe-75dpi
media-fonts/font-adobe-utopia-100dpi
media-fonts/font-adobe-utopia-75dpi
media-fonts/font-adobe-utopia-type1
media-fonts/font-alias
media-fonts/font-arabic-misc
media-fonts/font-bh-100dpi
media-fonts/font-bh-75dpi
media-fonts/font-bh-lucidatypewriter-100dpi
media-fonts/font-bh-lucidatypewriter-75dpi
media-fonts/font-bh-ttf
media-fonts/font-bh-type1
media-fonts/font-bitstream-100dpi
media-fonts/font-bitstream-75dpi
media-fonts/font-bitstream-speedo
media-fonts/font-bitstream-type1
media-fonts/font-cronyx-cyrillic
media-fonts/font-cursor-misc
media-fonts/font-daewoo-misc
media-fonts/font-dec-misc
media-fonts/font-ibm-type1
media-fonts/font-jis-misc
media-fonts/font-misc-cyrillic
media-fonts/font-misc-ethiopic
media-fonts/font-misc-meltho
media-fonts/font-misc-misc
media-fonts/font-sony-misc
media-fonts/font-sun-misc
media-fonts/font-util
media-fonts/fs-fonts
media-fonts/hkscs-ming
media-fonts/hunkyfonts
media-fonts/ipamonafont
media-fonts/kacst-fonts
media-fonts/khmer
media-fonts/kochi-substitute
media-fonts/lfpfonts-fix
media-fonts/lfpfonts-var
media-fonts/libertine-ttf
media-fonts/lohit-fonts
media-fonts/mgopen
media-fonts/mikachan-font-otf
media-fonts/mikachan-font-ttc
media-fonts/mikachan-font-ttf
media-fonts/monafont
media-fonts/opendesktop-fonts
media-fonts/oto
media-fonts/sgi-fonts
media-fonts/stix-fonts
media-fonts/tengwar-fonts
media-fonts/thaifonts-scalable
media-fonts/tibetan-machine-font
media-fonts/ttf-bitstream-vera
media-fonts/unfonts
media-fonts/unfonts-extra
media-fonts/vdrsymbols-ttf
media-fonts/vlgothic
media-fonts/webby-fonts
media-fonts/wqy-bitmapfont
media-fonts/x11fonts-jmk
media-fonts/zh-kcfonts

_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
phajdan.jr
Retired Dev
Retired Dev


Joined: 23 Mar 2006
Posts: 1777
Location: Poland

PostPosted: Sat May 15, 2010 11:29 am    Post subject: Reply with quote

Ah, so you want to capture the list of packages that failed during the --keep-going run? I think that would make a good feature request. :D
_________________
http://phajdan-jr.blogspot.com/
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat May 15, 2010 11:43 am    Post subject: Reply with quote

phajdan.jr wrote:
Ah, so you want to capture the list of packages that failed during the --keep-going run? I think that would make a good feature request. :D


exactly :D


from time to time it's also a list of packages I'm creating which are failing due to some graphite (ppl/cloog-ppl) or other (rather) exotic optimizations :wink:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sat May 15, 2010 2:17 pm    Post subject: Reply with quote

well so it turned out that either it was an input-error on my side or it couldn't work due to missing maintenance work to get it running again :roll:
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa

Hardcore Gentoo Linux user since 2004 :D
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
Page 1 of 1

 
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