From: | Mike Gilbert <floppym@g.o> |
---|---|
To: | gentoo-python@l.g.o |
Cc: | python@g.o |
Subject: | [gentoo-python] [PATCH] distutils-r1: Prevent sandbox violations due to stale pyc files |
Date: | Sun, 12 Jul 2015 19:32:06 |
Message-Id: | 1436729520-27910-1-git-send-email-floppym@gentoo.org |
1 | Just add the entire python directory to SANDBOX_PREDICT. |
2 | |
3 | Should resolve bugs like 508234 and 554252. |
4 | |
5 | --- distutils-r1.eclass |
6 | +++ distutils-r1.eclass |
7 | @@ -505,7 +505,7 @@ |
8 | |
9 | # python likes to compile any module it sees, which triggers sandbox |
10 | # failures if some packages haven't compiled their modules yet. |
11 | - addpredict "$(python_get_sitedir)" |
12 | + addpredict "${EPREFIX}/usr/$(get_libdir)/${EPYTHON}" |
13 | addpredict /usr/lib/portage/pym |
14 | addpredict /usr/local # bug 498232 |