sys-devel/llvm: Stop enforcing external lit for tests
authorMichał Górny <mgorny@gentoo.org>
Thu, 16 Nov 2017 16:53:29 +0000 (17:53 +0100)
committerMichał Górny <mgorny@gentoo.org>
Thu, 16 Nov 2017 21:52:07 +0000 (22:52 +0100)
commitbffe6a1dd3106ea8c2c1a1a0527f3f650c303341
tree922d54792c97c8617c5581bec5f621bdc2ba0a8c
parent8de9da8094bd281c3b01818f40e7793d7789613c
sys-devel/llvm: 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. It reduces the risk of breakage resulting from skipping llvm-lit
wrapper and solves the forementioned problems caused by depending
on dev-python/lit.

The external package is still useful for projects that do not require
LLVM sources.
sys-devel/llvm/llvm-4.0.1.ebuild
sys-devel/llvm/llvm-5.0.9999.ebuild
sys-devel/llvm/llvm-9999.ebuild