Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: Gentoo Dev <gentoo-dev@l.g.o>
Subject: [gentoo-dev] Dealing with XDG directories in ebuild environment
Date: Sat, 25 Jan 2014 16:13:46
Message-Id: CAJ0EP42143-BM5sQHbjP4ua-F-GMzQKk-23_BGMb=EjCDK59iw@mail.gmail.com
1 It seems having XDG variables like XDG_CONFIG_HOME set in the
2 environment when calling emerge has a tendency to cause sandbox
3 violations. For example, see the bugs blocking bug 499202.
4
5 https://bugs.gentoo.org/show_bug.cgi?id=499202
6
7 If you grep for XDG_CONFIG_HOME in the eclass directory, you can see
8 that several eclasses work around this by setting
9 XDG_CONFIG_HOME="${T}" or "${T}/.config".
10
11 gnome2-utils.eclass takes it a step further and creates empty
12 directories for several other XDG variables.
13
14 Is this something we can/should consolidate into some central place?
15 Or should I just copy/paste something into distutils-r1.eclass?

Replies