1 |
On Sat, Jan 25, 2014 at 4:19 PM, Mike Gilbert <floppym@g.o> wrote: |
2 |
|
3 |
> On Sat, Jan 25, 2014 at 7:10 PM, Mike Gilbert <floppym@g.o> wrote: |
4 |
> > On Sat, Jan 25, 2014 at 4:16 PM, Michał Górny <mgorny@g.o> wrote: |
5 |
> >> Dnia 2014-01-25, o godz. 11:13:38 |
6 |
> >> Mike Gilbert <floppym@g.o> napisał(a): |
7 |
> >> |
8 |
> >>> It seems having XDG variables like XDG_CONFIG_HOME set in the |
9 |
> >>> environment when calling emerge has a tendency to cause sandbox |
10 |
> >>> violations. For example, see the bugs blocking bug 499202. |
11 |
> >>> |
12 |
> >>> https://bugs.gentoo.org/show_bug.cgi?id=499202 |
13 |
> >>> |
14 |
> >>> If you grep for XDG_CONFIG_HOME in the eclass directory, you can see |
15 |
> >>> that several eclasses work around this by setting |
16 |
> >>> XDG_CONFIG_HOME="${T}" or "${T}/.config". |
17 |
> >>> |
18 |
> >>> gnome2-utils.eclass takes it a step further and creates empty |
19 |
> >>> directories for several other XDG variables. |
20 |
> >>> |
21 |
> >>> Is this something we can/should consolidate into some central place? |
22 |
> >>> Or should I just copy/paste something into distutils-r1.eclass? |
23 |
> >> |
24 |
> >> I'd say portage should kill that as part of sanitizing the environment. |
25 |
> >> There's no point in reproducing it in random eclasses. |
26 |
> >> |
27 |
> > |
28 |
> > I have filed an enhancement request for Portage. |
29 |
> > |
30 |
> > https://bugs.gentoo.org/show_bug.cgi?id=499288 |
31 |
> |
32 |
> It seems Arfrever beat me to it. However, it looks like it would need |
33 |
> to be an EAPI change, which means quite a long wait. |
34 |
> |
35 |
|
36 |
I don't buy that. The behavior appears to be currently undefined. Changing |
37 |
it to different undefined behavior is allowed. |
38 |
|
39 |
If EAPI-NEXT wants to define the behavior of XDG_* then that is fine too, |
40 |
we will just be ahead of the curve, rather than behind. |
41 |
|
42 |
-A |
43 |
|
44 |
|
45 |
> |
46 |
> https://bugs.gentoo.org/show_bug.cgi?id=444568 |
47 |
> |
48 |
> |