Skip to content

Commit 4e6b3a2

Browse files
authored
Merge pull request #1114 from mdehollander/vsearch
{2023.06}[GCC/13.2.0] VSEARCH 2.30.0
2 parents 5f0d72d + 006252c commit 4e6b3a2

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
@@ -600,6 +600,18 @@ def pre_configure_hook_score_p(self, *args, **kwargs):
600600
raise EasyBuildError("Score-P-specific hook triggered for non-Score-P easyconfig?!")
601601

602602

603+
def pre_configure_hook_vsearch(self, *args, **kwargs):
604+
"""
605+
Pre-configure hook for VSEARCH
606+
- Workaround for a Zlib macro being renamed in Gentoo, see https://bugs.gentoo.org/383179
607+
(solves "expected initializer before 'OF'" errors)
608+
"""
609+
if self.name == 'VSEARCH':
610+
self.cfg.update('configopts', 'CPPFLAGS="-DOF=_Z_OF ${CPPFLAGS}"')
611+
else:
612+
raise EasyBuildError("VSEARCH-specific hook triggered for non-VSEARCH easyconfig?!")
613+
614+
603615
def pre_configure_hook_extrae(self, *args, **kwargs):
604616
"""
605617
Pre-configure hook for Extrae
@@ -1286,6 +1298,7 @@ def post_module_hook(self, *args, **kwargs):
12861298
'WRF': pre_configure_hook_wrf_aarch64,
12871299
'LAMMPS': pre_configure_hook_LAMMPS_zen4,
12881300
'Score-P': pre_configure_hook_score_p,
1301+
'VSEARCH': pre_configure_hook_vsearch,
12891302
}
12901303

12911304
PRE_TEST_HOOKS = {

0 commit comments

Comments
 (0)