@@ -741,6 +741,11 @@ def pre_configure_hook(self, *args, **kwargs):
741
741
if self .name in PRE_CONFIGURE_HOOKS :
742
742
PRE_CONFIGURE_HOOKS [self .name ](self , * args , ** kwargs )
743
743
744
+ # workaround for a Zlib macro being renamed in Gentoo, see https://bugs.gentoo.org/383179
745
+ # (solves "expected initializer before 'OF'" errors)
746
+ if self .name in ['FreeXL' , 'libspatialite' , 'VSEARCH' ]:
747
+ self .cfg .update ('configopts' , 'CPPFLAGS="-DOF=_Z_OF ${CPPFLAGS}"' )
748
+
744
749
745
750
def pre_configure_hook_BLIS_a64fx (self , * args , ** kwargs ):
746
751
"""
@@ -802,18 +807,6 @@ def pre_configure_hook_score_p(self, *args, **kwargs):
802
807
raise EasyBuildError ("Score-P-specific hook triggered for non-Score-P easyconfig?!" )
803
808
804
809
805
- def pre_configure_hook_vsearch (self , * args , ** kwargs ):
806
- """
807
- Pre-configure hook for VSEARCH
808
- - Workaround for a Zlib macro being renamed in Gentoo, see https://bugs.gentoo.org/383179
809
- (solves "expected initializer before 'OF'" errors)
810
- """
811
- if self .name == 'VSEARCH' :
812
- self .cfg .update ('configopts' , 'CPPFLAGS="-DOF=_Z_OF ${CPPFLAGS}"' )
813
- else :
814
- raise EasyBuildError ("VSEARCH-specific hook triggered for non-VSEARCH easyconfig?!" )
815
-
816
-
817
810
def pre_configure_hook_extrae (self , * args , ** kwargs ):
818
811
"""
819
812
Pre-configure hook for Extrae
@@ -1623,7 +1616,6 @@ def post_easyblock_hook(self, *args, **kwargs):
1623
1616
'WRF' : pre_configure_hook_wrf_aarch64 ,
1624
1617
'LAMMPS' : pre_configure_hook_LAMMPS_zen4_and_aarch64_cuda ,
1625
1618
'Score-P' : pre_configure_hook_score_p ,
1626
- 'VSEARCH' : pre_configure_hook_vsearch ,
1627
1619
'CMake' : pre_configure_hook_cmake_system ,
1628
1620
}
1629
1621
0 commit comments