Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
easyconfigs:
- buildenv-default-foss-2023b.eb
- VSEARCH-2.30.0-GCC-13.2.0.eb
13 changes: 13 additions & 0 deletions eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,18 @@ def pre_configure_hook_score_p(self, *args, **kwargs):
raise EasyBuildError("Score-P-specific hook triggered for non-Score-P easyconfig?!")


def pre_configure_hook_vsearch(self, *args, **kwargs):
"""
Pre-configure hook for VSEARCH
- Workaround for a Zlib macro being renamed in Gentoo, see https://bugs.gentoo.org/383179
(solves "expected initializer before 'OF'" errors)
"""
if self.name == 'VSEARCH':
self.cfg.update('configopts', 'CPPFLAGS="-DOF=_Z_OF ${CPPFLAGS}"')
else:
raise EasyBuildError("VSEARCH-specific hook triggered for non-VSEARCH easyconfig?!")


def pre_configure_hook_extrae(self, *args, **kwargs):
"""
Pre-configure hook for Extrae
Expand Down Expand Up @@ -1286,6 +1298,7 @@ def post_module_hook(self, *args, **kwargs):
'WRF': pre_configure_hook_wrf_aarch64,
'LAMMPS': pre_configure_hook_LAMMPS_zen4,
'Score-P': pre_configure_hook_score_p,
'VSEARCH': pre_configure_hook_vsearch,
}

PRE_TEST_HOOKS = {
Expand Down