@@ -741,6 +741,11 @@ def pre_configure_hook(self, *args, **kwargs):
741741 if self .name in PRE_CONFIGURE_HOOKS :
742742 PRE_CONFIGURE_HOOKS [self .name ](self , * args , ** kwargs )
743743
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+
744749
745750def pre_configure_hook_BLIS_a64fx (self , * args , ** kwargs ):
746751 """
@@ -802,18 +807,6 @@ def pre_configure_hook_score_p(self, *args, **kwargs):
802807 raise EasyBuildError ("Score-P-specific hook triggered for non-Score-P easyconfig?!" )
803808
804809
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-
817810def pre_configure_hook_extrae (self , * args , ** kwargs ):
818811 """
819812 Pre-configure hook for Extrae
@@ -1623,7 +1616,6 @@ def post_easyblock_hook(self, *args, **kwargs):
16231616 'WRF' : pre_configure_hook_wrf_aarch64 ,
16241617 'LAMMPS' : pre_configure_hook_LAMMPS_zen4_and_aarch64_cuda ,
16251618 'Score-P' : pre_configure_hook_score_p ,
1626- 'VSEARCH' : pre_configure_hook_vsearch ,
16271619 'CMake' : pre_configure_hook_cmake_system ,
16281620}
16291621
0 commit comments