View previous topic :: View next topic |
Author |
Message |
sotn3m n00b
Joined: 01 Oct 2004 Posts: 45
|
Posted: Sun Mar 04, 2007 4:44 pm Post subject: Best way to update packages from live ebuilds? |
|
|
[Moderator note: Since this thread was raised from its ten year sleep, changed title from 9999 to be a bit more descriptive. -Hu]
As far as I read, all ebuild marked -9999 are not updated in any way during standard emerge update.
Question: Is there a nice way to (occasionally) re-emerge ALL -9999 packages in the system? _________________ M3ntos |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sun Mar 04, 2007 5:10 pm Post subject: |
|
|
Yeah, write a script
~/bin/emergecvs
Code: | #!/bin/sh
# Emerges my cvs ebuilds
emerge geany
emerge darkplaces
emerge wine
emerge nvclock |
|
|
Back to top |
|
|
sotn3m n00b
Joined: 01 Oct 2004 Posts: 45
|
Posted: Sun Mar 04, 2007 5:17 pm Post subject: |
|
|
That is my idea also, but:
Is there a tool or sth, that can be used to find packages with version 9999? It would be more simple and more elegant. And there won't be a necessity to update the script too.. _________________ M3ntos |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sun Mar 04, 2007 5:26 pm Post subject: |
|
|
To find them:
Code: | find /var/db/pkg/ -mindepth 2 -maxdepth 2 -name \*-9999 |
|
|
Back to top |
|
|
sotn3m n00b
Joined: 01 Oct 2004 Posts: 45
|
Posted: Sun Mar 04, 2007 6:09 pm Post subject: |
|
|
Base on that, command that re-emerges all "-9999" packages;)
Code: | emerge -av `find /var/db/pkg/ -mindepth 2 -maxdepth 2 -name \*-9999|awk -F \/ '{printf "=%s/%s ", $5, $6}'` |
Thx;) _________________ M3ntos |
|
Back to top |
|
|
ashtophet Guru
Joined: 08 Aug 2004 Posts: 397
|
Posted: Sun Mar 04, 2007 6:38 pm Post subject: |
|
|
The problem with this solution is that packages are not build in the appropiate order (necessary i.e. when you want to update e17) and not all CVS/SVN/git packages follow the -9999.
I'm using paludis, so --dl-reinstall-scm weekly works sweetly (not only with packages marked as *-9999, but also cvs, svn, live...). |
|
Back to top |
|
|
sotn3m n00b
Joined: 01 Oct 2004 Posts: 45
|
Posted: Sun Mar 04, 2007 7:02 pm Post subject: |
|
|
I understand that migration from portage to paludis is a one-way trip?
Do you consider paludis to be stable and functional complete to move to it from portage? Are there many problems with ebuild compatibility?
I seems to be a really nice alternative, but I am worried not to destroy my system...
Nevertheless, it's great to see that such a tool is being developed. _________________ M3ntos |
|
Back to top |
|
|
ashtophet Guru
Joined: 08 Aug 2004 Posts: 397
|
Posted: Sun Mar 04, 2007 8:00 pm Post subject: |
|
|
Migration is not a one-way trip, you can revert to portage when you want to.
Maybe you'll find some ebuilds which don't play well with paludis strictness (I've only found them related to overlays, with plain easy fixing). Apart from that, I've been using paludis exclussively since a couple of months (exactly since Dec '06) and none of my kittens have been killed
If you want to try it out, just read the documentation on http://www.paludis.org (FAQ, Portage differences and Migration Guide are a must-read). If you find any trouble don't covered there I'm sure you'll find help at paludis thread: https://forums.gentoo.org/viewtopic-t-534681-start-300-postdays-0-postorder-asc-highlight-.html [1]
If you switch you'll find:
- Increased speed.
- Better 3rd party overlays support (you won't need layman anymore, a paludis --sync will sync all your repositories, or any of them, at your request).
- scm (live, 999...) ebuild updating support.
- And much more (of course, you'll probably find 'features' you won't like )
----------------------------------------------------------
[1] If you have more questions about paludis features and migration please post them (after RTFM ) there as I didn't mean to hijack this thread. |
|
Back to top |
|
|
lyallp Veteran
Joined: 15 Jul 2004 Posts: 1599 Location: Adelaide/Australia
|
Posted: Tue Apr 17, 2018 7:12 am Post subject: |
|
|
use app-portage/smart-live-rebuild
Code: | # app-portage/smart-live-rebuild for rebuilding 9999 packages
# Could use simply "emerge @live-rebuild" but...
# A smart replacement for various live package rebuilding
# solutions. smart-live-rebuild tries to update the source checkouts of live
# packages and calls emerge to rebuild those which are out-of-date.
#
if [ -x /usr/bin/smart-live-rebuild ]
then
echo "smart-live-rebuild..."
smart-live-rebuild
fi
|
_________________ ...Lyall |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3818 Location: Rasi, Finland
|
Posted: Tue Apr 17, 2018 8:46 am Post subject: |
|
|
Holy-gravedigger, Batman! _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
lyallp Veteran
Joined: 15 Jul 2004 Posts: 1599 Location: Adelaide/Australia
|
Posted: Tue Apr 17, 2018 8:49 am Post subject: |
|
|
I have a couple of 9999 builds installed and found this thread when checking how to update.
Since it came top of lists, I thought I might as well provide the answer _________________ ...Lyall |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3818 Location: Rasi, Finland
|
Posted: Tue Apr 17, 2018 9:30 am Post subject: |
|
|
lyallp wrote: | I thought I might as well provide the answer :) | Yeah. I'm actually with you in this. It's usually a good practice to provide the solution in case some one else stumble upon the topic. Especially in this case where the topic is still relevant on this day. _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Tue Apr 17, 2018 1:21 pm Post subject: |
|
|
et al ... not sure what app-portage/smart-live-rebuild does (is it in fact checking that such packages are "out-of-date" and so skip those that are not?) ... but the following is what I generally use.
Code: | # emerge -a $(awk '{print "="$1}' <(qlist -ICv 9999)) |
best ... khay |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 9320
|
Posted: Tue Apr 17, 2018 1:33 pm Post subject: |
|
|
khayyam wrote: | (is it in fact checking that such packages are "out-of-date" and so skip those that are not?) |
That is exactly what it does. |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3818 Location: Rasi, Finland
|
Posted: Tue Apr 17, 2018 2:44 pm Post subject: |
|
|
khayyam wrote: | the following is what I generally use.
Code: | # emerge -a $(awk '{print "="$1}' <(qlist -ICv 9999)) |
| This is why I use *nix systems.
And I get comments like "Why do you have to go the hard route and type everything, when you can just use some GUI application designed to it?" from windows users whenever I try to explain why command line is as good as it is. _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Tue Apr 17, 2018 2:59 pm Post subject: |
|
|
khayyam wrote: | et al ... not sure what app-portage/smart-live-rebuild does (is it in fact checking that such packages are "out-of-date" and so skip those that are not?) |
It's a bit smarter than that: it detects live ebuilds via the presence of a VCS eclass in the metadata, rather than guessing version numbers (your example would work for 99.9% of cases I know about, but the "9999" is still just an informal convention), and then pings the remote server using `git ls-remote` or equivalent to see if there's any reason to update. |
|
Back to top |
|
|
xaviermiller Bodhisattva
Joined: 23 Jul 2004 Posts: 8723 Location: ~Brussels - Belgique
|
Posted: Tue Apr 17, 2018 8:48 pm Post subject: |
|
|
and Code: | emerge @live-rebuild | ? _________________ Kind regards,
Xavier Miller |
|
Back to top |
|
|
asturm Developer
Joined: 05 Apr 2007 Posts: 9320
|
Posted: Tue Apr 17, 2018 9:10 pm Post subject: |
|
|
It rebuilds all live packages regardless of git commits since last merge. |
|
Back to top |
|
|
|