summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2017-01-16 03:03:52 -0800
committerGitHub <noreply@github.com>2017-01-16 03:03:52 -0800
commitde7be6694f8e65a0e7b5589148cfcbf162217ab9 (patch)
treefd61bae6468a4f06cf140c704458546bb2173636
parent8365dbd959f0c8346017c64298fa1cac06122609 (diff)
downloadspack-de7be6694f8e65a0e7b5589148cfcbf162217ab9.tar.gz
spack-de7be6694f8e65a0e7b5589148cfcbf162217ab9.tar.bz2
spack-de7be6694f8e65a0e7b5589148cfcbf162217ab9.tar.xz
spack-de7be6694f8e65a0e7b5589148cfcbf162217ab9.zip
Fix issue with Mac OS version detection in m4 package. (#2835)
-rw-r--r--var/spack/repos/builtin/packages/m4/package.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/m4/package.py b/var/spack/repos/builtin/packages/m4/package.py
index 15dbf4793b..ebfbc28612 100644
--- a/var/spack/repos/builtin/packages/m4/package.py
+++ b/var/spack/repos/builtin/packages/m4/package.py
@@ -23,7 +23,6 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
-import sys
class M4(AutotoolsPackage):
@@ -52,8 +51,9 @@ class M4(AutotoolsPackage):
args.append('--without-libsigsegv-prefix')
# http://lists.gnu.org/archive/html/bug-m4/2016-09/msg00002.html
- if (sys.platform == 'darwin') and (spec.satisfies('%gcc')) and \
- (spec.architecture.platform_os.version == '10.12'):
+ arch = spec.architecture
+ if (arch.platform == 'darwin' and arch.platform_os == 'sierra' and
+ '%gcc' in spec):
args.append('ac_cv_type_struct_sched_param=yes')
return args