Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 622782

Summary: llvm.eclass: Provide support for matching clang/llvm slot
Product: Gentoo Linux Reporter: Michał Górny <mgorny>
Component: EclassesAssignee: LLVM support project <llvm>
Status: RESOLVED FIXED    
Severity: normal CC: tsmksubc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://archives.gentoo.org/gentoo-dev/message/5d79fc274126d2278f72737b12c84a63
See Also: https://bugs.gentoo.org/show_bug.cgi?id=615754
https://bugs.gentoo.org/show_bug.cgi?id=919150
Whiteboard:
Package list:
Runtime testing required: ---

Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-06-26 21:20:05 UTC
As figured out in #615754, with slotted LLVM now it is possible to install a newer LLVM slot without matching clang version. This makes the logic used in the eclass fail. The package in question locates llvm-config for the newest supported LLVM version rather than the one having clang.

What I'm thinking of is adding:

  LLVM_NEED_COMPONENTS='clang'

which would cause the eclass to consider only LLVM versions with matching clang version. For detection, we can check if $prefix/bin/clang exists.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-09-03 07:47:08 UTC
This is now solved by llvm_check_deps().