Gentoo Archives: gentoo-dev

From: konsolebox <konsolebox@×××××.com>
To: gentoo-dev@l.g.o, "Michał Górny" <mgorny@g.o>, dolsen@g.o, rich0@g.o
Subject: Re: [gentoo-dev] rfc: moving default location of portage tree
Date: Fri, 13 Jul 2018 08:48:00
Message-Id: CAJnmqwYB0cdFQ4quMBeQJOcNsv+xeQrK+66bg73YYLAFSWN1Aw@mail.gmail.com
In Reply to: Re: [gentoo-dev] rfc: moving default location of portage tree by William Hubbs
1 On Fri, Jul 13, 2018 at 5:12 AM, William Hubbs <williamh@g.o> wrote:
2 > On Thu, Jul 12, 2018 at 10:13:57PM +0200, Michał Górny wrote:
3 >> W dniu czw, 12.07.2018 o godzinie 15∶51 -0400, użytkownik Rich Freeman
4 >> napisał:
5 >> > On Thu, Jul 12, 2018 at 3:47 PM Brian Dolbec <dolsen@g.o> wrote:
6 >> > >
7 >> > > So, "portage" should not be a directory name in the new default path.
8 >> > >
9 >> >
10 >> > Well, in my examples I proposed it as that is the software that
11 >> > created the path, but then again in the spirit of PMS portage isn't
12 >> > the only PM.
13 >> >
14 >> > So:
15 >> > /var/lib/repos/gentoo ?
16 >> >
17 >>
18 >> Subdirectories of /var/lib should be named after the tool/package name.
19 >> There's no tool or package called 'repos'.
20 >
21 > Technically mgorny is correct here. FHS requires that everything under
22 > /var/lib be under a directory for the package or for the distro [1].
23 > Note the comment about packaging support in 5.8.1.
24 >
25 > Based on that this is my thought:
26 >
27 > * /var/lib/portage is for portage specific stuff -- maybe even /var/db/pkg
28 > in the future should go to /var/lib/portage/pkg.
29 >
30 > * /var/lib/gentoo, on the other hand, could be where repos, distfiles
31 > and binpkgs go.
32 > William
33 >
34 > [1]
35 > http://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#varlibVariableStateInformation
36
37 /var/lib/gentoo/portage then. (Or /var/lib/gentoo/repos/gentoo if you
38 care about PMS diplomacy.)
39
40 People can just move it somewhere and/or use symbolic links if they
41 want to use a different path.
42
43 Besides having /var/lib/gentoo/portage being set as "PORTDIR", I also
44 have DISTDIR=/var/lib/gentoo/distfiles
45 and PKGDIR=/var/lib/gentoo/packages.
46
47 --
48 konsolebox