www-client/icecat: Update llvm dependencies names

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2024-12-11 22:33:28 +02:00
parent 36f351bcfb
commit f2d7d3c13b
No known key found for this signature in database
GPG Key ID: A12750536B5E7010

View File

@ -55,12 +55,12 @@ FF_ONLY_DEPEND="screencast? ( media-video/pipewire:= )
selinux? ( sec-policy/selinux-mozilla )"
BDEPEND="${PYTHON_DEPS}
$(llvm_gen_dep '
sys-devel/clang:${LLVM_SLOT}
sys-devel/llvm:${LLVM_SLOT}
llvm-core/clang:${LLVM_SLOT}
llvm-core/llvm:${LLVM_SLOT}
clang? (
sys-devel/lld:${LLVM_SLOT}
llvm-core/lld:${LLVM_SLOT}
)
pgo? ( sys-libs/compiler-rt-sanitizers:${LLVM_SLOT}[profile] )
pgo? ( llvm-runtimes/compiler-rt-sanitizers:${LLVM_SLOT}[profile] )
')
app-alternatives/awk
app-arch/unzip
@ -172,20 +172,20 @@ DEPEND="${COMMON_DEPEND}
)"
llvm_check_deps() {
if ! has_version -b "sys-devel/clang:${LLVM_SLOT}" ; then
einfo "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
if ! has_version -b "llvm-core/clang:${LLVM_SLOT}" ; then
einfo "llvm-core/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
return 1
fi
if use clang && ! tc-ld-is-mold ; 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 "llvm-core/lld:${LLVM_SLOT}" ; then
einfo "llvm-core/lld:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
return 1
fi
if use pgo ; then
if ! has_version -b "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
einfo "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!"
if ! has_version -b "=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile]" ; then
einfo "=llvm-runtimes/compiler-rt-sanitizers-${LLVM_SLOT}*[profile] is missing!"
einfo "Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
return 1
fi
@ -1068,7 +1068,7 @@ src_install() {
rm "${ED}${MOZILLA_FIVE_HOME}/${PN}-bin" || die
dosym ${PN} ${MOZILLA_FIVE_HOME}/${PN}-bin
# Don't install llvm-symbolizer from sys-devel/llvm package
# Don't install llvm-symbolizer from llvm-core/llvm package
if [[ -f "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" ]] ; then
rm -v "${ED}${MOZILLA_FIVE_HOME}/llvm-symbolizer" || die
fi