From 8887e178a3f5bbd7a8959a4bbd6a0282cb698659 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Wed, 15 Feb 2017 22:06:54 +0100 Subject: [PATCH] media-libs/mesa: Fix uncond call to llvm_pkg_setup, #608536 --- media-libs/mesa/mesa-17.0.0.ebuild | 4 +++- media-libs/mesa/mesa-9999.ebuild | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/media-libs/mesa/mesa-17.0.0.ebuild b/media-libs/mesa/mesa-17.0.0.ebuild index b35f0bc5ef27..d6d58afc0dd6 100644 --- a/media-libs/mesa/mesa-17.0.0.ebuild +++ b/media-libs/mesa/mesa-17.0.0.ebuild @@ -201,7 +201,9 @@ pkg_setup() { ewarn "detected! This can cause problems. For details, see bug 459306." fi - LLVM_MAX_SLOT=4 llvm_pkg_setup + if use llvm || use opencl; then + LLVM_MAX_SLOT=4 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 fe87f66a7bdf..2f05b05d304b 100644 --- a/media-libs/mesa/mesa-9999.ebuild +++ b/media-libs/mesa/mesa-9999.ebuild @@ -188,7 +188,9 @@ pkg_setup() { ewarn "detected! This can cause problems. For details, see bug 459306." fi - llvm_pkg_setup + if use llvm || use opencl; then + llvm_pkg_setup + fi python-any-r1_pkg_setup } -- 2.26.2