Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Best way to update packages from live ebuilds?

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
18 posts • Page 1 of 1
Author
Message
sotn3m
n00b
n00b
User avatar
Posts: 45
Joined: Fri Oct 01, 2004 11:50 am

Best way to update packages from live ebuilds?

  • Quote

Post by sotn3m » Sun Mar 04, 2007 4:44 pm

[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
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Sun Mar 04, 2007 5:10 pm

Yeah, write a script :)

~/bin/emergecvs

Code: Select all

#!/bin/sh
# Emerges my cvs ebuilds

emerge geany
emerge darkplaces
emerge wine
emerge nvclock
Top
sotn3m
n00b
n00b
User avatar
Posts: 45
Joined: Fri Oct 01, 2004 11:50 am

  • Quote

Post by sotn3m » Sun Mar 04, 2007 5:17 pm

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.. :wink:
M3ntos
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Sun Mar 04, 2007 5:26 pm

To find them:

Code: Select all

find /var/db/pkg/ -mindepth 2 -maxdepth 2 -name \*-9999
Top
sotn3m
n00b
n00b
User avatar
Posts: 45
Joined: Fri Oct 01, 2004 11:50 am

  • Quote

Post by sotn3m » Sun Mar 04, 2007 6:09 pm

Base on that, command that re-emerges all "-9999" packages;)

Code: Select all

emerge -av `find /var/db/pkg/ -mindepth 2 -maxdepth 2 -name \*-9999|awk -F \/ '{printf "=%s/%s ", $5, $6}'`
Thx;)
M3ntos
Top
ashtophet
Guru
Guru
User avatar
Posts: 397
Joined: Sun Aug 08, 2004 11:16 am

  • Quote

Post by ashtophet » Sun Mar 04, 2007 6:38 pm

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...).
Top
sotn3m
n00b
n00b
User avatar
Posts: 45
Joined: Fri Oct 01, 2004 11:50 am

  • Quote

Post by sotn3m » Sun Mar 04, 2007 7:02 pm

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
Top
ashtophet
Guru
Guru
User avatar
Posts: 397
Joined: Sun Aug 08, 2004 11:16 am

  • Quote

Post by ashtophet » Sun Mar 04, 2007 8:00 pm

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-5 ... ight-.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.
Top
lyallp
Veteran
Veteran
User avatar
Posts: 1655
Joined: Thu Jul 15, 2004 12:07 am
Location: Adelaide/Australia
Contact:
Contact lyallp
Website

  • Quote

Post by lyallp » Tue Apr 17, 2018 7:12 am

use app-portage/smart-live-rebuild

Code: Select all

	    # 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
Top
Zucca
Moderator
Moderator
User avatar
Posts: 4691
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Tue Apr 17, 2018 8:46 am

Holy-gravedigger, Batman!
..: Zucca :..

Code: Select all

init=/sbin/openrc-init
-systemd -logind -elogind seatd
I am NaN! I am a man!
Top
lyallp
Veteran
Veteran
User avatar
Posts: 1655
Joined: Thu Jul 15, 2004 12:07 am
Location: Adelaide/Australia
Contact:
Contact lyallp
Website

  • Quote

Post by lyallp » Tue Apr 17, 2018 8:49 am

:D
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
Top
Zucca
Moderator
Moderator
User avatar
Posts: 4691
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Tue Apr 17, 2018 9:30 am

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 :..

Code: Select all

init=/sbin/openrc-init
-systemd -logind -elogind seatd
I am NaN! I am a man!
Top
khayyam
Watchman
Watchman
User avatar
Posts: 6227
Joined: Thu Jun 07, 2012 2:45 am
Location: Room 101

  • Quote

Post by khayyam » Tue Apr 17, 2018 1:21 pm

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: Select all

# emerge -a $(awk '{print "="$1}' <(qlist -ICv 9999))
best ... khay
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Tue Apr 17, 2018 1:33 pm

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.
Top
Zucca
Moderator
Moderator
User avatar
Posts: 4691
Joined: Thu Jun 14, 2007 10:31 pm
Location: Rasi, Finland
Contact:
Contact Zucca
Website

  • Quote

Post by Zucca » Tue Apr 17, 2018 2:44 pm

khayyam wrote:the following is what I generally use.

Code: Select all

# 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 :..

Code: Select all

init=/sbin/openrc-init
-systemd -logind -elogind seatd
I am NaN! I am a man!
Top
Ant P.
Watchman
Watchman
Posts: 6920
Joined: Sat Apr 18, 2009 7:18 pm
Contact:
Contact Ant P.
Website

  • Quote

Post by Ant P. » Tue Apr 17, 2018 2:59 pm

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.
Top
xaviermiller
Bodhisattva
Bodhisattva
User avatar
Posts: 8738
Joined: Fri Jul 23, 2004 6:49 pm
Location: ~Brussels - Belgique
Contact:
Contact xaviermiller
Website

  • Quote

Post by xaviermiller » Tue Apr 17, 2018 8:48 pm

and

Code: Select all

emerge @live-rebuild
?
Kind regards,
Xavier Miller
Top
asturm
Developer
Developer
Posts: 9496
Joined: Thu Apr 05, 2007 4:07 pm

  • Quote

Post by asturm » Tue Apr 17, 2018 9:10 pm

It rebuilds all live packages regardless of git commits since last merge.
Top
Post Reply

18 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic