fix config.guess patch for ppc64le (#4858)
* fix config.guess patch for ppc64le * explicit patch for config.guess not required
This commit is contained in:
parent
71991cd9c9
commit
42717bd8e8
@ -98,7 +98,9 @@ class AutotoolsPackage(PackageBase):
|
|||||||
@run_after('autoreconf')
|
@run_after('autoreconf')
|
||||||
def _do_patch_config_guess(self):
|
def _do_patch_config_guess(self):
|
||||||
"""Some packages ship with an older config.guess and need to have
|
"""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(
|
if not self.patch_config_guess or not self.spec.satisfies(
|
||||||
'arch=linux-rhel7-ppc64le'
|
'arch=linux-rhel7-ppc64le'
|
||||||
@ -190,20 +192,6 @@ def default_flag_handler(self, spack_env, flag_val):
|
|||||||
' '.join(flag_val[1]))
|
' '.join(flag_val[1]))
|
||||||
return []
|
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')
|
@run_before('autoreconf')
|
||||||
def delete_configure_to_force_update(self):
|
def delete_configure_to_force_update(self):
|
||||||
if self.force_autoreconf:
|
if self.force_autoreconf:
|
||||||
|
Loading…
Reference in New Issue
Block a user