public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Prefer Gentoo repository rather than overlay?
@ 2020-04-23 19:09 Matt Connell (Gmail)
  2020-04-23 19:35 ` Caveman Al Toraboran
  0 siblings, 1 reply; 6+ messages in thread
From: Matt Connell (Gmail) @ 2020-04-23 19:09 UTC (permalink / raw
  To: gentoo-user

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?


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

* Re: [gentoo-user] Prefer Gentoo repository rather than overlay?
  2020-04-23 19:09 [gentoo-user] Prefer Gentoo repository rather than overlay? Matt Connell (Gmail)
@ 2020-04-23 19:35 ` Caveman Al Toraboran
  2020-04-23 19:39   ` J. Roeleveld
  2020-04-23 20:33   ` Matt Connell (Gmail)
  0 siblings, 2 replies; 6+ messages in thread
From: Caveman Al Toraboran @ 2020-04-23 19:35 UTC (permalink / raw
  To: gentoo-user@lists.gentoo.org


On Thursday, April 23, 2020 11:09 PM, Matt Connell (Gmail) <matthewdconnell@gmail.com> 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



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

* Re: [gentoo-user] Prefer Gentoo repository rather than overlay?
  2020-04-23 19:35 ` Caveman Al Toraboran
@ 2020-04-23 19:39   ` J. Roeleveld
  2020-04-23 20:00     ` tastytea
  2020-04-23 20:33   ` Matt Connell (Gmail)
  1 sibling, 1 reply; 6+ messages in thread
From: J. Roeleveld @ 2020-04-23 19:39 UTC (permalink / raw
  To: gentoo-user

On 23 April 2020 21:35:22 CEST, Caveman Al Toraboran <toraboracaveman@protonmail.com> wrote:
>
>On Thursday, April 23, 2020 11:09 PM, Matt Connell (Gmail)
><matthewdconnell@gmail.com> 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.


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

* Re: [gentoo-user] Prefer Gentoo repository rather than overlay?
  2020-04-23 19:39   ` J. Roeleveld
@ 2020-04-23 20:00     ` tastytea
  2020-04-23 20:14       ` J. Roeleveld
  0 siblings, 1 reply; 6+ messages in thread
From: tastytea @ 2020-04-23 20:00 UTC (permalink / raw
  To: gentoo-user

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

On 2020-04-23T21:39+0200
"J. Roeleveld" <joost@antarean.org> wrote:

> On 23 April 2020 21:35:22 CEST, Caveman Al Toraboran
> <toraboracaveman@protonmail.com> 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.

¹ <https://wiki.gentoo.org/wiki//etc/portage/package.mask>

-- 
Get my PGP key with `gpg --locate-keys tastytea@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.

[-- Attachment #2: Digitale Signatur von OpenPGP --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

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

* Re: [gentoo-user] Prefer Gentoo repository rather than overlay?
  2020-04-23 20:00     ` tastytea
@ 2020-04-23 20:14       ` J. Roeleveld
  0 siblings, 0 replies; 6+ messages in thread
From: J. Roeleveld @ 2020-04-23 20:14 UTC (permalink / raw
  To: gentoo-user

On 23 April 2020 22:00:50 CEST, tastytea <tastytea+gentoo@tastytea.de> wrote:
>On 2020-04-23T21:39+0200
>"J. Roeleveld" <joost@antarean.org> wrote:
>
>> On 23 April 2020 21:35:22 CEST, Caveman Al Toraboran
>> <toraboracaveman@protonmail.com> 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.
>
>¹ <https://wiki.gentoo.org/wiki//etc/portage/package.mask>

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.


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

* Re: [gentoo-user] Prefer Gentoo repository rather than overlay?
  2020-04-23 19:35 ` Caveman Al Toraboran
  2020-04-23 19:39   ` J. Roeleveld
@ 2020-04-23 20:33   ` Matt Connell (Gmail)
  1 sibling, 0 replies; 6+ messages in thread
From: Matt Connell (Gmail) @ 2020-04-23 20:33 UTC (permalink / raw
  To: gentoo-user

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.


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

end of thread, other threads:[~2020-04-23 20:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-23 19:09 [gentoo-user] Prefer Gentoo repository rather than overlay? Matt Connell (Gmail)
2020-04-23 19:35 ` Caveman Al Toraboran
2020-04-23 19:39   ` J. Roeleveld
2020-04-23 20:00     ` tastytea
2020-04-23 20:14       ` J. Roeleveld
2020-04-23 20:33   ` Matt Connell (Gmail)

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