--- /dev/null
+From 40457b1faa2c5b274447838ff1a041a8030c6c22 Mon Sep 17 00:00:00 2001
+From: Mike Gilbert <floppym@gentoo.org>
+Date: Sat, 6 Oct 2018 21:11:36 -0400
+Subject: [PATCH] Disable testing of static llvm linkage
+
+Gentoo doesn't provide static libs for llvm.
+---
+ test cases/frameworks/15 llvm/meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test cases/frameworks/15 llvm/meson.build b/test cases/frameworks/15 llvm/meson.build
+index e05fddd2..9b38a454 100644
+--- a/test cases/frameworks/15 llvm/meson.build
++++ b/test cases/frameworks/15 llvm/meson.build
+@@ -20,7 +20,7 @@ if not dep_tinfo.found()
+ dep_tinfo = cpp.find_library('tinfo', required: false)
+ endif
+
+-foreach static : [true, false]
++foreach static : [false]
+ llvm_dep = dependency(
+ 'llvm',
+ modules : ['bitwriter', 'asmprinter', 'executionengine', 'target',
+--
+2.19.0
+
LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
-RESTRICT="test"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND=""
PATCHES=(
+ "${FILESDIR}"/test-llvm.patch
"${FILESDIR}"/0.48.0-multilib.patch
"${FILESDIR}"/0.48.0-test-u.patch
)
python_test() {
- ${EPYTHON} run_tests.py || die
+ (
+ # test_meson_installed
+ unset PYTHONDONTWRITEBYTECODE
+
+ # test_cross_file_system_paths
+ unset XDG_DATA_HOME
+
+ ${EPYTHON} -u run_tests.py
+ ) || die "Testing failed with ${EPYTHON}"
}
python_install_all() {
LICENSE="Apache-2.0"
SLOT="0"
IUSE=""
-RESTRICT="test"
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
RDEPEND=""
+PATCHES=(
+ "${FILESDIR}"/test-llvm.patch
+)
+
python_test() {
- ${EPYTHON} run_tests.py || die
+ (
+ # test_meson_installed
+ unset PYTHONDONTWRITEBYTECODE
+
+ # test_cross_file_system_paths
+ unset XDG_DATA_HOME
+
+ ${EPYTHON} -u run_tests.py
+ ) || die "Testing failed with ${EPYTHON}"
}
python_install_all() {