Skip to content

Commit

Permalink
mail-client/thunderbird: fix ebuilds to reflect latest llvm.eclass ch…
Browse files Browse the repository at this point in the history
…anges

 - also match lld to a slot.

Bug: https://bugs.gentoo.org/879177
Signed-off-by: Joonas Niilola <[email protected]>
  • Loading branch information
juippis committed Nov 7, 2022
1 parent 8f0f9b2 commit b6bfcfc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions mail-client/thunderbird/thunderbird-102.4.0.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ llvm_check_deps() {
fi

if use clang ; then
if ! has_version -b "=sys-devel/lld-${LLVM_SLOT}*" ; then
einfo "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then
einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
return 1
fi

Expand Down Expand Up @@ -567,10 +567,12 @@ src_configure() {
einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"

local have_switched_compiler=
if use clang && ! tc-is-clang ; then
if use clang; then
# Force clang
einfo "Enforcing the use of clang due to USE=clang ..."
have_switched_compiler=yes
if tc-is-gcc; then
have_switched_compiler=yes
fi
AR=llvm-ar
AS=llvm-as
CC=${CHOST}-clang
Expand Down
10 changes: 6 additions & 4 deletions mail-client/thunderbird/thunderbird-102.4.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ llvm_check_deps() {
fi

if use clang ; then
if ! has_version -b "=sys-devel/lld-${LLVM_SLOT}*" ; then
einfo "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
if ! has_version -b "sys-devel/lld:${LLVM_SLOT}" ; then
einfo "sys-devel/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
return 1
fi

Expand Down Expand Up @@ -567,10 +567,12 @@ src_configure() {
einfo "Current RUSTFLAGS:\t\t${RUSTFLAGS:-no value set}"

local have_switched_compiler=
if use clang && ! tc-is-clang ; then
if use clang; then
# Force clang
einfo "Enforcing the use of clang due to USE=clang ..."
have_switched_compiler=yes
if tc-is-gcc; then
have_switched_compiler=yes
fi
AR=llvm-ar
AS=llvm-as
CC=${CHOST}-clang
Expand Down

0 comments on commit b6bfcfc

Please sign in to comment.