From a27f2978b901e354053fa0059b35f32e950e8ba1 Mon Sep 17 00:00:00 2001 From: George Zagaris Date: Mon, 13 May 2019 12:53:23 -0700 Subject: m4 package: fix OS version check (#11290) f242f5f removed spec.architecture.platform_os, which was used to test an option in the 'm4' package. The attribute is now accessed as 'spec.architecture.os'. --- var/spack/repos/builtin/packages/m4/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/m4/package.py b/var/spack/repos/builtin/packages/m4/package.py index ad180b15a8..71ed3d1da4 100644 --- a/var/spack/repos/builtin/packages/m4/package.py +++ b/var/spack/repos/builtin/packages/m4/package.py @@ -51,7 +51,7 @@ class M4(AutotoolsPackage): # http://lists.gnu.org/archive/html/bug-m4/2016-09/msg00002.html arch = spec.architecture - if (arch.platform == 'darwin' and arch.platform_os == 'sierra' and + if (arch.platform == 'darwin' and arch.os == 'sierra' and '%gcc' in spec): args.append('ac_cv_type_struct_sched_param=yes') -- cgit v1.2.3-60-g2f50