From 259dbf56826547e21d7d3a0b6764f030db7e0782 Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sat, 6 Oct 2018 22:26:40 -0400 Subject: dev-util/meson: enable test phase Closes: https://bugs.gentoo.org/615028 Package-Manager: Portage-2.3.50_p14, Repoman-2.3.11_p21 Signed-off-by: Mike Gilbert --- dev-util/meson/files/test-llvm.patch | 26 ++++++++++++++++++++++++++ dev-util/meson/meson-0.48.0-r2.ebuild | 12 ++++++++++-- dev-util/meson/meson-9999.ebuild | 15 +++++++++++++-- 3 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 dev-util/meson/files/test-llvm.patch (limited to 'dev-util/meson') diff --git a/dev-util/meson/files/test-llvm.patch b/dev-util/meson/files/test-llvm.patch new file mode 100644 index 000000000000..af7b9834bf33 --- /dev/null +++ b/dev-util/meson/files/test-llvm.patch @@ -0,0 +1,26 @@ +From 40457b1faa2c5b274447838ff1a041a8030c6c22 Mon Sep 17 00:00:00 2001 +From: Mike Gilbert +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 + diff --git a/dev-util/meson/meson-0.48.0-r2.ebuild b/dev-util/meson/meson-0.48.0-r2.ebuild index aa2d0f068eb1..653033f818b0 100644 --- a/dev-util/meson/meson-0.48.0-r2.ebuild +++ b/dev-util/meson/meson-0.48.0-r2.ebuild @@ -20,18 +20,26 @@ HOMEPAGE="http://mesonbuild.com/" 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() { diff --git a/dev-util/meson/meson-9999.ebuild b/dev-util/meson/meson-9999.ebuild index aace7f3caa4f..0d5b9b4711c3 100644 --- a/dev-util/meson/meson-9999.ebuild +++ b/dev-util/meson/meson-9999.ebuild @@ -20,13 +20,24 @@ HOMEPAGE="http://mesonbuild.com/" 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() { -- cgit v1.2.3-65-gdbad