El sáb, 25-01-2014 a las 11:13 -0500, Mike Gilbert escribió: > It seems having XDG variables like XDG_CONFIG_HOME set in the > environment when calling emerge has a tendency to cause sandbox > violations. For example, see the bugs blocking bug 499202. > > https://bugs.gentoo.org/show_bug.cgi?id=499202 > > If you grep for XDG_CONFIG_HOME in the eclass directory, you can see > that several eclasses work around this by setting > XDG_CONFIG_HOME="${T}" or "${T}/.config". > > gnome2-utils.eclass takes it a step further and creates empty > directories for several other XDG variables. > > Is this something we can/should consolidate into some central place? > Or should I just copy/paste something into distutils-r1.eclass? >
Maybe the function cleaning stuff could be added to eutils.eclass and we would call it from other eclasses/ebuilds. I also wonder if this cleanup could be done always in a newer eapi since we usually need to add that fix whenever we suffer the sandbox violation :S (not before)