Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: floppym@g.o
Subject: Re: [gentoo-dev] Dealing with XDG directories in ebuild environment
Date: Sat, 25 Jan 2014 21:16:53
Message-Id: 20140125221628.26f3aa96@pomiot.lan
In Reply to: [gentoo-dev] Dealing with XDG directories in ebuild environment by Mike Gilbert
1 Dnia 2014-01-25, o godz. 11:13:38
2 Mike Gilbert <floppym@g.o> napisał(a):
3
4 > It seems having XDG variables like XDG_CONFIG_HOME set in the
5 > environment when calling emerge has a tendency to cause sandbox
6 > violations. For example, see the bugs blocking bug 499202.
7 >
8 > https://bugs.gentoo.org/show_bug.cgi?id=499202
9 >
10 > If you grep for XDG_CONFIG_HOME in the eclass directory, you can see
11 > that several eclasses work around this by setting
12 > XDG_CONFIG_HOME="${T}" or "${T}/.config".
13 >
14 > gnome2-utils.eclass takes it a step further and creates empty
15 > directories for several other XDG variables.
16 >
17 > Is this something we can/should consolidate into some central place?
18 > Or should I just copy/paste something into distutils-r1.eclass?
19
20 I'd say portage should kill that as part of sanitizing the environment.
21 There's no point in reproducing it in random eclasses.
22
23 --
24 Best regards,
25 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies