Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Blacklisting all packages from overlay except a specific group and version
Date: Thu, 31 Mar 2016 06:11:55
Message-Id: 56FCBF93.4070603@gmail.com
In Reply to: [gentoo-user] Re: Blacklisting all packages from overlay except a specific group and version by Nikos Chantziaras
1 On 31/03/2016 00:13, Nikos Chantziaras wrote:
2 > On 30/03/16 05:48, Bryan Gardiner wrote:
3 >> On 30 March 2016 05:01:16 GMT+09:00, Nikos Chantziaras
4 >> <realnc@×××××.com> wrote:
5 >>> So, I want to install packages from an overlay, but only from a
6 >>> specific group. In this case, the dev-qt/ group. The overlay name
7 >>> is "qt".
8 >>>
9 >>> It doesn't work:
10 >>>
11 >>> package.mask: */*::qt
12 >>> package.unmask: dev-qt/*-5.6*::qt
13 >>>
14 >>> With this, 5.6 versions are still masked.
15 >>
16 >> The syntax for "5.6*"-like versions has an equals at the start, for
17 >> example =dev-qt/qtbase-5.6*
18 >
19 > That works.
20 >
21 >
22 >> so if it's allowed, =dev-qt/*-5.6*::qt
23 >> would be the correct package.unmask syntax. Does that work?
24 >
25 > Nope:
26 >
27 > "Invalid atom in /etc/portage/package.unmask/qt: =dev-qt/*-5.6*::qt"
28 >
29 > (Doesn't work with or without the "::qt".)
30 >
31 >
32
33 It's the leading "*" that's wrong there, because it's not a glob or a
34 regex; it's more a placeholder metacharacter with it's own rules. Look
35 at the relevant section in man 5 ebuild. It's not explicit but it does
36 strongly hint that "*" goes at the end of a string
37
38
39
40 --
41 Alan McKinnon
42 alan.mckinnon@×××××.com

Replies