From e26a0be731e9bde4164f37f8c9592c39a470d6b9 Mon Sep 17 00:00:00 2001 From: Matt Belhorn Date: Thu, 1 Dec 2016 12:54:48 -0500 Subject: [PATCH] Does nothing if no prexisting config.guess is found. (#2446) * Does nothing if no prexisting config.guess is found. * Update name for RHEL OS. --- lib/spack/spack/build_systems/autotools.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/spack/spack/build_systems/autotools.py b/lib/spack/spack/build_systems/autotools.py index 8535c9d3e3..7be0b13645 100644 --- a/lib/spack/spack/build_systems/autotools.py +++ b/lib/spack/spack/build_systems/autotools.py @@ -80,6 +80,8 @@ def do_patch_config_guess(self): return True except: pass + else: + return True # Look for a spack-installed automake package if 'automake' in self.spec: @@ -120,7 +122,7 @@ def patch(self): """Perform any required patches.""" if self.patch_config_guess and self.spec.satisfies( - 'arch=linux-redhat7-ppc64le'): + 'arch=linux-rhel7-ppc64le'): if not self.do_patch_config_guess(): raise RuntimeError('Failed to find suitable config.guess')