summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorPaul Gessinger <hello@paulgessinger.com>2024-11-02 11:13:37 +0100
committerGitHub <noreply@github.com>2024-11-02 11:13:37 +0100
commit55918c31d2c1d601be5ad671471a62885c065f09 (patch)
tree9c094281104955282004929f879a3bf75bf3b047 /var
parentb8461f3d2dc72007c63fb24af5694cee8b5791bc (diff)
downloadspack-55918c31d2c1d601be5ad671471a62885c065f09.tar.gz
spack-55918c31d2c1d601be5ad671471a62885c065f09.tar.bz2
spack-55918c31d2c1d601be5ad671471a62885c065f09.tar.xz
spack-55918c31d2c1d601be5ad671471a62885c065f09.zip
root: require +opengl when +aqua is on (#47349)
According to https://github.com/root-project/root/issues/7160, if `-Dcocoa=ON` build must also be configured with `-Dopengl=ON`, since otherwise the build encounters missing includes. This is/was a silent failure in ROOT CMake, but I believe has been made an explicit failure some time this year.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/root/package.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/root/package.py b/var/spack/repos/builtin/packages/root/package.py
index 3199056910..106bde9775 100644
--- a/var/spack/repos/builtin/packages/root/package.py
+++ b/var/spack/repos/builtin/packages/root/package.py
@@ -429,6 +429,8 @@ class Root(CMakePackage):
# Incompatible variants
if sys.platform == "darwin":
conflicts("+opengl", when="~x ~aqua", msg="root+opengl requires X or Aqua")
+ # https://github.com/root-project/root/issues/7160
+ conflicts("+aqua", when="~opengl", msg="+aqua requires OpenGL to be enabled")
else:
conflicts("+opengl", when="~x", msg="root+opengl requires X")
conflicts("+math", when="~gsl", msg="root+math requires GSL")