From 20c1ad8ab928a4593bc76c940ef40f0c0183e4e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 16 Nov 2017 18:00:19 +0100 Subject: [PATCH] dev-ml/llvm-ocaml: Stop enforcing external lit for tests Modify the ebuild to no longer enforce externally installed dev-python/lit for tests, effectively causing the build system to use the bundled copy of lit (along with llvm-lit). While using the external package is more canonical, its disadvantages outweight the gain. Most notably, lit is not slotted in Gentoo and the behavior of lit frequently changes subtly which caused us to require a major version match between LLVM and lit. As a result, attempting to build multiple slots of LLVM with tests enabled cause package collisions. Building both LLVM and lit simultaneously causes a circular dependency. Since lit comes from the same package as LLVM itself and LLVM requires explicit python-any-r1 use anyway, using the bundled copy has no added cost. Furthermore, in the current git version the additional (fine-grained) test rules do not work correctly without llvm-lit, making it impossible to run LLVM binding tests separately. --- dev-ml/llvm-ocaml/llvm-ocaml-4.0.1.ebuild | 12 +----------- dev-ml/llvm-ocaml/llvm-ocaml-5.0.9999.ebuild | 12 +----------- dev-ml/llvm-ocaml/llvm-ocaml-9999.ebuild | 9 +-------- 3 files changed, 3 insertions(+), 30 deletions(-) diff --git a/dev-ml/llvm-ocaml/llvm-ocaml-4.0.1.ebuild b/dev-ml/llvm-ocaml/llvm-ocaml-4.0.1.ebuild index 6375c108d859..5eda59e817ee 100644 --- a/dev-ml/llvm-ocaml/llvm-ocaml-4.0.1.ebuild +++ b/dev-ml/llvm-ocaml/llvm-ocaml-4.0.1.ebuild @@ -35,8 +35,7 @@ RDEPEND=" DEPEND="${RDEPEND} dev-lang/perl dev-ml/findlib - test? ( dev-ml/ounit - $(python_gen_any_dep "~dev-python/lit-${PV}[\${PYTHON_USEDEP}]") ) + test? ( dev-ml/ounit ) !!