July 27, 2018 4:07 PM, "William Hubbs" <willi...@gentoo.org> wrote:
> On Fri, Jul 27, 2018 at 10:32:17AM +0200, Ulrich Mueller wrote: > >> So, considering all the feedback from mailing list and IRC: >> >> /usr/portage -> /var/db/repos/gentoo >> /usr/portage/distfiles -> /var/cache{,/gentoo}/distfiles >> /usr/portage/packages -> /var/cache{,/gentoo}/binpkgs >> >> Open question: Should we have the additional "gentoo" path component >> for the ones in /var/cache? The tradeoff is between a path that is >> easier to type, or slightly easier usage if someone wants to NFS mount >> distfiles and binpkgs. > > Section 5.5.2 describes the directory structure of /var/cache. These > paths are all optional [1]. > > /var/cache/fonts > /var/cache/man > /var/cache/www > /var/cache/<package> > > Gentoo isn't a package, so I don't think /var/cache/gentoo/* is > appropriate. Here is my proposal: > > /usr/portage -> /var/db/repos/gentoo > /usr/portage/distfiles -> /var/cache/portage/distfiles > /usr/portage/packages -> /var/cache/portage/binpkgs > > I'm not 100% comfortable with /var/db, but I don't have any better > suggestion either. > > William > > [1] > http://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#varcacheApplicationCacheData From the same source "No other requirements are made on the data format of the cache directories." And as you have quoted it, everything under /var/cache is optional. So anything which doesn't conflict with another package seems fine according to FHS. -- Corentin “Nado” Pazdera