diff --git a/easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-5.1.0-2023b.yml b/easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-5.1.0-2023b.yml index 58b079ab6b..6dfe02bf19 100644 --- a/easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-5.1.0-2023b.yml +++ b/easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-5.1.0-2023b.yml @@ -1,2 +1,3 @@ easyconfigs: - buildenv-default-foss-2023b.eb + - VSEARCH-2.30.0-GCC-13.2.0.eb diff --git a/eb_hooks.py b/eb_hooks.py index 359ea6d0d7..acbe6cab22 100644 --- a/eb_hooks.py +++ b/eb_hooks.py @@ -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 @@ -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 = {