Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 499202

Summary: Sandbox violations when XDG_CONFIG_HOME is set in the calling environment
Product: Gentoo Linux Reporter: Justin Lecher (RETIRED) <jlec>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: mgorny, pacho
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 481822, 488378, 499068, 499288    
Bug Blocks:    

Description Justin Lecher (RETIRED) gentoo-dev 2014-01-25 09:57:03 UTC
As seen in many bugs the presents of ~/.config/matplotlib for the user you are compiling the package with, causes sandbox violations as soon as matplotlib comes into play.

This can be worked around by setting XDG_CONFIG_HOME to e.g. $T

How about proactivaly setting this in the python*r1 eclasses instead of waiting for a user filing a bug when hitting this.

Additionally we could also set MPLCONFIGDIR to avoid checking in users directory.
Comment 1 Mike Gilbert gentoo-dev 2014-01-25 16:13:58 UTC
I sent a note to gentoo-dev asking for advice.
Comment 2 Mike Gilbert gentoo-dev 2014-01-26 00:27:36 UTC
Ideally this would be dealt with by Portage, but it looks like that's going to get caught up in the usual EAPI lag time.
Comment 3 Bignaux Ronan 2015-02-06 15:28:37 UTC
same problem with mpv
Comment 4 Pacho Ramos gentoo-dev 2016-02-08 16:03:09 UTC
xdg.eclass was added by Gilles some weeks ago for this kind of issue (and yes, I would also like to see this done at PM level for not needing to keep adding xdg.eclass to random ebuilds when bugs are reported but, until that is done...)
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-04-24 15:41:37 UTC
This looks tracker-ish, and it seems that all tracked bugs have been fixed.  The only remaining point is to have ENV_UNSET from EAPI 7 implemented and in use.