sys-devel/clang: Stop enforcing external lit for tests (in <9999)
authorMichał Górny <mgorny@gentoo.org>
Thu, 16 Nov 2017 18:40:28 +0000 (19:40 +0100)
committerMichał Górny <mgorny@gentoo.org>
Thu, 16 Nov 2017 21:52:08 +0000 (22:52 +0100)
commit36760bd16adda87265f594b93d0eccb91b7b7f79
tree2afce36416f993f423d28d9c5a3835114f8a719d
parent20c1ad8ab928a4593bc76c940ef40f0c0183e4e1
sys-devel/clang: Stop enforcing external lit for tests (in <9999)

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 and clang requires it
anyway for gtest, using the bundled copy has no added cost.

However, the live ebuild is currently broken as it requires llvm-lit
that is not created in the stand-alone build. This will be fixed
upstream.
sys-devel/clang/clang-4.0.1.ebuild
sys-devel/clang/clang-5.0.9999.ebuild
sys-devel/clang/clang-9999.ebuild