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