1 |
On 30/04/12 11:30, Michał Górny wrote: |
2 |
> On Mon, 30 Apr 2012 10:24:58 +0200 |
3 |
> Krzysztof Pawlik <nelchael@g.o> wrote: |
4 |
> |
5 |
>> On 30/04/12 08:57, Michał Górny wrote: |
6 |
>>> Hello, |
7 |
>>> |
8 |
>>> Since lately Gentoo devs force you to replace collision-protect with |
9 |
>>> protect-owned [1] and sometimes packages just spit out files |
10 |
>>> randomly on the filesystem due to random errors, I thought it may |
11 |
>>> be a good idea to provide a new feature limiting the locations |
12 |
>>> where packages can install. |
13 |
>> |
14 |
>> You're not forced to do anything. |
15 |
> |
16 |
> I am not? How come random ebuilds die in pkg_pretend() for me then? |
17 |
> |
18 |
>> |
19 |
>>> In order to do that, we should first compose a complete |
20 |
>>> include/exclude list where packages can install. I'd suggest the |
21 |
>>> following: |
22 |
>>> |
23 |
>>> + /bin |
24 |
>>> + /boot (but maybe just subdirectories so packages can't overwrite |
25 |
>>> kernels?) |
26 |
>>> [potentially + /dev? but that's useful only when tmpfs isn't |
27 |
>>> mounted] |
28 |
>>> + /etc |
29 |
>>> + /lib, /lib32, /lib64 |
30 |
>>> + /opt |
31 |
>>> + /sbin |
32 |
>>> [potentially + /service for ugly daemontools] |
33 |
>>> + /usr |
34 |
>>> + /var |
35 |
>>> - /usr/local |
36 |
>>> - /usr/portage |
37 |
>>> |
38 |
>>> What are your thoughts on this? |
39 |
>>> |
40 |
>>> [1]:https://bugs.gentoo.org/show_bug.cgi?id=410691#c4 |
41 |
>> |
42 |
>> I think it's feature creep - you can just set INSTALL_MASK="/usr/local |
43 |
>> /usr/portage", no need for new features. |
44 |
>> |
45 |
>> PS. I (and few other folks) don't have /usr/portage. |
46 |
> |
47 |
> INSTALL_MASK won't make committing such an ebuild a fatal error. It |
48 |
> will just hide problems. |
49 |
|
50 |
How would your proposed feature prevent ebuilds that install something to |
51 |
/usr/local from being committed? |
52 |
|
53 |
Other valid case are private repos - I have a few ebuilds that install stuff to |
54 |
/<some_random_dir> (proprietary stuff). |
55 |
|
56 |
-- |
57 |
Krzysztof Pawlik <nelchael at gentoo.org> key id: 0xF6A80E46 |
58 |
desktop-misc, java, vim, kernel, python, apache... |