From 90648bb477dd76284acc059eb90b6abc7b7d45e6 Mon Sep 17 00:00:00 2001 From: Matthias Wolf Date: Wed, 29 Jul 2020 19:53:01 +0200 Subject: qt: fix build with ~ssl. (#17767) OpenSSL was pulled from the spec too early, leading to failures when attempting to build with ~ssl. --- var/spack/repos/builtin/packages/qt/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/var/spack/repos/builtin/packages/qt/package.py b/var/spack/repos/builtin/packages/qt/package.py index 6081911e4a..17495dda39 100644 --- a/var/spack/repos/builtin/packages/qt/package.py +++ b/var/spack/repos/builtin/packages/qt/package.py @@ -363,7 +363,6 @@ class Qt(Package): @property def common_config_args(self): # incomplete list is here http://doc.qt.io/qt-5/configure-options.html - openssl = self.spec['openssl'] config_args = [ '-prefix', self.prefix, '-v', @@ -389,6 +388,7 @@ class Qt(Package): config_args.append('-no-freetype') if '+ssl' in self.spec: + openssl = self.spec['openssl'] config_args.extend([ '-openssl-linked', openssl.libs.search_flags, -- cgit v1.2.3-70-g09d2