From acb9281dbf41c30535d18a9adb432e218b1f22b3 Mon Sep 17 00:00:00 2001 From: George Hartzell Date: Fri, 3 Feb 2017 14:35:16 -0800 Subject: Different versions of cmake need diff vers of openssl (#2993) * Different versions of cmake need diff vers of openssl. See Issue https://github.com/LLNL/spack/issues/2990 for background. Versions of cmake through 3.6.9 seem to need OpenSSL up to 1.0.99. Later versions can use the current release (thanks to @citibeth for [digging up details](https://cmake.org/pipermail/cmake/2016-November/064631.html)). @davydden suggested this change. Without it I *am not* able to build `cmake@3.6.1` on CentOS 7 and I *am* able to build `cmake@3.7.2`. Tested with `cmake@3.7.2` and `cmake@3.6.1` on CentOS 7. With this change I am able to build both `cmake@3.6.1` and `cmake@3.7.2` on CentOS 7. --- var/spack/repos/builtin/packages/cmake/package.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/cmake/package.py b/var/spack/repos/builtin/packages/cmake/package.py index 276db137ad..4ff9615016 100644 --- a/var/spack/repos/builtin/packages/cmake/package.py +++ b/var/spack/repos/builtin/packages/cmake/package.py @@ -63,7 +63,8 @@ class Cmake(Package): depends_on('qt', when='+qt') depends_on('python@2.7.11:', when='+doc', type='build') depends_on('py-sphinx', when='+doc', type='build') - depends_on('openssl', when='+openssl') + depends_on("openssl", when='+openssl') + depends_on("openssl@:1.0.99", when='@:3.6.9+openssl') depends_on('ncurses', when='+ncurses') # Cannot build with Intel, should be fixed in 3.6.2 -- cgit v1.2.3-60-g2f50