Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
overlays priorities
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
LIsLinuxIsSogood
Apprentice
Apprentice


Joined: 13 Feb 2016
Posts: 255

PostPosted: Wed Sep 13, 2017 2:35 am    Post subject: overlays priorities Reply with quote

Is there a simple answer for the way to change the default overlay priority from -1000 to something different than that? From what I've seen, or read, the decision for that was based on other repos acting like should have priority over Gentoo ones, which i don't always agree with. For example, i would like to have a repo that works as a potential backup to the source for ebuilds that might be either missing or something like that... from the official repo.

Therefore, when a huge repo gets in the way of the official one that is not an ideal solution. The problem has a solution with masking many packages for that overlay on the system, if this is what is needed then I can handle that suggestion. However that seems messy and could get confusing as to which unmasked packages have been installed. Or remain to be installed etc.

If I could assign priorities to all repos including the other local overlay I have setup that would be great. And for the official gentoo one as well. Here's what currently is outputted when running command for querying the system package database with eix.

Code:
* dev-python/python-efl
     Available versions:  1.17.0 ~1.18.0 ~1.18.0[1] **9999[1] **9999*l[2] {doc examples PYTHON_TARGETS="python2_7 python3_4 python3_5 python3_6"}
     Homepage:            http://www.enlightenment.org
     Description:         Python bindings for EFL

[1] "enlightenment-live" /var/lib/layman/enlightenment-live
[2] "enlightenment-niifaq" /var/lib/layman/enlightenment-niifaq


Question 1:
I guess the confusion is with the absence of any note of which are the packages that are official to the Gentoo repo. I assume it is all of them Is that correct? Would the order of them be important or not that they get listed in?

Question 2:
What about how the other portage tools like emerge could also help at time of package installation to be reminding which repo is used...does that seem a bit unnecessary...or is that something that would improve any aspect of the system. Right now I am curious how to query which ebuild portage actually used to install a package. Is that also part of emerge, or portageq, or what other tools?
Back to top
View user's profile Send private message
saboya
Guru
Guru


Joined: 28 Nov 2006
Posts: 316
Location: Brazil

PostPosted: Wed Sep 13, 2017 2:50 am    Post subject: Reply with quote

Emerge already tells you which overlay is being used:

Code:
Calculating dependencies... done!
[ebuild   R   ~] sys-kernel/gentoo-sources-4.12.11:4.12.11::gentoo  USE="-build -experimental -symlink" 0 KiB
                                                            ^^^^ here
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Apprentice
Apprentice


Joined: 13 Feb 2016
Posts: 255

PostPosted: Wed Sep 13, 2017 3:17 am    Post subject: Reply with quote

I see
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 16616

PostPosted: Wed Sep 13, 2017 3:27 am    Post subject: Re: overlays priorities Reply with quote

LIsLinuxIsSogood wrote:
Is there a simple answer for the way to change the default overlay priority from -1000 to something different than that?
I believe man 5 portage will have an answer for you.


Quote:
priority
Specifies priority of given repository.
and
Quote:
[gentoo]
# repos with higher priorities are preferred when ebuilds with equal versions
# are found in multiple repos (see the `emerge --info --verbose` repo
# display for a listing of repos and their corresponding priorities).
priority = 9999
# disable all eclass overrides for ebuilds from the gentoo repository
eclass-overrides =
# when processing metadata/layout.conf from other repositories, substitute
# 'gentoo' in place of references to repositories named 'foo' and 'bar',
# and discard the 'baz' alias contained in gentoo's layout.conf
aliases = foo bar -baz

_________________
Find them! Fix them! Fight them! Finish them! -- GEN Matthew B. Ridgway
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Apprentice
Apprentice


Joined: 13 Feb 2016
Posts: 255

PostPosted: Wed Sep 13, 2017 3:33 am    Post subject: Reply with quote

In that case, would it be possible to create a local "copy" to prioritize the gentoo higher than the several overlays I have in my repos.conf file. All them are priority 50, so I guess in theory I might just make those lower as well. To -1001, -1002, etc. if that seems like a better if viable solution. Does either/neither/both of these methods work on some level?
Back to top
View user's profile Send private message
LIsLinuxIsSogood
Apprentice
Apprentice


Joined: 13 Feb 2016
Posts: 255

PostPosted: Wed Sep 13, 2017 3:41 am    Post subject: Reply with quote

Nevermind...works

:)
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 16227
Location: here

PostPosted: Wed Sep 13, 2017 5:37 am    Post subject: Reply with quote

For see all overlay priority run emerge --info
Code:

....
gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

rindeal
    location: /var/lib/layman/rindeal
    sync-type: laymansync
    sync-uri: https://github.com/rindeal/gentoo-overlay.git
    masters: gentoo
    priority: 50

seden
    location: /var/lib/layman/seden
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/user/seden.git
    masters: gentoo
    priority: 50
...

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum