Obviously in the USE=-llvm case the ebuild should not run llvm_pkg_setup(). >>> Emerging (6 of 7) sys-devel/sparse-0.6.1::gentoo * sparse-0.6.1.tar.xz BLAKE2B SHA512 size ;-) ... [ ok ] * ERROR: sys-devel/sparse-0.6.1::gentoo failed (setup phase): * No LLVM slot <= 9 found installed! * * Call stack: * ebuild.sh, line 125: Called pkg_setup * ebuild.sh, line 355: Called llvm_pkg_setup * llvm.eclass, line 204: Called get_llvm_prefix '9' * llvm.eclass, line 183: Called die * The specific snippet of code: * die "No LLVM slot${1:+ <= ${1}} found installed!" * * If you need support, post the output of `emerge --info '=sys-devel/sparse-0.6.1::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-devel/sparse-0.6.1::gentoo'`. * The complete build log is located at '/aches/gentoo/emergelogs/karsten/sys-devel:sparse-0.6.1:20200330-064904.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/sys-devel/sparse-0.6.1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-devel/sparse-0.6.1/temp/die.env'. * Working directory: '/var/tmp/portage/sys-devel/sparse-0.6.1/homedir' * S: '/var/tmp/portage/sys-devel/sparse-0.6.1/work/sparse-0.6.1'
Created attachment 627060 [details, diff] dev-util_sparse-use_llvm.patch
(In reply to Jeroen Roovers from comment #1) > Created attachment 627060 [details, diff] [details, diff] > dev-util_sparse-use_llvm.patch Looks good! Feel free to push.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c2c65397e5216438e57834a908c09c629bbacfa0 commit c2c65397e5216438e57834a908c09c629bbacfa0 Author: Sergei Trofimovich <slyfox@gentoo.org> AuthorDate: 2020-04-01 07:30:34 +0000 Commit: Sergei Trofimovich <slyfox@gentoo.org> CommitDate: 2020-04-01 07:30:34 +0000 sys-devel/sparse: skip llvm detection for USE=-llvm, bug #715376 Patch by Jeroen Roovers. Reported-and-Fixed-by: Jeroen Roovers Closes: https://bugs.gentoo.org/715376 Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> sys-devel/sparse/sparse-0.6.1.ebuild | 4 ++++ sys-devel/sparse/sparse-9999.ebuild | 4 ++++ 2 files changed, 8 insertions(+)