environment-modules: fix version 4.5.2 install (#18421)

`configure` script of Modules 4.5.2 is a bit too strict and breaks when
special options like `--disable-dependency-tracking` are set. This issue
will be fixed on Modules project starting version 4.5.3
(cea-hpc/modules#354).

This change adapts `configure` options set when installing version 4.5.2
to avoid options unrecognized on this version.

Fix #18420
This commit is contained in:
Xavier Delaruelle 2020-08-31 17:43:31 +02:00 committed by GitHub
parent 97f7378097
commit 7036f41ea5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,12 +64,18 @@ def install(self, spec, prefix):
# It looks for tclConfig.sh
"--with-tcl=" + tcl_lib_dir,
"--with-tcl-ver={0}.{1}".format(*tcl.version.version[0:2]),
'--disable-dependency-tracking',
'--disable-silent-rules',
'--disable-versioning',
'--datarootdir=' + prefix.share
]
# ./configure script on version 4.5.2 breaks when specific options are
# set (see https://github.com/cea-hpc/modules/issues/354)
if not spec.satisfies('@4.5.2'):
config_args.extend([
'--disable-dependency-tracking',
'--disable-silent-rules'
])
if '~X' in spec:
config_args = ['--without-x'] + config_args