summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2016-07-04 22:59:02 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2016-07-04 22:59:02 -0700
commitd687e332ad41cd7c84bf0007f8c331e56470da18 (patch)
treebfca6368b8c76c4277b11d204430765700cb9545 /var
parent690937f9533765f6b5c2b815d9c4798f15456918 (diff)
downloadspack-d687e332ad41cd7c84bf0007f8c331e56470da18.tar.gz
spack-d687e332ad41cd7c84bf0007f8c331e56470da18.tar.bz2
spack-d687e332ad41cd7c84bf0007f8c331e56470da18.tar.xz
spack-d687e332ad41cd7c84bf0007f8c331e56470da18.zip
Fix compile bugs for gcc on Mac OS X with macports.
- add macports to things that are cleaned out of the environment. - linker incompatibilities cause issues with packages like OpenSSL. - also clean up NOQA stuff in OpenSSL
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/openssl/package.py36
1 files changed, 23 insertions, 13 deletions
diff --git a/var/spack/repos/builtin/packages/openssl/package.py b/var/spack/repos/builtin/packages/openssl/package.py
index a0747f229d..e7c105d5f5 100644
--- a/var/spack/repos/builtin/packages/openssl/package.py
+++ b/var/spack/repos/builtin/packages/openssl/package.py
@@ -63,7 +63,8 @@ class Openssl(Package):
# case return a fake url and exit
openssl_url = '@system (reserved version for system openssl)'
if not warnings_given_to_user.get(version, False):
- tty.msg('Using openssl@system : the version @system is reserved for system openssl') # NOQA: ignore=E501
+ tty.msg('Using openssl@system: '
+ 'the version @system is reserved for system openssl')
warnings_given_to_user[version] = True
else:
openssl_url = self.check_for_outdated_release(
@@ -87,37 +88,46 @@ class Openssl(Package):
openssl_url = latest.format(version=version)
urllib.urlopen(openssl_url)
except IOError:
- openssl_url = older.format(version_number=version_number, version_full=version) # NOQA:ignore=E501
+ openssl_url = older.format(
+ version_number=version_number, version_full=version)
# Checks if we already warned the user for this particular
# version of OpenSSL. If not we display a warning message
# and mark this version
if not warnings_given_to_user.get(version, False):
- tty.warn('This installation depends on an old version of OpenSSL, which may have known security issues. ') # NOQA: ignore=E501
- tty.warn('Consider updating to the latest version of this package.') # NOQA: ignore=E501
- tty.warn('More details at {homepage}'.format(homepage=Openssl.homepage)) # NOQA: ignore=E501
+ tty.warn(
+ 'This installation depends on an old version of OpenSSL, '
+ 'which may have known security issues. ')
+ tty.warn(
+ 'Consider updating to the latest version of this package.')
+ tty.warn('More details at {homepage}'.format(
+ homepage=Openssl.homepage))
warnings_given_to_user[version] = True
return openssl_url
+
def install(self, spec, prefix):
# OpenSSL uses a variable APPS in its Makefile. If it happens to be set
# in the environment, then this will override what is set in the
# Makefile, leading to build errors.
env.pop('APPS', None)
- if spec.satisfies("target=x86_64") or spec.satisfies("target=ppc64"):
+
+ if spec.satisfies('target=x86_64') or spec.satisfies('target=ppc64'):
# This needs to be done for all 64-bit architectures (except Linux,
# where it happens automatically?)
env['KERNEL_BITS'] = '64'
- config = Executable("./config")
- config("--prefix=%s" % prefix,
- "--openssldir=%s" % join_path(prefix, 'etc', 'openssl'),
- "zlib",
- "no-krb5",
- "shared")
+
+ options = ['zlib', 'no-krb5', 'shared']
+
+ config = Executable('./config')
+ config('--prefix=%s' % prefix,
+ '--openssldir=%s' % join_path(prefix, 'etc', 'openssl'),
+ *options)
+
# Remove non-standard compiler options if present. These options are
# present e.g. on Darwin. They are non-standard, i.e. most compilers
# (e.g. gcc) will not accept them.
filter_file(r'-arch x86_64', '', 'Makefile')
make()
- make("install")
+ make('install')