diff options
author | ketsubouchi <kenta.tsubouchi@hac-inc.co.jp> | 2020-12-07 23:45:56 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-07 15:45:56 +0100 |
commit | b4ed4fb226f3a43ba2b021ffea2308d864f19866 (patch) | |
tree | ae178ae7623961096e3a842757aadb28c7a5b8a3 | |
parent | af9bf816fe17a92f56ca0354779ac2fa7892f377 (diff) | |
download | spack-b4ed4fb226f3a43ba2b021ffea2308d864f19866.tar.gz spack-b4ed4fb226f3a43ba2b021ffea2308d864f19866.tar.bz2 spack-b4ed4fb226f3a43ba2b021ffea2308d864f19866.tar.xz spack-b4ed4fb226f3a43ba2b021ffea2308d864f19866.zip |
povray: model mkl dependency correctly (#20265)
Added the correct depends_on directive if the mkl variant is active.
Added conflicts for archs that don't support mkl
-rw-r--r-- | var/spack/repos/builtin/packages/povray/package.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/povray/package.py b/var/spack/repos/builtin/packages/povray/package.py index 2c80552a74..ec0aee5177 100644 --- a/var/spack/repos/builtin/packages/povray/package.py +++ b/var/spack/repos/builtin/packages/povray/package.py @@ -63,8 +63,17 @@ class Povray(AutotoolsPackage): depends_on('libpng@1.2.5:', when='+libpng') depends_on('jpeg', when='+jpeg') depends_on('libtiff@3.6.1:', when='+libtiff') + depends_on('mkl', when='+mkl') depends_on('openexr@1.2:', when='+openexr') + # MKL conflicts + conflicts('+mkl', when='target=aarch64:', + msg='Intel MKL only runs on x86') + conflicts('+mkl', when='target=ppc64:', + msg='Intel MKL only runs on x86') + conflicts('+mkl', when='target=ppc64le:', + msg='Intel MKL only runs on x86') + # This patch enables prebuild.sh to be invoked from any directory # (it immediately cds to the directory containing prebuild.sh) # This is better than a broken check that it was called from the |