From 42717bd8e844cc3dbde651cdda99827cf643a45f Mon Sep 17 00:00:00 2001 From: Gregory Lee Date: Tue, 25 Jul 2017 13:44:51 -0700 Subject: fix config.guess patch for ppc64le (#4858) * fix config.guess patch for ppc64le * explicit patch for config.guess not required --- lib/spack/spack/build_systems/autotools.py | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'lib') diff --git a/lib/spack/spack/build_systems/autotools.py b/lib/spack/spack/build_systems/autotools.py index 1ef38ddc2d..230e12e1f8 100644 --- a/lib/spack/spack/build_systems/autotools.py +++ b/lib/spack/spack/build_systems/autotools.py @@ -98,7 +98,9 @@ class AutotoolsPackage(PackageBase): @run_after('autoreconf') def _do_patch_config_guess(self): """Some packages ship with an older config.guess and need to have - this updated when installed on a newer architecture.""" + this updated when installed on a newer architecture. In particular, + config.guess fails for PPC64LE for version prior to a 2013-06-10 + build date (automake 1.13.4).""" if not self.patch_config_guess or not self.spec.satisfies( 'arch=linux-rhel7-ppc64le' @@ -190,20 +192,6 @@ class AutotoolsPackage(PackageBase): ' '.join(flag_val[1])) return [] - def patch(self): - """Patches config.guess if - :py:attr:``~.AutotoolsPackage.patch_config_guess`` is True - - :raise RuntimeError: if something goes wrong when patching - ``config.guess`` - """ - - if self.patch_config_guess and self.spec.satisfies( - 'arch=linux-rhel7-ppc64le' - ): - if not self._do_patch_config_guess(): - raise RuntimeError('Failed to find suitable config.guess') - @run_before('autoreconf') def delete_configure_to_force_update(self): if self.force_autoreconf: -- cgit v1.2.3-60-g2f50