Re: [gentoo-user] Is there a way to keyword a whole overlay as ~arch ?
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 signature.asc Description: PGP signature
Re: [gentoo-user] Is there a way to keyword a whole overlay as ~arch ?
On Sun, 26 Jan 2014 20:14:17 -0500 Michael Orlitzky 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)
Re: [gentoo-user] Is there a way to keyword a whole overlay as ~arch ?
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// -mindepth 2 -maxdepth 2 -type d >> -wholename "*-*/*" | cut -f6-7 -d/ >> >> /etc/portage/package.accept_keywords/ >> >> > > 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.mckin...@gmail.com
Re: [gentoo-user] Is there a way to keyword a whole overlay as ~arch ?
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// -mindepth 2 -maxdepth 2 -type d > -wholename "*-*/*" | cut -f6-7 -d/ >> > /etc/portage/package.accept_keywords/ > > Thanks Alan, although obviously I should adopt Michael's inherent to portage solution: */*::overlay-name ~amd64
Re: [gentoo-user] Is there a way to keyword a whole overlay as ~arch ?
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.
Re: [gentoo-user] Is there a way to keyword a whole overlay as ~arch ?
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// -mindepth 2 -maxdepth 2 -type d -wholename "*-*/*" | cut -f6-7 -d/ >> /etc/portage/package.accept_keywords/ -- Alan McKinnon alan.mckin...@gmail.com