Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 622782 - llvm.eclass: Provide support for matching clang/llvm slot
Summary: llvm.eclass: Provide support for matching clang/llvm slot
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LLVM support project
URL: https://archives.gentoo.org/gentoo-de...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-26 21:20 UTC by Michał Górny
Modified: 2023-12-04 10:23 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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().