1 |
On 08/05/2018 09:59 PM, Ulrich Mueller wrote: |
2 |
>>>>>> On Sun, 5 Aug 2018, Zac Medico wrote: |
3 |
> |
4 |
>> --- a/cnf/make.conf.example |
5 |
>> +++ b/cnf/make.conf.example |
6 |
>> [...] |
7 |
> |
8 |
>> @@ -119,16 +119,16 @@ |
9 |
>> # fetched on demand for a given build. If you would like to |
10 |
>> # selectively prune obsolete files from this directory, see |
11 |
>> # eclean from the gentoolkit package. Note that locations under |
12 |
>> -# /usr/portage are not necessarily safe for data storage. See the |
13 |
>> +# /var/db/repos/gentoo are not necessarily safe for data storage. See the |
14 |
>> # PORTDIR documentation for more information. |
15 |
>> -#DISTDIR=/usr/portage/distfiles |
16 |
>> +#DISTDIR=/var/db/repos/gentoo/distfiles |
17 |
> |
18 |
> Shouldn't this be /var/cache/distfiles ... |
19 |
> |
20 |
>> # |
21 |
>> # PKGDIR is the location of binary packages that you can have created |
22 |
>> # with '--buildpkg' or '-b' while emerging a package. This can get |
23 |
>> # up to several hundred megs, or even a few gigs. Note that |
24 |
>> -# locations under /usr/portage are not necessarily safe for data |
25 |
>> +# locations under /var/db/repos/gentoo are not necessarily safe for data |
26 |
>> # storage. See the PORTDIR documentation for more information. |
27 |
>> -#PKGDIR=/usr/portage/packages |
28 |
>> +#PKGDIR=/var/db/repos/gentoo/packages |
29 |
> |
30 |
> ... and /var/cache/binpkgs? |
31 |
|
32 |
Thanks, I've fixed the /var/cache/{distfiles,binpkgs} locations in v2. |
33 |
|
34 |
>> --- a/lib/portage/cache/flat_hash.py |
35 |
>> +++ b/lib/portage/cache/flat_hash.py |
36 |
>> @@ -144,7 +144,7 @@ class database(fs_template.FsBased): |
37 |
>> # Only recurse 1 deep, in order to avoid iteration over |
38 |
>> # entries from another nested cache instance. This can |
39 |
>> # happen if the user nests an overlay inside |
40 |
>> - # /usr/portage/local as in bug #302764. |
41 |
>> + # /var/db/repos/gentoo/local as in bug #302764. |
42 |
> |
43 |
> Shouldn't a local overlay be in /var/db/repos/local, but never inside |
44 |
> of the gentoo repo? |
45 |
|
46 |
Yes, but for a long time /usr/local/portage was somewhat standard, in |
47 |
fact it's still mentioned here: |
48 |
|
49 |
https://wiki.gentoo.org/wiki/Custom_repository |
50 |
|
51 |
Nowadays, repository verification will prevent that from working... |
52 |
|
53 |
>> --- a/man/make.conf.5 |
54 |
>> +++ b/man/make.conf.5 |
55 |
>> @@ -219,10 +219,10 @@ Use the \fBPORTAGE_RO_DISTDIRS\fR variable to specify one or |
56 |
>> more read-only directories containing distfiles. |
57 |
>> |
58 |
>> Note |
59 |
>> -that locations under /usr/portage are not necessarily safe for data storage. |
60 |
>> +that locations under /var/db/repos/gentoo are not necessarily safe for data storage. |
61 |
> |
62 |
> IMHO this statement should be made much stronger. |
63 |
|
64 |
Yes, we could also say something about repository verification here. The |
65 |
old defaults set a really bad example, so we needed statements like this |
66 |
to steer people in the right direction. |
67 |
-- |
68 |
Thanks, |
69 |
Zac |