From: Michał Górny Date: Tue, 3 Apr 2018 19:08:43 +0000 (+0200) Subject: sys-libs/compiler-rt-sanitizers: Backport sandbox-2.13 use to 4/5 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=4434763ebfbc98e64a348d1432c90d6c224ba3b3;p=gentoo.git sys-libs/compiler-rt-sanitizers: Backport sandbox-2.13 use to 4/5 Update the 4.0.1 and 5.0.1 versions to rely on sandbox-2.13 unloading support instead of using unsandbox. --- diff --git a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.1.ebuild b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.1.ebuild index 2dc0d7cb40bd..78b0975433f4 100644 --- a/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.1.ebuild +++ b/sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-4.0.1.ebuild @@ -28,7 +28,7 @@ DEPEND=" >=sys-devel/llvm-4 clang? ( sys-devel/clang ) test? ( - app-portage/unsandbox + !=dev-python/lit-5[\${PYTHON_USEDEP}]") =sys-devel/clang-${PV%_*}*:${CLANG_SLOT} sys-libs/compiler-rt:${SLOT} ) @@ -112,7 +112,7 @@ src_configure() { if use test; then mycmakeargs+=( -DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm" - -DLIT_COMMAND="${EPREFIX}/usr/bin/unsandbox;${EPREFIX}/usr/bin/lit" + -DLIT_COMMAND="${EPREFIX}/usr/bin/lit" # they are created during src_test() -DCOMPILER_RT_TEST_COMPILER="${BUILD_DIR}/lib/llvm/${CLANG_SLOT}/bin/clang" @@ -160,6 +160,10 @@ src_configure() { src_test() { # respect TMPDIR! local -x LIT_PRESERVES_TMP=1 + # disable sandbox to have it stop clobbering LD_PRELOAD + local -x SANDBOX_ON=0 + # wipe LD_PRELOAD to make ASAN happy + local -x LD_PRELOAD= cmake-utils_src_make check-all }