www-client/firefox: Add --host-root option to has_version LLVM checks
authorJames Le Cuirot <chewi@gentoo.org>
Sat, 16 Mar 2019 22:28:56 +0000 (22:28 +0000)
committerJames Le Cuirot <chewi@gentoo.org>
Sat, 16 Mar 2019 22:49:40 +0000 (22:49 +0000)
These LLVM-related dependencies are build-only so we need to check for
them in / and not ROOT.

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
www-client/firefox/firefox-60.5.2.ebuild
www-client/firefox/firefox-65.0.2.ebuild
www-client/firefox/firefox-66.0_rc3.ebuild

index 0b8b37bfe425cc2d403619c8100783deec86df50..b2efd3d0d4911cd15e240557d2f5f0f6c3a9804b 100644 (file)
@@ -81,13 +81,13 @@ if [[ -z $GMP_PLUGIN_LIST ]]; then
 fi
 
 llvm_check_deps() {
-       if ! has_version "sys-devel/clang:${LLVM_SLOT}" ; then
+       if ! has_version --host-root "sys-devel/clang:${LLVM_SLOT}" ; then
                ewarn "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..."
                return 1
        fi
 
        if use clang ; then
-               if ! has_version "=sys-devel/lld-${LLVM_SLOT}*" ; then
+               if ! has_version --host-root "=sys-devel/lld-${LLVM_SLOT}*" ; then
                        ewarn "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..."
                        return 1
                fi
index b90c657c3a1483130296d77729d3ad70f48d9811..e376a6a307fad41fd59117f3525c15642cfe287f 100644 (file)
@@ -170,19 +170,19 @@ if [[ -z $GMP_PLUGIN_LIST ]] ; then
 fi
 
 llvm_check_deps() {
-       if ! has_version "sys-devel/clang:${LLVM_SLOT}" ; then
+       if ! has_version --host-root "sys-devel/clang:${LLVM_SLOT}" ; then
                ewarn "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..."
                return 1
        fi
 
        if use clang ; then
-               if ! has_version "=sys-devel/lld-${LLVM_SLOT}*" ; then
+               if ! has_version --host-root "=sys-devel/lld-${LLVM_SLOT}*" ; then
                        ewarn "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..."
                        return 1
                fi
 
                if use pgo ; then
-                       if ! has_version "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then
+                       if ! has_version --host-root "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then
                                ewarn "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..."
                                return 1
                        fi
index 90a1f49e277ee03448f4a5b6fca18cdc0cbc9672..17912ebc4e217d775350c5956fa2074dc0cd50d7 100644 (file)
@@ -178,19 +178,19 @@ if [[ -z $GMP_PLUGIN_LIST ]] ; then
 fi
 
 llvm_check_deps() {
-       if ! has_version "sys-devel/clang:${LLVM_SLOT}" ; then
+       if ! has_version --host-root "sys-devel/clang:${LLVM_SLOT}" ; then
                ewarn "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..."
                return 1
        fi
 
        if use clang ; then
-               if ! has_version "=sys-devel/lld-${LLVM_SLOT}*" ; then
+               if ! has_version --host-root "=sys-devel/lld-${LLVM_SLOT}*" ; then
                        ewarn "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..."
                        return 1
                fi
 
                if use pgo ; then
-                       if ! has_version "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then
+                       if ! has_version --host-root "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then
                                ewarn "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..."
                                return 1
                        fi