Gentoo Archives: gentoo-dev

From: "Corentin “Nado” Pazdera" <nado@××××××××××.be>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: moving default location of portage tree (was: [gentoo-project] Call for agenda items - Council meeting 2018-07-29)
Date: Fri, 27 Jul 2018 14:18:51
Message-Id: a8fe3b17f058e7c4fbd695a7b904473d@troglodyte.be
In Reply to: Re: [gentoo-dev] rfc: moving default location of portage tree (was: [gentoo-project] Call for agenda items - Council meeting 2018-07-29) by William Hubbs
1 July 27, 2018 4:07 PM, "William Hubbs" <williamh@g.o> wrote:
2
3 > On Fri, Jul 27, 2018 at 10:32:17AM +0200, Ulrich Mueller wrote:
4 >
5 >> So, considering all the feedback from mailing list and IRC:
6 >>
7 >> /usr/portage -> /var/db/repos/gentoo
8 >> /usr/portage/distfiles -> /var/cache{,/gentoo}/distfiles
9 >> /usr/portage/packages -> /var/cache{,/gentoo}/binpkgs
10 >>
11 >> Open question: Should we have the additional "gentoo" path component
12 >> for the ones in /var/cache? The tradeoff is between a path that is
13 >> easier to type, or slightly easier usage if someone wants to NFS mount
14 >> distfiles and binpkgs.
15 >
16 > Section 5.5.2 describes the directory structure of /var/cache. These
17 > paths are all optional [1].
18 >
19 > /var/cache/fonts
20 > /var/cache/man
21 > /var/cache/www
22 > /var/cache/<package>
23 >
24 > Gentoo isn't a package, so I don't think /var/cache/gentoo/* is
25 > appropriate. Here is my proposal:
26 >
27 > /usr/portage -> /var/db/repos/gentoo
28 > /usr/portage/distfiles -> /var/cache/portage/distfiles
29 > /usr/portage/packages -> /var/cache/portage/binpkgs
30 >
31 > I'm not 100% comfortable with /var/db, but I don't have any better
32 > suggestion either.
33 >
34 > William
35 >
36 > [1] http://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#varcacheApplicationCacheData
37
38 From the same source
39 "No other requirements are made on the data format of the cache directories."
40 And as you have quoted it, everything under /var/cache is optional.
41
42 So anything which doesn't conflict with another package seems fine according to FHS.
43
44 --
45 Corentin “Nado” Pazdera

Replies