public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Blacklisting all packages from overlay except a specific group and version
@ 2016-03-29 20:01 Nikos Chantziaras
  2016-03-29 20:21 ` R0b0t1
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Nikos Chantziaras @ 2016-03-29 20:01 UTC (permalink / raw
  To: gentoo-user

So, I want to install packages from an overlay, but only from a specific 
group. In this case, the dev-qt/ group. The overlay name is "qt".

It doesn't work:

   package.mask: */*::qt
   package.unmask: dev-qt/*-5.6*::qt

With this, 5.6 versions are still masked.

How do I do this?



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Blacklisting all packages from overlay except a specific group and version
  2016-03-29 20:01 [gentoo-user] Blacklisting all packages from overlay except a specific group and version Nikos Chantziaras
@ 2016-03-29 20:21 ` R0b0t1
  2016-03-29 20:30   ` [gentoo-user] " Nikos Chantziaras
  2016-03-29 20:43 ` [gentoo-user] " Neil Bothwick
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 13+ messages in thread
From: R0b0t1 @ 2016-03-29 20:21 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 53 bytes --]

Not entirely sure what you wish. Maybe package sets?

[-- Attachment #2: Type: text/html, Size: 70 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [gentoo-user] Re: Blacklisting all packages from overlay except a specific group and version
  2016-03-29 20:21 ` R0b0t1
@ 2016-03-29 20:30   ` Nikos Chantziaras
  0 siblings, 0 replies; 13+ messages in thread
From: Nikos Chantziaras @ 2016-03-29 20:30 UTC (permalink / raw
  To: gentoo-user

On 29/03/16 23:21, R0b0t1 wrote:
> Not entirely sure what you wish. Maybe package sets?

Not sure what *you* mean :-) How would package sets help me in masking 
all packages from an overlay and then whilelist only specific ones?



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Blacklisting all packages from overlay except a specific group and version
  2016-03-29 20:01 [gentoo-user] Blacklisting all packages from overlay except a specific group and version Nikos Chantziaras
  2016-03-29 20:21 ` R0b0t1
@ 2016-03-29 20:43 ` Neil Bothwick
  2016-03-29 20:47   ` R0b0t1
  2016-03-29 20:59 ` [gentoo-user] " Nikos Chantziaras
  2016-03-30  2:48 ` [gentoo-user] " Bryan Gardiner
  3 siblings, 1 reply; 13+ messages in thread
From: Neil Bothwick @ 2016-03-29 20:43 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 543 bytes --]

On Tue, 29 Mar 2016 23:01:16 +0300, Nikos Chantziaras wrote:

> So, I want to install packages from an overlay, but only from a
> specific group. In this case, the dev-qt/ group. The overlay name is
> "qt".

Add the overlay with layman but don't add it to repos.conf. Then symlink
the dev-qt directory of the overlay into your local overlay.

It's a kludge but it works ;-)


-- 
Neil Bothwick

There was a young man from the border
Who had an attention disorder.
When he reached the last line
He would run out of time
And

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Blacklisting all packages from overlay except a specific group and version
  2016-03-29 20:43 ` [gentoo-user] " Neil Bothwick
@ 2016-03-29 20:47   ` R0b0t1
  0 siblings, 0 replies; 13+ messages in thread
From: R0b0t1 @ 2016-03-29 20:47 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 72 bytes --]

They lets you do the bin-ary algebruhs with lotsa da thingies at wunce.

[-- Attachment #2: Type: text/html, Size: 89 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [gentoo-user] Re: Blacklisting all packages from overlay except a specific group and version
  2016-03-29 20:01 [gentoo-user] Blacklisting all packages from overlay except a specific group and version Nikos Chantziaras
  2016-03-29 20:21 ` R0b0t1
  2016-03-29 20:43 ` [gentoo-user] " Neil Bothwick
@ 2016-03-29 20:59 ` Nikos Chantziaras
  2016-03-29 21:14   ` Ian Bloss
  2016-03-30  2:48 ` [gentoo-user] " Bryan Gardiner
  3 siblings, 1 reply; 13+ messages in thread
From: Nikos Chantziaras @ 2016-03-29 20:59 UTC (permalink / raw
  To: gentoo-user

On 29/03/16 23:01, Nikos Chantziaras wrote:
> So, I want to install packages from an overlay, but only from a specific
> group. In this case, the dev-qt/ group. The overlay name is "qt".
>
> It doesn't work:
>
>    package.mask: */*::qt
>    package.unmask: dev-qt/*-5.6*::qt
>
> With this, 5.6 versions are still masked.
>
> How do I do this?

Well, I brute-forced it. I've use this mask:

   */*::qt

and this unmask:

   <dev-qt/designer-5.7
   <dev-qt/linguist-tools-5.7
   <dev-qt/qdbus-5.7
   <dev-qt/qtconcurrent-5.7
   <dev-qt/qtcore-5.7
   <dev-qt/qtdbus-5.7
   <dev-qt/qtdeclarative-5.7
   <dev-qt/qtgraphicaleffects-5.7
   <dev-qt/qtgui-5.7
   <dev-qt/qtimageformats-5.7
   <dev-qt/qtmultimedia-5.7
   <dev-qt/qtnetwork-5.7
   <dev-qt/qtopengl-5.7
   <dev-qt/qtpaths-5.7
   <dev-qt/qtprintsupport-5.7
   <dev-qt/qtquickcontrols-5.7
   <dev-qt/qtscript-5.7
   <dev-qt/qtsql-5.7
   <dev-qt/qtsvg-5.7
   <dev-qt/qttest-5.7
   <dev-qt/qtwidgets-5.7
   <dev-qt/qtx11extras-5.7
   <dev-qt/qtxml-5.7
   <dev-qt/qtxmlpatterns-5.7

It works, but I would have expected that computers are good with 
wildcards :-/ The above should be equivalent to this:

   <dev-qt/*-5.7*

but portage refuses to recognize it.

Ah, well.



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Re: Blacklisting all packages from overlay except a specific group and version
  2016-03-29 20:59 ` [gentoo-user] " Nikos Chantziaras
@ 2016-03-29 21:14   ` Ian Bloss
  2016-03-29 21:22     ` Nikos Chantziaras
  0 siblings, 1 reply; 13+ messages in thread
From: Ian Bloss @ 2016-03-29 21:14 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1450 bytes --]

Why don't you mask versions higher than 5.7 instead?

On Tue, Mar 29, 2016, 17:00 Nikos Chantziaras <realnc@gmail.com> wrote:

> On 29/03/16 23:01, Nikos Chantziaras wrote:
> > So, I want to install packages from an overlay, but only from a specific
> > group. In this case, the dev-qt/ group. The overlay name is "qt".
> >
> > It doesn't work:
> >
> >    package.mask: */*::qt
> >    package.unmask: dev-qt/*-5.6*::qt
> >
> > With this, 5.6 versions are still masked.
> >
> > How do I do this?
>
> Well, I brute-forced it. I've use this mask:
>
>    */*::qt
>
> and this unmask:
>
>    <dev-qt/designer-5.7
>    <dev-qt/linguist-tools-5.7
>    <dev-qt/qdbus-5.7
>    <dev-qt/qtconcurrent-5.7
>    <dev-qt/qtcore-5.7
>    <dev-qt/qtdbus-5.7
>    <dev-qt/qtdeclarative-5.7
>    <dev-qt/qtgraphicaleffects-5.7
>    <dev-qt/qtgui-5.7
>    <dev-qt/qtimageformats-5.7
>    <dev-qt/qtmultimedia-5.7
>    <dev-qt/qtnetwork-5.7
>    <dev-qt/qtopengl-5.7
>    <dev-qt/qtpaths-5.7
>    <dev-qt/qtprintsupport-5.7
>    <dev-qt/qtquickcontrols-5.7
>    <dev-qt/qtscript-5.7
>    <dev-qt/qtsql-5.7
>    <dev-qt/qtsvg-5.7
>    <dev-qt/qttest-5.7
>    <dev-qt/qtwidgets-5.7
>    <dev-qt/qtx11extras-5.7
>    <dev-qt/qtxml-5.7
>    <dev-qt/qtxmlpatterns-5.7
>
> It works, but I would have expected that computers are good with
> wildcards :-/ The above should be equivalent to this:
>
>    <dev-qt/*-5.7*
>
> but portage refuses to recognize it.
>
> Ah, well.
>
>
>

[-- Attachment #2: Type: text/html, Size: 2042 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* [gentoo-user] Re: Blacklisting all packages from overlay except a specific group and version
  2016-03-29 21:14   ` Ian Bloss
@ 2016-03-29 21:22     ` Nikos Chantziaras
  0 siblings, 0 replies; 13+ messages in thread
From: Nikos Chantziaras @ 2016-03-29 21:22 UTC (permalink / raw
  To: gentoo-user

Because that is already covered by:

   */*::qt

in package.mask. This masks everything from the qt overlay, including 
versions of Qt higher or equal to 5.7.

I only masked >=5.7, then the other packages from the qt overlay would 
not be masked. What I need is mask ALL packages in the qt overlay EXCEPT 
dev-qt/*-5.6.*.


On 30/03/16 00:14, Ian Bloss wrote:
> Why don't you mask versions higher than 5.7 instead?
>
>
> On Tue, Mar 29, 2016, 17:00 Nikos Chantziaras <realnc@gmail.com
> <mailto:realnc@gmail.com>> wrote:
>
>     On 29/03/16 23:01, Nikos Chantziaras wrote:
>      > So, I want to install packages from an overlay, but only from a
>     specific
>      > group. In this case, the dev-qt/ group. The overlay name is "qt".
>      >
>      > It doesn't work:
>      >
>      >    package.mask: */*::qt
>      >    package.unmask: dev-qt/*-5.6*::qt
>      >
>      > With this, 5.6 versions are still masked.
>      >
>      > How do I do this?
>
>     Well, I brute-forced it. I've use this mask:
>
>         */*::qt
>
>     and this unmask:
>
>         <dev-qt/designer-5.7
>         <dev-qt/linguist-tools-5.7
>         <dev-qt/qdbus-5.7
>         <dev-qt/qtconcurrent-5.7
>         <dev-qt/qtcore-5.7
>         <dev-qt/qtdbus-5.7
>         <dev-qt/qtdeclarative-5.7
>         <dev-qt/qtgraphicaleffects-5.7
>         <dev-qt/qtgui-5.7
>         <dev-qt/qtimageformats-5.7
>         <dev-qt/qtmultimedia-5.7
>         <dev-qt/qtnetwork-5.7
>         <dev-qt/qtopengl-5.7
>         <dev-qt/qtpaths-5.7
>         <dev-qt/qtprintsupport-5.7
>         <dev-qt/qtquickcontrols-5.7
>         <dev-qt/qtscript-5.7
>         <dev-qt/qtsql-5.7
>         <dev-qt/qtsvg-5.7
>         <dev-qt/qttest-5.7
>         <dev-qt/qtwidgets-5.7
>         <dev-qt/qtx11extras-5.7
>         <dev-qt/qtxml-5.7
>         <dev-qt/qtxmlpatterns-5.7
>
>     It works, but I would have expected that computers are good with
>     wildcards :-/ The above should be equivalent to this:
>
>         <dev-qt/*-5.7*
>
>     but portage refuses to recognize it.
>
>     Ah, well.
>
>




^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Blacklisting all packages from overlay except a specific group and version
  2016-03-29 20:01 [gentoo-user] Blacklisting all packages from overlay except a specific group and version Nikos Chantziaras
                   ` (2 preceding siblings ...)
  2016-03-29 20:59 ` [gentoo-user] " Nikos Chantziaras
@ 2016-03-30  2:48 ` Bryan Gardiner
  2016-03-30 22:13   ` [gentoo-user] " Nikos Chantziaras
  3 siblings, 1 reply; 13+ messages in thread
From: Bryan Gardiner @ 2016-03-30  2:48 UTC (permalink / raw
  To: gentoo-user

On 30 March 2016 05:01:16 GMT+09:00, Nikos Chantziaras <realnc@gmail.com> wrote:
>So, I want to install packages from an overlay, but only from a
>specific 
>group. In this case, the dev-qt/ group. The overlay name is "qt".
>
>It doesn't work:
>
>   package.mask: */*::qt
>   package.unmask: dev-qt/*-5.6*::qt
>
>With this, 5.6 versions are still masked.
>
>How do I do this?

The syntax for "5.6*"-like versions has an equals at the start, for example =dev-qt/qtbase-5.6*, so if it's allowed, =dev-qt/*-5.6*::qt would be the correct package.unmask syntax.  Does that work?

Cheers,
Bryan


^ permalink raw reply	[flat|nested] 13+ messages in thread

* [gentoo-user] Re: Blacklisting all packages from overlay except a specific group and version
  2016-03-30  2:48 ` [gentoo-user] " Bryan Gardiner
@ 2016-03-30 22:13   ` Nikos Chantziaras
  2016-03-31  6:11     ` Alan McKinnon
  0 siblings, 1 reply; 13+ messages in thread
From: Nikos Chantziaras @ 2016-03-30 22:13 UTC (permalink / raw
  To: gentoo-user

On 30/03/16 05:48, Bryan Gardiner wrote:
> On 30 March 2016 05:01:16 GMT+09:00, Nikos Chantziaras
> <realnc@gmail.com> wrote:
>> So, I want to install packages from an overlay, but only from a
>> specific group. In this case, the dev-qt/ group. The overlay name
>> is "qt".
>>
>> It doesn't work:
>>
>>   package.mask: */*::qt
>>   package.unmask: dev-qt/*-5.6*::qt
>>
>> With this, 5.6 versions are still masked.
>
> The syntax for "5.6*"-like versions has an equals at the start, for
> example =dev-qt/qtbase-5.6*

That works.


> so if it's allowed, =dev-qt/*-5.6*::qt
> would be the correct package.unmask syntax.  Does that work?

Nope:

   "Invalid atom in /etc/portage/package.unmask/qt: =dev-qt/*-5.6*::qt"

(Doesn't work with or without the "::qt".)



^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [gentoo-user] Re: Blacklisting all packages from overlay except a specific group and version
  2016-03-30 22:13   ` [gentoo-user] " Nikos Chantziaras
@ 2016-03-31  6:11     ` Alan McKinnon
  2016-04-01  4:09       ` Nikos Chantziaras
  0 siblings, 1 reply; 13+ messages in thread
From: Alan McKinnon @ 2016-03-31  6:11 UTC (permalink / raw
  To: gentoo-user

On 31/03/2016 00:13, Nikos Chantziaras wrote:
> On 30/03/16 05:48, Bryan Gardiner wrote:
>> On 30 March 2016 05:01:16 GMT+09:00, Nikos Chantziaras
>> <realnc@gmail.com> wrote:
>>> So, I want to install packages from an overlay, but only from a
>>> specific group. In this case, the dev-qt/ group. The overlay name
>>> is "qt".
>>>
>>> It doesn't work:
>>>
>>>   package.mask: */*::qt
>>>   package.unmask: dev-qt/*-5.6*::qt
>>>
>>> With this, 5.6 versions are still masked.
>>
>> The syntax for "5.6*"-like versions has an equals at the start, for
>> example =dev-qt/qtbase-5.6*
> 
> That works.
> 
> 
>> so if it's allowed, =dev-qt/*-5.6*::qt
>> would be the correct package.unmask syntax.  Does that work?
> 
> Nope:
> 
>   "Invalid atom in /etc/portage/package.unmask/qt: =dev-qt/*-5.6*::qt"
> 
> (Doesn't work with or without the "::qt".)
> 
> 

It's the leading "*" that's wrong there, because it's not a glob or a
regex; it's more a placeholder metacharacter with it's own rules. Look
at the relevant section in man 5 ebuild. It's not explicit but it does
strongly hint that "*" goes at the end of a string



-- 
Alan McKinnon
alan.mckinnon@gmail.com



^ permalink raw reply	[flat|nested] 13+ messages in thread

* [gentoo-user] Re: Blacklisting all packages from overlay except a specific group and version
  2016-03-31  6:11     ` Alan McKinnon
@ 2016-04-01  4:09       ` Nikos Chantziaras
  2016-04-01  9:58         ` Martin Vaeth
  0 siblings, 1 reply; 13+ messages in thread
From: Nikos Chantziaras @ 2016-04-01  4:09 UTC (permalink / raw
  To: gentoo-user

On 31/03/16 09:11, Alan McKinnon wrote:
> On 31/03/2016 00:13, Nikos Chantziaras wrote:
>>    "Invalid atom in /etc/portage/package.unmask/qt: =dev-qt/*-5.6*::qt"
>>
>> (Doesn't work with or without the "::qt".)
>
> It's the leading "*" that's wrong there, because it's not a glob or a
> regex; it's more a placeholder metacharacter with it's own rules. Look
> at the relevant section in man 5 ebuild. It's not explicit but it does
> strongly hint that "*" goes at the end of a string

It didn't look like it to me at all. From the man page:

   Examples:

   # match anything with a version containing 9999, which can be used in
   # package.mask to prevent emerge --autounmask from selecting live
   # ebuilds
   =*/*-*9999*

So if that works, one would assume that "=dev-qt/*-*5.6*" should work 
just as well :-/



^ permalink raw reply	[flat|nested] 13+ messages in thread

* [gentoo-user] Re: Blacklisting all packages from overlay except a specific group and version
  2016-04-01  4:09       ` Nikos Chantziaras
@ 2016-04-01  9:58         ` Martin Vaeth
  0 siblings, 0 replies; 13+ messages in thread
From: Martin Vaeth @ 2016-04-01  9:58 UTC (permalink / raw
  To: gentoo-user

Nikos Chantziaras <realnc@gmail.com> wrote:
> It didn't look like it to me at all. From the man page:
>
>    Examples:
>
>    # match anything with a version containing 9999, which can be used in
>    # package.mask to prevent emerge --autounmask from selecting live
>    # ebuilds
>    =*/*-*9999*

This has always been a horribly misleading example, because it
does not follow the PMS rules of wildcard version matching:
=foo/bar-9999* must mach foo/bar-9999p1 but not foo/bar-9999999

Maybe portage finally dumped this bad case, which was already reported
https://bugs.gentoo.org/show_bug.cgi?id=572178

OTOH, it would appear reasonable that portage could accept
=dev-qt/*-5.6*
although there is of course the ambiguity that it is not clear
that the -5.6* is the version specification.
Perhaps one could open a portage bug/feature request about it.

eix-0.31.7 accepts both (=dev-qt/*-5.6* with PMS rules
as well as the non-PMS =dev-qt/*-*5.6* [with string instead
of PMS matching rules]).



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-04-01  9:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-29 20:01 [gentoo-user] Blacklisting all packages from overlay except a specific group and version Nikos Chantziaras
2016-03-29 20:21 ` R0b0t1
2016-03-29 20:30   ` [gentoo-user] " Nikos Chantziaras
2016-03-29 20:43 ` [gentoo-user] " Neil Bothwick
2016-03-29 20:47   ` R0b0t1
2016-03-29 20:59 ` [gentoo-user] " Nikos Chantziaras
2016-03-29 21:14   ` Ian Bloss
2016-03-29 21:22     ` Nikos Chantziaras
2016-03-30  2:48 ` [gentoo-user] " Bryan Gardiner
2016-03-30 22:13   ` [gentoo-user] " Nikos Chantziaras
2016-03-31  6:11     ` Alan McKinnon
2016-04-01  4:09       ` Nikos Chantziaras
2016-04-01  9:58         ` Martin Vaeth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox