1 |
[Proxying a message from Anders Thomson <andersthomson888@×××××.com>] |
2 |
|
3 |
Hi Ulrich, |
4 |
As non-devs aren't allowed to post to gentoo-dev, I was hoping that you would |
5 |
proxy this question/comment for me. |
6 |
|
7 |
While on the subject of changing defaults, could we consider changing the |
8 |
(default) location of the pkg db? Roughly everything in /usr (and /(s)bin) is |
9 |
managed by the package manager, and it would be handy if the db of installed |
10 |
bits is close to the bits themselves . Keeping it in /var/ makes /var |
11 |
opinionated on the current set of installed packages and thus another thing to |
12 |
backup etc of you want "just the os/system stuff, not the applications' |
13 |
databases". along the same vein, if you want /var to be on another storage |
14 |
device (NAS/SAN for large databases), you get the OS's pkg db with it. If for |
15 |
any reason a boot fails to get /var mounted, you're without the pkg db. |
16 |
|
17 |
Something along the lines of /usr/lib/pkg ? |
18 |
|
19 |
Best, |
20 |
/Anders |
21 |
|
22 |
On Fri, Jul 27, 2018 at 4:31 PM, Ulrich Mueller <ulm@g.o> wrote: |
23 |
|
24 |
>>>>> On Fri, 27 Jul 2018, Corentin “Nado” Pazdera wrote: |
25 |
|
26 |
> July 27, 2018 4:07 PM, "William Hubbs" <williamh@g.o> wrote: |
27 |
|
28 |
>> Section 5.5.2 describes the directory structure of /var/cache. |
29 |
>> These paths are all optional [1]. |
30 |
>> |
31 |
>> /var/cache/fonts |
32 |
>> /var/cache/man |
33 |
>> /var/cache/www |
34 |
>> /var/cache/<package> |
35 |
>> |
36 |
>> Gentoo isn't a package, so I don't think /var/cache/gentoo/* is |
37 |
>> appropriate. Here is my proposal: |
38 |
>> |
39 |
>> /usr/portage -> /var/db/repos/gentoo |
40 |
>> /usr/portage/distfiles -> /var/cache/portage/distfiles |
41 |
>> /usr/portage/packages -> /var/cache/portage/binpkgs |
42 |
>> |
43 |
>> I'm not 100% comfortable with /var/db, but I don't have any better |
44 |
>> suggestion either. |
45 |
>> |
46 |
>> [1] http://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#varcacheApplicationCacheData |
47 |
|
48 |
> From the same source |
49 |
> "No other requirements are made on the data format of the cache |
50 |
> directories." |
51 |
> And as you have quoted it, everything under /var/cache is optional. |
52 |
|
53 |
> So anything which doesn't conflict with another package seems fine |
54 |
> according to FHS. |
55 |
|
56 |
That's how I would read it, too. We could of course invent a package |
57 |
name (like "package-manager" for virtual/package-manager) but it seems |
58 |
cumbersome, and I don't see any benefit of it. |
59 |
|
60 |
There also is /var/cache/fonts, so the FHS itself lists an example of |
61 |
a directory that's not named after a specific package. |
62 |
|
63 |
Ulrich |