Re: [gentoo-user] Prefer Gentoo repository rather than overlay?

2020-04-23 Thread Matt Connell (Gmail)

On 2020-04-23 14:35, Caveman Al Toraboran wrote:

 * setting priority of your layman repo below -1000.


I think this is the hot ticket here.  That way poly-c becomes... an 
underlay, I guess?  It will suit my needs and it only affects this one *lay.


I figured this was an "RTFM" type of problem, I just didn't punch the 
right words into a search I reckon.


On 2020-04-23 15:14, J. Roeleveld wrote:
> The problem with that method is that it needs to be done for any 
overlay you install.

>
> By setting the priority of the gentoo repo to a high number, it will 
always take precedence.


Your solution is a general one, where someone wants every overlay to be 
lower priority than the default.  My issue is specific to a single 
overlay, so setting it's priority lower, and leaving everything else 
unchanged, meets my needs more precisely.  This way I can use other 
overlays the way they're intended, while just making poly-c packages 
take a back-seat.


Thanks everyone.



Re: [gentoo-user] Prefer Gentoo repository rather than overlay?

2020-04-23 Thread J. Roeleveld
On 23 April 2020 22:00:50 CEST, tastytea  wrote:
>On 2020-04-23T21:39+0200
>"J. Roeleveld"  wrote:
>
>> On 23 April 2020 21:35:22 CEST, Caveman Al Toraboran
>>  wrote:
>> >
>> >> I would prefer that portage prioritize gentoo's version rather
>> >> than the overlay's version, unless specified otherwise (eg.
>> >> sys-boot/grub::poly-c) when installing.
>> >
>> >didn't try it, but i guess you'll get the effect
>> >you want by:
>> >
>> >* setting priority of your layman repo below -1000.
>> >* setting priority of the gentoo repo above
>> >  50 (i think default for layman).
>> >
>> >more info:
>> >https://wiki.gentoo.org/wiki/Ebuild_repository#Priorities
>>
>> I got this working by only setting the priority of the gentoo repo to
>> 999.
>
>Another option is to mask¹ all packages from the overlay with
>*/*::poly-c and only unmask the packages you want to install from it.
>
>¹ 

The problem with that method is that it needs to be done for any overlay you 
install.

By setting the priority of the gentoo repo to a high number, it will always 
take precedence.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Prefer Gentoo repository rather than overlay?

2020-04-23 Thread tastytea
On 2020-04-23T21:39+0200
"J. Roeleveld"  wrote:

> On 23 April 2020 21:35:22 CEST, Caveman Al Toraboran
>  wrote:
> >
> >> I would prefer that portage prioritize gentoo's version rather
> >> than the overlay's version, unless specified otherwise (eg.
> >> sys-boot/grub::poly-c) when installing.
> >
> >didn't try it, but i guess you'll get the effect
> >you want by:
> >
> >* setting priority of your layman repo below -1000.
> >* setting priority of the gentoo repo above
> >  50 (i think default for layman).
> >
> >more info:
> >https://wiki.gentoo.org/wiki/Ebuild_repository#Priorities
>
> I got this working by only setting the priority of the gentoo repo to
> 999.

Another option is to mask¹ all packages from the overlay with
*/*::poly-c and only unmask the packages you want to install from it.

¹ 

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgpOrdfSoYiRZ.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Prefer Gentoo repository rather than overlay?

2020-04-23 Thread Caveman Al Toraboran


On Thursday, April 23, 2020 11:09 PM, Matt Connell (Gmail) 
 wrote:

> Looking for some guidance in managing the source of package
> installs/upgrades when a package is provided by both the standard
> repository and an overlay.
>
> I currently have the poly-c overlay added via layman. poly-c provides
> many of the same packages as the standard gentoo repository.
>
> When I install/update packages, portage appears to prefer the version
> provided by poly-c rather than the version provided by the gentoo
> repository, if the two provide the same version number of the package.
> Examples of this include sys-boot/grub, sys-fs/udev, and other critical
> packages.
>
> I would prefer that portage prioritize gentoo's version rather than the
> overlay's version, unless specified otherwise (eg.
> sys-boot/grub::poly-c) when installing.
>
> What's the best way to go about doing this? I could specify ::gentoo
> for each entry in my world file, but this seems rather heavy-handed and
> high maintenance. Is there a better way?


**warning** i'm dumb.

didn't try it, but i guess you'll get the effect
you want by:

* setting priority of your layman repo below -1000.
* setting priority of the gentoo repo above
  50 (i think default for layman).

more info:
https://wiki.gentoo.org/wiki/Ebuild_repository#Priorities




Re: [gentoo-user] Prefer Gentoo repository rather than overlay?

2020-04-23 Thread J. Roeleveld
On 23 April 2020 21:35:22 CEST, Caveman Al Toraboran 
 wrote:
>
>On Thursday, April 23, 2020 11:09 PM, Matt Connell (Gmail)
> wrote:
>
>> Looking for some guidance in managing the source of package
>> installs/upgrades when a package is provided by both the standard
>> repository and an overlay.
>>
>> I currently have the poly-c overlay added via layman. poly-c provides
>> many of the same packages as the standard gentoo repository.
>>
>> When I install/update packages, portage appears to prefer the version
>> provided by poly-c rather than the version provided by the gentoo
>> repository, if the two provide the same version number of the
>package.
>> Examples of this include sys-boot/grub, sys-fs/udev, and other
>critical
>> packages.
>>
>> I would prefer that portage prioritize gentoo's version rather than
>the
>> overlay's version, unless specified otherwise (eg.
>> sys-boot/grub::poly-c) when installing.
>>
>> What's the best way to go about doing this? I could specify ::gentoo
>> for each entry in my world file, but this seems rather heavy-handed
>and
>> high maintenance. Is there a better way?
>
>
>**warning** i'm dumb.
>
>didn't try it, but i guess you'll get the effect
>you want by:
>
>* setting priority of your layman repo below -1000.
>* setting priority of the gentoo repo above
>  50 (i think default for layman).
>
>more info:
>https://wiki.gentoo.org/wiki/Ebuild_repository#Priorities

I got this working by only setting the priority of the gentoo repo to 999. 

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



[gentoo-user] Prefer Gentoo repository rather than overlay?

2020-04-23 Thread Matt Connell (Gmail)
Looking for some guidance in managing the source of package 
installs/upgrades when a package is provided by both the standard 
repository and an overlay.


I currently have the poly-c overlay added via layman.  poly-c provides 
many of the same packages as the standard gentoo repository.


When I install/update packages, portage appears to prefer the version 
provided by poly-c rather than the version provided by the gentoo 
repository, if the two provide the same version number of the package. 
Examples of this include sys-boot/grub, sys-fs/udev, and other critical 
packages.


I would prefer that portage prioritize gentoo's version rather than the 
overlay's version, unless specified otherwise (eg. 
sys-boot/grub::poly-c) when installing.


What's the best way to go about doing this?  I could specify ::gentoo 
for each entry in my world file, but this seems rather heavy-handed and 
high maintenance.  Is there a better way?