On 23 April 2020 21:35:22 CEST, Caveman Al Toraboran <[email protected]> wrote: > >On Thursday, April 23, 2020 11:09 PM, Matt Connell (Gmail) ><[email protected]> 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.

