From 8a81af4d27ea251c534cc1ffa6b4812f5950f706 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Thu, 19 Mar 2020 15:17:13 -0700 Subject: [PATCH] media-libs/mesa: Only call llvm_pkg_setup with USE="gallium llvm" Closes: https://bugs.gentoo.org/712896 Signed-off-by: Matt Turner --- media-libs/mesa/mesa-19.3.5.ebuild | 2 +- media-libs/mesa/mesa-20.0.1-r1.ebuild | 2 +- media-libs/mesa/mesa-20.0.2.ebuild | 2 +- media-libs/mesa/mesa-9999.ebuild | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/media-libs/mesa/mesa-19.3.5.ebuild b/media-libs/mesa/mesa-19.3.5.ebuild index ea716c993c10..e0d7de8eec77 100644 --- a/media-libs/mesa/mesa-19.3.5.ebuild +++ b/media-libs/mesa/mesa-19.3.5.ebuild @@ -325,7 +325,7 @@ pkg_setup() { ewarn "detected! This can cause problems. For details, see bug 459306." fi - if use llvm; then + if use gallium && use llvm; then llvm_pkg_setup fi python-any-r1_pkg_setup diff --git a/media-libs/mesa/mesa-20.0.1-r1.ebuild b/media-libs/mesa/mesa-20.0.1-r1.ebuild index 8997f8d06a37..e893b342e588 100644 --- a/media-libs/mesa/mesa-20.0.1-r1.ebuild +++ b/media-libs/mesa/mesa-20.0.1-r1.ebuild @@ -326,7 +326,7 @@ pkg_setup() { ewarn "detected! This can cause problems. For details, see bug 459306." fi - if use llvm; then + if use gallium && use llvm; then llvm_pkg_setup fi python-any-r1_pkg_setup diff --git a/media-libs/mesa/mesa-20.0.2.ebuild b/media-libs/mesa/mesa-20.0.2.ebuild index 8997f8d06a37..e893b342e588 100644 --- a/media-libs/mesa/mesa-20.0.2.ebuild +++ b/media-libs/mesa/mesa-20.0.2.ebuild @@ -326,7 +326,7 @@ pkg_setup() { ewarn "detected! This can cause problems. For details, see bug 459306." fi - if use llvm; then + if use gallium && use llvm; then llvm_pkg_setup fi python-any-r1_pkg_setup diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild index d62167360742..24b3afdd1fcb 100644 --- a/media-libs/mesa/mesa-9999.ebuild +++ b/media-libs/mesa/mesa-9999.ebuild @@ -327,7 +327,7 @@ pkg_setup() { ewarn "detected! This can cause problems. For details, see bug 459306." fi - if use llvm; then + if use gallium && use llvm; then llvm_pkg_setup fi python-any-r1_pkg_setup -- 2.26.2