From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] How can I unmask package and mask just its one version?
Date: Thu, 28 Oct 2010 20:54:03 +0200 [thread overview]
Message-ID: <201010282054.03778.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <4CC9AF25.7050401@gmail.com>
Apparently, though unproven, at 19:13 on Thursday 28 October 2010, Jarry did
opine thusly:
> Hi,
> how can I unmask (generally) certain M~ masked package and
> mask one particular version of that package? I want to use
> that package, but skip just one "x.y.z" upgrade, and continue
> with any future higher upgrades ("x.y.z+1").
>
> So I entered tree/package in /etc/portage/package.unmask, and
> tree/package_x.y.z into /etc/portage/package.mask. But this
> does not work, that "x.y.z" version still wants to be installed...
portage is fighting you.
unmask has priority over mask, so unmasking everything and masking a specific
version will not work - the first rule will prevail.
You must come up with some prefix operators for unmask that will exclude the
one you want to mask. For example, say you wanted to mask version 4:
unmask:
<cat/package-4
>cat/package-4
mask:
=cat/package-4
But this is fragile and will break way too often. What if you later also want
to mask version 7? portage doesn't give you a boolean AND or any way I know of
to specify a range of versions. So you have to keep an eye on it manually, and
tweak as necessary. Or you could just list exactly every version for which
there's an ebuild and add it to the appropriate package.* file
This is a definite shortcoming in portage, it warrants a feature request at
b.g.o.
--
alan dot mckinnon at gmail dot com
next prev parent reply other threads:[~2010-10-28 18:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-28 17:13 [gentoo-user] How can I unmask package and mask just its one version? Jarry
2010-10-28 17:59 ` Fatih Tümen
2010-10-28 18:54 ` Alan McKinnon [this message]
2010-10-30 11:53 ` [gentoo-user] " Nuno J. Silva
2010-10-30 13:07 ` Alan McKinnon
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=201010282054.03778.alan.mckinnon@gmail.com \
--to=alan.mckinnon@gmail.com \
--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