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