From: Michał Górny Date: Fri, 16 Mar 2018 09:08:44 +0000 (+0100) Subject: sys-libs/llvm-libunwind: Fix running multilib tests X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=367e23c07ea0a6102eb674f02b649885275dd8e8;p=gentoo.git sys-libs/llvm-libunwind: Fix running multilib tests Fix tests to use multilib-wrapped compiler. Otherwise, the tests were actually done using native ABI library which missed the point. Also, add missing MULTILIB_USEDEP. --- diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-6.0.0.ebuild b/sys-libs/llvm-libunwind/llvm-libunwind-6.0.0.ebuild index fcc113a63c9c..fe3c0e9d6420 100644 --- a/sys-libs/llvm-libunwind/llvm-libunwind-6.0.0.ebuild +++ b/sys-libs/llvm-libunwind/llvm-libunwind-6.0.0.ebuild @@ -29,9 +29,9 @@ RDEPEND="!sys-libs/libunwind" # (but libcxx does not need to be built against it) DEPEND=" >=sys-devel/llvm-6 - test? ( + test? ( >=sys-devel/clang-3.9.0 sys-libs/libcxx[libunwind,${MULTILIB_USEDEP}] - sys-libs/libcxxabi + sys-libs/libcxxabi[${MULTILIB_USEDEP}] $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') )" S=${WORKDIR}/${MY_P} @@ -84,6 +84,11 @@ multilib_src_configure() { } multilib_src_test() { + local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null) + + [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests" + sed -i -e "/cxx_under_test/s^\".*\"^\"${clang_path}\"^" test/lit.site.cfg || die + cmake-utils_src_make check-unwind } diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild b/sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild index 6eb95d733fc2..83db4453f60b 100644 --- a/sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild +++ b/sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild @@ -28,9 +28,9 @@ RDEPEND="!sys-libs/libunwind" # (but libcxx does not need to be built against it) DEPEND=" >=sys-devel/llvm-6 - test? ( + test? ( >=sys-devel/clang-3.9.0 sys-libs/libcxx[libunwind,${MULTILIB_USEDEP}] - sys-libs/libcxxabi + sys-libs/libcxxabi[${MULTILIB_USEDEP}] $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') )" # least intrusive of all @@ -84,6 +84,11 @@ multilib_src_configure() { } multilib_src_test() { + local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null) + + [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests" + sed -i -e "/cxx_under_test/s^\".*\"^\"${clang_path}\"^" test/lit.site.cfg || die + cmake-utils_src_make check-unwind } diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild b/sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild index 387b8c31086c..238afe790e63 100644 --- a/sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild +++ b/sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild @@ -27,9 +27,9 @@ RDEPEND="!sys-libs/libunwind" # (but libcxx does not need to be built against it) DEPEND=" >=sys-devel/llvm-6 - test? ( + test? ( >=sys-devel/clang-3.9.0 sys-libs/libcxx[libunwind,${MULTILIB_USEDEP}] - sys-libs/libcxxabi + sys-libs/libcxxabi[${MULTILIB_USEDEP}] $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') )" # least intrusive of all @@ -83,6 +83,11 @@ multilib_src_configure() { } multilib_src_test() { + local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null) + + [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests" + sed -i -e "/cxx_under_test/s^\".*\"^\"${clang_path}\"^" test/lit.site.cfg || die + cmake-utils_src_make check-unwind }