Skip to content

Commit 7474c53

Browse files
committed
Merge remote-tracking branch 'origin/2023.06-software.eessi.io' into limit_cuda_installs
2 parents 5857d55 + 4e6b3a2 commit 7474c53

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

eb_hooks.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -631,6 +631,18 @@ def pre_configure_hook_score_p(self, *args, **kwargs):
631631
raise EasyBuildError("Score-P-specific hook triggered for non-Score-P easyconfig?!")
632632

633633

634+
def pre_configure_hook_vsearch(self, *args, **kwargs):
635+
"""
636+
Pre-configure hook for VSEARCH
637+
- Workaround for a Zlib macro being renamed in Gentoo, see https://bugs.gentoo.org/383179
638+
(solves "expected initializer before 'OF'" errors)
639+
"""
640+
if self.name == 'VSEARCH':
641+
self.cfg.update('configopts', 'CPPFLAGS="-DOF=_Z_OF ${CPPFLAGS}"')
642+
else:
643+
raise EasyBuildError("VSEARCH-specific hook triggered for non-VSEARCH easyconfig?!")
644+
645+
634646
def pre_configure_hook_extrae(self, *args, **kwargs):
635647
"""
636648
Pre-configure hook for Extrae
@@ -1317,6 +1329,7 @@ def post_module_hook(self, *args, **kwargs):
13171329
'WRF': pre_configure_hook_wrf_aarch64,
13181330
'LAMMPS': pre_configure_hook_LAMMPS_zen4,
13191331
'Score-P': pre_configure_hook_score_p,
1332+
'VSEARCH': pre_configure_hook_vsearch,
13201333
}
13211334

13221335
PRE_TEST_HOOKS = {

0 commit comments

Comments
 (0)