summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorJosh Asplund <joshuata@users.noreply.github.com>2017-04-05 14:26:22 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2017-04-05 16:26:22 -0500
commit048b6fc4548bc6711e51a29bfbaa42e21e56c000 (patch)
tree6b552e05ffd9318f8bd72b2ed49e804c221b9063 /var
parent745e2ce52ffb33a8da9856e64c4571303f274163 (diff)
downloadspack-048b6fc4548bc6711e51a29bfbaa42e21e56c000.tar.gz
spack-048b6fc4548bc6711e51a29bfbaa42e21e56c000.tar.bz2
spack-048b6fc4548bc6711e51a29bfbaa42e21e56c000.tar.xz
spack-048b6fc4548bc6711e51a29bfbaa42e21e56c000.zip
Fixes patch paths for earlier boost versions (#3712)
* Fixes patch paths for earlier boost versions The directory structure of boost changed at version 1.56.0, so the patch being used for python support did not work on earlier versions. This adds another patch that matches earlier versions. * Removes commented out code
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/boost/package.py3
-rw-r--r--var/spack/repos/builtin/packages/boost/python_jam_pre156.patch42
2 files changed, 44 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/boost/package.py b/var/spack/repos/builtin/packages/boost/package.py
index 06df688ea1..09953dd90e 100644
--- a/var/spack/repos/builtin/packages/boost/package.py
+++ b/var/spack/repos/builtin/packages/boost/package.py
@@ -131,7 +131,8 @@ class Boost(Package):
patch('boost_11856.patch', when='@1.60.0%gcc@4.4.7')
# Patch fix from https://svn.boost.org/trac/boost/ticket/11120
- patch('python_jam.patch', when='^python@3:')
+ patch('python_jam.patch', when='@1.56.0: ^python@3:')
+ patch('python_jam_pre156.patch', when='@:1.55.0 ^python@3:')
# Patch fix from https://svn.boost.org/trac/boost/ticket/10125
patch('boost_10125.patch', when='@1.55.0%gcc@5.0:5.9')
diff --git a/var/spack/repos/builtin/packages/boost/python_jam_pre156.patch b/var/spack/repos/builtin/packages/boost/python_jam_pre156.patch
new file mode 100644
index 0000000000..b5c6404983
--- /dev/null
+++ b/var/spack/repos/builtin/packages/boost/python_jam_pre156.patch
@@ -0,0 +1,42 @@
+diff --git a/tools/build/v2/tools/python.jam b/tools/build/v2/tools/python.jam
+index 90377ea..123f66a 100644
+--- a/tools/build/v2/tools/python.jam
++++ b/tools/build/v2/tools/python.jam
+@@ -493,6 +493,10 @@ local rule probe ( python-cmd )
+ sys.$(s) = [ SUBST $(output) \\<$(s)=([^$(nl)]+) $1 ] ;
+ }
+ }
++ # Try to get python abiflags
++ full-cmd = $(python-cmd)" -c \"from sys import abiflags; print(abiflags, end='')\"" ;
++
++ sys.abiflags = [ SHELL $(full-cmd) ] ;
+ return $(output) ;
+ }
+ }
+@@ -502,7 +506,7 @@ local rule probe ( python-cmd )
+ # have a value based on the information given.
+ #
+ local rule compute-default-paths ( target-os : version ? : prefix ? :
+- exec-prefix ? )
++ exec-prefix ? : abiflags ? )
+ {
+ exec-prefix ?= $(prefix) ;
+
+@@ -539,7 +543,7 @@ local rule compute-default-paths ( target-os : version ? : prefix ? :
+ }
+ else
+ {
+- includes ?= $(prefix)/include/python$(version) ;
++ includes ?= $(prefix)/include/python$(version)$(abiflags) ;
+
+ local lib = $(exec-prefix)/lib ;
+ libraries ?= $(lib)/python$(version)/config $(lib) ;
+@@ -783,7 +787,7 @@ local rule configure ( version ? : cmd-or-prefix ? : includes * : libraries ? :
+ exec-prefix = $(sys.exec_prefix) ;
+
+ compute-default-paths $(target-os) : $(sys.version) :
+- $(sys.prefix) : $(sys.exec_prefix) ;
++ $(sys.prefix) : $(sys.exec_prefix) : $(sys.abiflags) ;
+
+ version = $(sys.version) ;
+ interpreter-cmd ?= $(cmd) ;