commit: 965d9a2387a3a2fd5f525e3390067de41fee343f
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 1 18:03:00 2016 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Oct 1 19:05:57 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=965d9a23
sys-libs/compiler-rt-sanitizers: Use app-portage/unsandbox for tests
.../compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild
b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild
index 9b280fd..c83df17 100644
--- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild
+++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild
@@ -25,7 +25,9 @@ RDEPEND="${PYTHON_DEPS}
!<sys-devel/llvm-${PV}"
DEPEND="${RDEPEND}
~sys-devel/llvm-${PV}
- test? ( dev-python/lit[${PYTHON_USEDEP}]
+ test? (
+ app-portage/unsandbox
+ dev-python/lit[${PYTHON_USEDEP}]
~sys-devel/clang-${PV}
~sys-libs/compiler-rt-${PV} )
${PYTHON_DEPS}"
@@ -70,7 +72,7 @@ src_configure() {
if use test; then
mycmakeargs+=(
-DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm"
- -DLIT_COMMAND="${EPREFIX}/usr/bin/lit"
+
-DLIT_COMMAND="${EPREFIX}/usr/bin/unsandbox;${EPREFIX}/usr/bin/lit"
# they are created during src_test()
-DCOMPILER_RT_TEST_COMPILER="${BUILD_DIR}/bin/clang"
@@ -102,9 +104,6 @@ src_configure() {
}
src_test() {
- # sandbox breaks libasan tests... and is hard to kill
- # so abuse the fail in its algorithms
- local -x LD_PRELOAD=${LD_PRELOAD/libsandbox/nolibsandbox}
# respect TMPDIR!
local -x LIT_PRESERVES_TMP=1