Gentoo Archives: gentoo-dev

From: Michael Lienhardt <michael.lienhardt@×××××××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Questions on overlays, repositories and PMS
Date: Fri, 23 Feb 2018 17:35:41
Message-Id: 7390233c-9b93-d1be-2005-4f28b61e4289@laposte.net
1 I started refactoring my solver to make it more modular, to fix some details w.r.t. the PMS and to manage different repositories.
2 I thus have several questions on how multiple repositories work in portage.
3
4 1. My understanding was that /etc/portage/repos.conf replaced the PORTDIR_OVERLAY variable, however this variable is still documented (e.g. in https://devmanual.gentoo.org/general-concepts/overlay/index.html).
5 Was my intuition right?
6 Or in other word, it is enough to only look at /etc/portage/repos.conf?
7 In general, an overlay is a repository, i.e., a valid tree layout for the PMS, right (as stated in https://devmanual.gentoo.org/general-concepts/overlay/index.html)?
8
9 2. the PMS states that any valid repository has a profiles folder which can contain profiles and a package.mask file.
10 - can the profiles in a repository different from DEFAULT be selected?
11 - is the package.mask file apply only on the packages of that repository, or on every packages of every repositories listed in /etc/portage/repos.conf?
12
13 3. many repositories do not have an eclass folder, and miss many (optional) configuration files in the profiles folder (like arch.list, categories):
14 - is such information implicitly inherited from the DEFAULT repository (even though https://wiki.gentoo.org/wiki//etc/portage/repos.conf states that it is not)?
15 the brother overlay (https://github.com/stefan-langenmaier/brother-overlay) does not specify any masters
16 - when the eclass folder, profiles/arch.list and such are present, is the data from the DEFAULT repository still implicitly inherited?
17 - when the eclass folder, profiles/arch.list and such are present, are they visible globally (i.e., a package from another repository can use a keyword of the arch.list and inherit from one of the eclass)?
18
19 4. is the "masters" attribute in /etc/portage/repos.conf make the repository inherit other data than the eclasses?
20
21 5. since every repos can have a profiles/categories file, is the file /etc/portage/categories obsolete (or should it be)?
22
23
24 Best Regards,
25 Michael Lienhardt

Replies

Subject Author
Re: [gentoo-dev] Questions on overlays, repositories and PMS "Vadim A. Misbakh-Soloviov" <gentoo@×××.name>
Re: [gentoo-dev] Questions on overlays, repositories and PMS Alec Warner <antarus@g.o>
Re: [gentoo-dev] Questions on overlays, repositories and PMS Brian Dolbec <dolsen@g.o>