mpich: post-configure patch for cce (#23193)

This commit is contained in:
Greg Becker 2021-04-23 06:22:39 -07:00 committed by GitHub
parent 30c81b127c
commit 80c8b11d77
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -190,6 +190,17 @@ class Mpich(AutotoolsPackage):
# see https://github.com/pmodels/mpich/pull/5031
conflicts('%clang@:7', when='@3.4:')
@run_after('configure')
def patch_cce(self):
# Configure misinterprets output from the cce compiler
# Patching configure instead should be possible, but a first
# implementation failed in obscure ways that were not worth
# tracking down when this worked
if self.spec.satisfies('%cce'):
filter_file('-L -L', '', 'config.lt', string=True)
filter_file('-L -L', '', 'libtool', string=True)
filter_file('-L -L', '', 'config.status', string=True)
@classmethod
def determine_version(cls, exe):
output = Executable(exe)(output=str, error=str)