From: Michael Higgins <linux@evolone.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] How to "freeze" my Gentoo system
Date: Thu, 2 Apr 2009 11:19:30 -0700 [thread overview]
Message-ID: <20090402111930.30fce156@lappy.evolone.org> (raw)
In-Reply-To: <200903120956.47288.alan.mckinnon@gmail.com>
On Thu, 12 Mar 2009 09:56:47 +0200
Alan McKinnon <alan.mckinnon@gmail.com> wrote:
> On Wednesday 11 March 2009 22:40:54 Michael Higgins wrote:
> > Don't know the proper term, but I want to stop version updates for
> > a while, yet allow package-rN updates...
>
> This doesn't seem to be a built-in feature of portage after a quick
> scan of the man pages. But I can think of a method to do it the long
> way round:
>
> The atom syntax you want is
Well, I finally got a tuit, the round type, and applied to this question.
I don't know about >~ or ~> syntax. Not sure if ~ will work in package mask. Maybe in package.unmask, though... which makes sense, to my understanding. To unmask ~anyversionof-1.2.3.
But to package.mask? I can't make '~' work. So... what I want, I think, is >= in package.mask for the *next* version update, so it doesn't get pulled in anywhere.
Here's the command line I used:
qatom $(qlist -ICv) | awk '{print ">="$1"/"$2"-"$3}' |\
sort -u | perl -pe 's/^(.+(?:\.|-))(\d+)(?>([-_.\da-z]*))$/$1.($2+1)/ge' | \
grep -Pv $( echo $( eix -inc -\* |cut -d " " -f 2 ) |tr " " "|" ) >> /etc/portage/package.mask
Anyway, that is what I wound up with. Unless I'm totally off, it works by removing funky version strings (that hideous regex) and bumping up by a digit whatever is left, skipping anything that is slotted (eix -inc).
(We can't mask in a slot, AFAIK, but maybe someone else does know.)
I deeply, newly updated system and world, ran the script above and repeated the deep new update to system and world. The list passed, in that I didn't mask any currently installed packages. '-)
And today I got no updates to install after syncing the tree. Good so far.
Time will tell, of course, if this really works. If there are no ebuilds offered with revision numbers, or new -rc -pre -whatever, I won't be bothered by them, is the plan. That is, if portage doesn't see 1.2.-rc_9999 as >=1.3 -- which is shouldn't, right? ;-)
Then one day I'll remove my additions to package.mask and spend a day pulling out my hair (or watching the new, magic portage do it's beautiful thing...) but that's better than possibly doing that several times a month. And this without ignoring any revisions, bug fixes, and the like.
Cheers,
--
|\ /| | | ~ ~
| \/ | |---| `|` ?
| |ichael | |iggins \^ /
michael.higgins[at]evolone[dot]org
next prev parent reply other threads:[~2009-04-02 18:19 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-11 20:40 [gentoo-user] How to "freeze" my Gentoo system Michael Higgins
2009-03-12 7:56 ` Alan McKinnon
2009-03-12 8:07 ` Dale
2009-03-12 8:13 ` Alan McKinnon
2009-03-12 8:26 ` Dale
2009-03-12 9:51 ` Neil Bothwick
2009-03-13 17:24 ` Michael Higgins
2009-03-13 19:43 ` Dale
2009-04-03 2:45 ` Mark David Dumlao
2009-04-03 23:56 ` Michael Higgins
2009-04-04 3:24 ` [gentoo-user] " ABCD
2009-03-12 9:48 ` [gentoo-user] " Neil Bothwick
2009-03-12 10:52 ` Alan McKinnon
2009-03-12 19:43 ` Neil Bothwick
2009-03-12 20:21 ` Alan McKinnon
2009-03-17 7:46 ` Sebastian Günther
2009-03-17 8:41 ` Neil Bothwick
2009-04-02 18:19 ` Michael Higgins [this message]
2009-03-13 23:55 ` Sean
2009-03-14 4:11 ` Beau Henderson
2009-03-14 9:38 ` Neil Bothwick
2009-03-18 9:57 ` Momesso Andrea
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090402111930.30fce156@lappy.evolone.org \
--to=linux@evolone.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox