summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2022-04-23 11:21:51 -0400
committerMike Gilbert <floppym@gentoo.org>2022-04-23 11:21:51 -0400
commit2fcd08fb9215e6ece3775aba9793c50e6a14817c (patch)
treec4022bfd505cad84b20517abb57cd0f9a32e2102
parentapp-shells/bash-completion: addpredict ~ for tests (diff)
downloadgentoo-2fcd08fb9215e6ece3775aba9793c50e6a14817c.tar.gz
gentoo-2fcd08fb9215e6ece3775aba9793c50e6a14817c.tar.bz2
gentoo-2fcd08fb9215e6ece3775aba9793c50e6a14817c.zip
sys-apps/pkgcore: addpredict / for tests
Closes: https://bugs.gentoo.org/840266 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
-rw-r--r--sys-apps/pkgcore/pkgcore-0.12.10.ebuild5
-rw-r--r--sys-apps/pkgcore/pkgcore-9999.ebuild5
2 files changed, 10 insertions, 0 deletions
diff --git a/sys-apps/pkgcore/pkgcore-0.12.10.ebuild b/sys-apps/pkgcore/pkgcore-0.12.10.ebuild
index 9f81bcac50ec..10463ba06f4d 100644
--- a/sys-apps/pkgcore/pkgcore-0.12.10.ebuild
+++ b/sys-apps/pkgcore/pkgcore-0.12.10.ebuild
@@ -39,6 +39,11 @@ BDEPEND="
distutils_enable_tests setup.py
src_test() {
+ # With PYTHONDONTWRITEBYTECODE=, python will try rebuild all sorts of modules.
+ # https://bugs.gentoo.org/840266
+ local -x SANDBOX_PREDICT=${SANDBOX_PREDICT}
+ addpredict /
+
local -x PYTHONDONTWRITEBYTECODE=
distutils-r1_src_test
}
diff --git a/sys-apps/pkgcore/pkgcore-9999.ebuild b/sys-apps/pkgcore/pkgcore-9999.ebuild
index f6d5f97f6274..9473f2dfdaa0 100644
--- a/sys-apps/pkgcore/pkgcore-9999.ebuild
+++ b/sys-apps/pkgcore/pkgcore-9999.ebuild
@@ -39,6 +39,11 @@ BDEPEND="
distutils_enable_tests setup.py
src_test() {
+ # With PYTHONDONTWRITEBYTECODE=, python will try rebuild all sorts of modules.
+ # https://bugs.gentoo.org/840266
+ local -x SANDBOX_PREDICT=${SANDBOX_PREDICT}
+ addpredict /
+
local -x PYTHONDONTWRITEBYTECODE=
distutils-r1_src_test
}