1 |
W dniu pią, 27.07.2018 o godzinie 08∶06 -0700, użytkownik Brian Dolbec |
2 |
napisał: |
3 |
> On Fri, 27 Jul 2018 16:31:15 +0200 |
4 |
> Ulrich Mueller <ulm@g.o> wrote: |
5 |
> |
6 |
> > > > > > > On Fri, 27 Jul 2018, Corentin “Nado” Pazdera wrote: |
7 |
> > > July 27, 2018 4:07 PM, "William Hubbs" <williamh@g.o> |
8 |
> > > wrote: |
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 |
> > > From the same source |
30 |
> > > "No other requirements are made on the data format of the cache |
31 |
> > > directories." |
32 |
> > > And as you have quoted it, everything under /var/cache is |
33 |
> > > optional. |
34 |
> > > So anything which doesn't conflict with another package seems fine |
35 |
> > > according to FHS. |
36 |
> > |
37 |
> > That's how I would read it, too. We could of course invent a package |
38 |
> > name (like "package-manager" for virtual/package-manager) but it seems |
39 |
> > cumbersome, and I don't see any benefit of it. |
40 |
> > |
41 |
> > There also is /var/cache/fonts, so the FHS itself lists an example of |
42 |
> > a directory that's not named after a specific package. |
43 |
> > |
44 |
> > Ulrich |
45 |
> |
46 |
> /var/db/repos/gentoo |
47 |
> /var/cache/distfiles |
48 |
> /var/cache/binpkgs |
49 |
> |
50 |
> Works for me, just please keep "portage" out of it, after all distfiles |
51 |
> are not restricted to portage use only, and neither are binpkgs. There |
52 |
> is alternate binpkg installers. |
53 |
|
54 |
Well, technically speaking this specific binary package format is |
55 |
Portage-specific. But I don't think we need to go into that kind of |
56 |
nuances. |
57 |
|
58 |
-- |
59 |
Best regards, |
60 |
Michał Górny |