public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Higgins <linux@evolone.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Is there a way to keyword a whole overlay as ~arch ?
Date: Fri, 14 Feb 2014 20:00:47 -0800	[thread overview]
Message-ID: <20140214200047.531d577c@lbg2.PK5001Z> (raw)
In-Reply-To: <52E5B2E9.1010704@gentoo.org>

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)


  parent reply	other threads:[~2014-02-15  4:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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   ` Michael Higgins [this message]
2014-02-15  9:32     ` [gentoo-user] Is there a way to keyword a whole overlay as ~arch ? Neil Bothwick

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=20140214200047.531d577c@lbg2.PK5001Z \
    --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