* [gentoo-user] Is there a way to keyword a whole overlay as ~arch ?
@ 2014-01-26 22:12 Thanasis
2014-01-26 22:38 ` Alan McKinnon
2014-01-27 1:14 ` Michael Orlitzky
0 siblings, 2 replies; 8+ messages in thread
From: Thanasis @ 2014-01-26 22:12 UTC (permalink / raw
To: gentoo-user
I am following stable (ACCEPT_KEYWORDS="amd64").
In order to install the "mate" desktop I need to install the mate
overlay and keyword all its packages as ~amd64.
Is there a way to do it easily for the whole overlay?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Is there a way to keyword a whole overlay as ~arch ?
2014-01-26 22:12 [gentoo-user] Is there a way to keyword a whole overlay as ~arch ? Thanasis
@ 2014-01-26 22:38 ` Alan McKinnon
2014-01-27 9:45 ` Thanasis
2014-01-27 1:14 ` Michael Orlitzky
1 sibling, 1 reply; 8+ messages in thread
From: Alan McKinnon @ 2014-01-26 22:38 UTC (permalink / raw
To: gentoo-user
On 27/01/2014 00:12, Thanasis wrote:
> I am following stable (ACCEPT_KEYWORDS="amd64").
> In order to install the "mate" desktop I need to install the mate
> overlay and keyword all its packages as ~amd64.
> Is there a way to do it easily for the whole overlay?
As far as I'm aware, this is not part of portage or layman's feature
set. I've seen a few overlays that provide a package.accept_keywords
file you can symlink to, but this is just a convenience. It is neither
required nor the norm.
I suggest you script it somehow. Alan's blunt instrument first cut
attempt (guaranteed to be buggy as all hell):
find /var/lib/layman/<some_overlay>/ -mindepth 2 -maxdepth 2 -type d
-wholename "*-*/*" | cut -f6-7 -d/ >>
/etc/portage/package.accept_keywords/<some_overlay>
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Is there a way to keyword a whole overlay as ~arch ?
2014-01-26 22:12 [gentoo-user] Is there a way to keyword a whole overlay as ~arch ? Thanasis
2014-01-26 22:38 ` Alan McKinnon
@ 2014-01-27 1:14 ` Michael Orlitzky
2014-01-27 9:40 ` [gentoo-user] keyword a whole overlay as ~arch [SOLVED] Thanasis
2014-02-15 4:00 ` [gentoo-user] Is there a way to keyword a whole overlay as ~arch ? Michael Higgins
1 sibling, 2 replies; 8+ messages in thread
From: Michael Orlitzky @ 2014-01-27 1:14 UTC (permalink / raw
To: gentoo-user
On 01/26/2014 05:12 PM, Thanasis wrote:
> I am following stable (ACCEPT_KEYWORDS="amd64").
> In order to install the "mate" desktop I need to install the mate
> overlay and keyword all its packages as ~amd64.
> Is there a way to do it easily for the whole overlay?
>
Yep, you just need to know the overlay name. In package.accept_keywords:
*/*::overlay-name ~amd64
The "*/*" syntax means any category, any package name. The "::" then
specifies the repository name. If you don't know the repository name, it
can often be found in path/to/overlay/profiles/repo_name.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [gentoo-user] keyword a whole overlay as ~arch [SOLVED]
2014-01-27 1:14 ` Michael Orlitzky
@ 2014-01-27 9:40 ` Thanasis
2014-02-15 4:00 ` [gentoo-user] Is there a way to keyword a whole overlay as ~arch ? Michael Higgins
1 sibling, 0 replies; 8+ messages in thread
From: Thanasis @ 2014-01-27 9:40 UTC (permalink / raw
To: gentoo-user
on 01/27/2014 03:14 AM Michael Orlitzky wrote the following:
> On 01/26/2014 05:12 PM, Thanasis wrote:
>> I am following stable (ACCEPT_KEYWORDS="amd64").
>> In order to install the "mate" desktop I need to install the mate
>> overlay and keyword all its packages as ~amd64.
>> Is there a way to do it easily for the whole overlay?
>>
>
> Yep, you just need to know the overlay name. In package.accept_keywords:
>
> */*::overlay-name ~amd64
>
> The "*/*" syntax means any category, any package name. The "::" then
> specifies the repository name. If you don't know the repository name, it
> can often be found in path/to/overlay/profiles/repo_name.
>
>
Perfect !
Thanks Michael :)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Is there a way to keyword a whole overlay as ~arch ?
2014-01-26 22:38 ` Alan McKinnon
@ 2014-01-27 9:45 ` Thanasis
2014-01-27 9:55 ` Alan McKinnon
0 siblings, 1 reply; 8+ messages in thread
From: Thanasis @ 2014-01-27 9:45 UTC (permalink / raw
To: gentoo-user
on 01/27/2014 12:38 AM Alan McKinnon wrote the following:
> On 27/01/2014 00:12, Thanasis wrote:
>> I am following stable (ACCEPT_KEYWORDS="amd64").
>> In order to install the "mate" desktop I need to install the mate
>> overlay and keyword all its packages as ~amd64.
>> Is there a way to do it easily for the whole overlay?
>
> As far as I'm aware, this is not part of portage or layman's feature
> set. I've seen a few overlays that provide a package.accept_keywords
> file you can symlink to, but this is just a convenience. It is neither
> required nor the norm.
>
> I suggest you script it somehow. Alan's blunt instrument first cut
> attempt (guaranteed to be buggy as all hell):
>
> find /var/lib/layman/<some_overlay>/ -mindepth 2 -maxdepth 2 -type d
> -wholename "*-*/*" | cut -f6-7 -d/ >>
> /etc/portage/package.accept_keywords/<some_overlay>
>
>
Thanks Alan, although obviously I should adopt Michael's inherent to
portage solution:
*/*::overlay-name ~amd64
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Is there a way to keyword a whole overlay as ~arch ?
2014-01-27 9:45 ` Thanasis
@ 2014-01-27 9:55 ` Alan McKinnon
0 siblings, 0 replies; 8+ messages in thread
From: Alan McKinnon @ 2014-01-27 9:55 UTC (permalink / raw
To: gentoo-user
On 27/01/2014 11:45, Thanasis wrote:
> on 01/27/2014 12:38 AM Alan McKinnon wrote the following:
>> On 27/01/2014 00:12, Thanasis wrote:
>>> I am following stable (ACCEPT_KEYWORDS="amd64").
>>> In order to install the "mate" desktop I need to install the mate
>>> overlay and keyword all its packages as ~amd64.
>>> Is there a way to do it easily for the whole overlay?
>>
>> As far as I'm aware, this is not part of portage or layman's feature
>> set. I've seen a few overlays that provide a package.accept_keywords
>> file you can symlink to, but this is just a convenience. It is neither
>> required nor the norm.
>>
>> I suggest you script it somehow. Alan's blunt instrument first cut
>> attempt (guaranteed to be buggy as all hell):
>>
>> find /var/lib/layman/<some_overlay>/ -mindepth 2 -maxdepth 2 -type d
>> -wholename "*-*/*" | cut -f6-7 -d/ >>
>> /etc/portage/package.accept_keywords/<some_overlay>
>>
>>
>
> Thanks Alan, although obviously I should adopt Michael's inherent to
> portage solution:
>
> */*::overlay-name ~amd64
Yes, I saw that when he posted. It's a neat feature, pity I'd never
spotted it myself before (would have saved me a lot of pain)
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Is there a way to keyword a whole overlay as ~arch ?
2014-01-27 1:14 ` Michael Orlitzky
2014-01-27 9:40 ` [gentoo-user] keyword a whole overlay as ~arch [SOLVED] Thanasis
@ 2014-02-15 4:00 ` Michael Higgins
2014-02-15 9:32 ` Neil Bothwick
1 sibling, 1 reply; 8+ messages in thread
From: Michael Higgins @ 2014-02-15 4:00 UTC (permalink / raw
To: gentoo-user
On Sun, 26 Jan 2014 20:14:17 -0500
Michael Orlitzky <mjo@gentoo.org> wrote:
> On 01/26/2014 05:12 PM, Thanasis wrote:
> > I am following stable (ACCEPT_KEYWORDS="amd64").
> > In order to install the "mate" desktop I need to install the mate
> > overlay and keyword all its packages as ~amd64.
> > Is there a way to do it easily for the whole overlay?
> >
>
> Yep, you just need to know the overlay name. In
> package.accept_keywords:
>
> */*::overlay-name ~amd64
>
> The "*/*" syntax means any category, any package name. The "::" then
> specifies the repository name. If you don't know the repository name,
> it can often be found in path/to/overlay/profiles/repo_name.
>
>
I wonder, can we get a hint of this function echo-ed at the end of every
new layman install? It would make using, say, perl-experimental, far
less unwieldy than without.
(Apologies in advance for the noise.)
I had no idea this was possible, but it seems the only way to use the
overlay without making of mess of package.accept_keywords, which is
what I have had when installing anything useful in the perl development
area.
Does this make any sense? Do all the overlays work that way, that is,
kw-masking everything so you have to enable the ~arch per package? This
always seemed absurd to me, as I added the overlay, I must have meant
to use it... but anyway...
I suppose it should be printed in red "use if you know what it
means", kind of thing. I can see it being a PITA if it breaks stuff in
the main gentoo tree.
. . .
FWIW, I tried adding that incantation and emerging world, which gave no
changes to my install.
Then I tried:
emerge -av dev-perl/Catalyst-Model-DBIC-Schema
(Which created a bloated keyword file on my other machine.)
This time, it only wants to unmask things perl in the gentoo tree...
but --autounmask-write proposes to list every overlay dep as a comment.
Ugh.
Before, I'd do something like:
mv /etc/portage/package.accept_keywords ~/
mkdir /etc/portage/package.accept_keywords
cp
package.accept_keywords /etc/portage/package.accept_keywords/99_portage
eix -c --only-in-overlay 0 -C dev-perl|grep '(~' |cut -d ' '
-f 2 | while read a ; do echo $a ~x86 ;done
> /etc/portage/package.accept_keywords/00_perl
emerge -auDNtv world
Nothing to merge; quitting.
... Which I did. Then /me thinks, for a change.
If */*::overlay-name ~amd64, then:
dev-perl/*::gentoo ~amd64 should work too.
Now,
emerge -av dev-perl/Catalyst-Model-DBIC-Schema
Gives:
Total: 37 packages (34 upgrades, 3 new), Size of downloads: 5,905 kB
Would you like to merge these packages? [Yes/No]
And no guff from portage. OMG, what a treat. I wept.
. . .
So wow, if I'd known about that before now, it would have saved me
hours, if not days, worth of hassle.
I think that should be the recommendation for anyone who installs the
perl overlay. Maybe I'm crazy, but it seems to DWIW.
Thanks Michael. Very helpful to know, at least. Does anyone who may
have read this far think this would be a good thing to mention from the
start for a new user of an overlay, like echoed at the end of emerging
layman, or adding a new overlay?
And, yes, it's a full moon, so I'm posting to the list. As is my
habit. ;-)
Cheers [I recommend Flat Tail "seriously budget" barley wine],
- mykhyggz (who lost his .sig)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Is there a way to keyword a whole overlay as ~arch ?
2014-02-15 4:00 ` [gentoo-user] Is there a way to keyword a whole overlay as ~arch ? Michael Higgins
@ 2014-02-15 9:32 ` Neil Bothwick
0 siblings, 0 replies; 8+ messages in thread
From: Neil Bothwick @ 2014-02-15 9:32 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2052 bytes --]
On Fri, 14 Feb 2014 20:00:47 -0800, Michael Higgins wrote:
> > Yep, you just need to know the overlay name. In
> > package.accept_keywords:
> >
> > */*::overlay-name ~amd64
> >
> > The "*/*" syntax means any category, any package name. The "::" then
> > specifies the repository name. If you don't know the repository name,
> > it can often be found in path/to/overlay/profiles/repo_name.
> I wonder, can we get a hint of this function echo-ed at the end of every
> new layman install? It would make using, say, perl-experimental, far
> less unwieldy than without.
It is documented in man portage, in the wildcards subsection of the atom
definition part.
> I had no idea this was possible, but it seems the only way to use the
> overlay without making of mess of package.accept_keywords, which is
> what I have had when installing anything useful in the perl development
> area.
>
> Does this make any sense? Do all the overlays work that way, that is,
> kw-masking everything so you have to enable the ~arch per package? This
> always seemed absurd to me, as I added the overlay, I must have meant
> to use it... but anyway...
You are running a stable arch, using only ebuilds that have been through
Gentoo QA and user testing. Presumably you do that for a reason, so
portage suddenly allowing installation of untested packages from a random
repository goes against what you have told it you want in make.conf.
Adding an overlay to layman does not necessarily mean you want everything
that overlay offers. In some cases there will be newer, less tested,
versions of packages you already have installed, packages you may not
want randomly updated.
The only way portage can know what you want is if you tell it so, the
current approach is the safest, it only breaks what you tell it to break.
This is Gentoo where you do the thinking and the system does what you
tell it (which may not always be what you want).
--
Neil Bothwick
WinErr 00A: Promotional literature overflow - Mailbox full
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-02-15 9:32 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-26 22:12 [gentoo-user] Is there a way to keyword a whole overlay as ~arch ? Thanasis
2014-01-26 22:38 ` Alan McKinnon
2014-01-27 9:45 ` Thanasis
2014-01-27 9:55 ` Alan McKinnon
2014-01-27 1:14 ` Michael Orlitzky
2014-01-27 9:40 ` [gentoo-user] keyword a whole overlay as ~arch [SOLVED] Thanasis
2014-02-15 4:00 ` [gentoo-user] Is there a way to keyword a whole overlay as ~arch ? Michael Higgins
2014-02-15 9:32 ` Neil Bothwick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox