Gentoo Archives: gentoo-dev

From: Brian Dolbec <dolsen@g.o>
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 15:06:11
Message-Id: 20180727080605.34cdafc7@professor-x
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 Ulrich Mueller
1 On Fri, 27 Jul 2018 16:31:15 +0200
2 Ulrich Mueller <ulm@g.o> wrote:
3
4 > >>>>> On Fri, 27 Jul 2018, Corentin “Nado” Pazdera wrote:
5 >
6 > > July 27, 2018 4:07 PM, "William Hubbs" <williamh@g.o>
7 > > wrote:
8 >
9 > >> Section 5.5.2 describes the directory structure of /var/cache.
10 > >> These paths are all optional [1].
11 > >>
12 > >> /var/cache/fonts
13 > >> /var/cache/man
14 > >> /var/cache/www
15 > >> /var/cache/<package>
16 > >>
17 > >> Gentoo isn't a package, so I don't think /var/cache/gentoo/* is
18 > >> appropriate. Here is my proposal:
19 > >>
20 > >> /usr/portage -> /var/db/repos/gentoo
21 > >> /usr/portage/distfiles -> /var/cache/portage/distfiles
22 > >> /usr/portage/packages -> /var/cache/portage/binpkgs
23 > >>
24 > >> I'm not 100% comfortable with /var/db, but I don't have any better
25 > >> suggestion either.
26 > >>
27 > >> [1]
28 > >> http://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#varcacheApplicationCacheData
29 >
30 > > From the same source
31 > > "No other requirements are made on the data format of the cache
32 > > directories."
33 > > And as you have quoted it, everything under /var/cache is
34 > > optional.
35 >
36 > > So anything which doesn't conflict with another package seems fine
37 > > according to FHS.
38 >
39 > That's how I would read it, too. We could of course invent a package
40 > name (like "package-manager" for virtual/package-manager) but it seems
41 > cumbersome, and I don't see any benefit of it.
42 >
43 > There also is /var/cache/fonts, so the FHS itself lists an example of
44 > a directory that's not named after a specific package.
45 >
46 > Ulrich
47
48 /var/db/repos/gentoo
49 /var/cache/distfiles
50 /var/cache/binpkgs
51
52 Works for me, just please keep "portage" out of it, after all distfiles
53 are not restricted to portage use only, and neither are binpkgs. There
54 is alternate binpkg installers.

Replies