Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 715376 - sys-devel/sparse-0.6.1 USE=-llvm - pkg_setup(): No LLVM slot <= 9 found installed!
Summary: sys-devel/sparse-0.6.1 USE=-llvm - pkg_setup(): No LLVM slot <= 9 found insta...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason A. Donenfeld
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-03-30 06:54 UTC by Jeroen Roovers (RETIRED)
Modified: 2020-04-01 07:30 UTC (History)
1 user (show)

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


Attachments
dev-util_sparse-use_llvm.patch (dev-util_sparse-use_llvm.patch,962 bytes, patch)
2020-03-30 07:02 UTC, Jeroen Roovers (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2020-03-30 06:54:22 UTC
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'
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2020-03-30 07:02:38 UTC
Created attachment 627060 [details, diff]
dev-util_sparse-use_llvm.patch
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2020-03-30 17:13:16 UTC
(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.
Comment 3 Larry the Git Cow gentoo-dev 2020-04-01 07:30:59 UTC
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(+)