summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Galarowicz <jeg@krellinst.org>2016-04-04 10:33:03 -0700
committerJim Galarowicz <jeg@krellinst.org>2016-04-04 10:33:03 -0700
commite0b9f79b9bc20c4e5178ee6dba6b327057cb3c4e (patch)
treeeb08217793bcf7c796d9415fd4585beab388e7a0
parenta8b856432a9a13737fdb2e77332e16602ef6d611 (diff)
downloadspack-e0b9f79b9bc20c4e5178ee6dba6b327057cb3c4e.tar.gz
spack-e0b9f79b9bc20c4e5178ee6dba6b327057cb3c4e.tar.bz2
spack-e0b9f79b9bc20c4e5178ee6dba6b327057cb3c4e.tar.xz
spack-e0b9f79b9bc20c4e5178ee6dba6b327057cb3c4e.zip
Add changes that remove unsupported libraries from the boost build libraries list based on the boost version numbers. Libraries that are removed include: log - for versions of boost 1.53.0 and older - :atomic - for versions of boost 1.52.0 and older - :locale for versions of boost 1.49.0 and older - :chrono - for versions of boost 1.48.0 and older - and :random - for versions of boost 1.44.0 and older.
-rw-r--r--var/spack/repos/builtin/packages/boost/package.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/boost/package.py b/var/spack/repos/builtin/packages/boost/package.py
index f889da21f2..12bc9508c3 100644
--- a/var/spack/repos/builtin/packages/boost/package.py
+++ b/var/spack/repos/builtin/packages/boost/package.py
@@ -199,6 +199,18 @@ class Boost(Package):
install_tree(src, dst)
return
+ # Remove libraries that the release version does not support
+ if not spec.satisfies('@1.54.0:'):
+ withLibs.remove('log')
+ if not spec.satisfies('@1.53.0:'):
+ withLibs.remove('atomic')
+ if not spec.satisfies('@1.48.0:'):
+ withLibs.remove('locale')
+ if not spec.satisfies('@1.47.0:'):
+ withLibs.remove('chrono')
+ if not spec.satisfies('@1.43.0:'):
+ withLibs.remove('random')
+
# to make Boost find the user-config.jam
env['BOOST_BUILD_PATH'] = './'