@@ -919,6 +919,42 @@ def pre_configure_hook_openblas_optarch_generic(self, *args, **kwargs):
919919 raise EasyBuildError ("OpenBLAS-specific hook triggered for non-OpenBLAS easyconfig?!" )
920920
921921
922+ def pre_configure_hook_openmpi_ipv6 (self , * args , ** kwargs ):
923+ """
924+ Pre-configure hook to enable IPv6 support in OpenMPI from EESSI 2025.06 onwards
925+ """
926+ if self .name == 'OpenMPI' :
927+ eessi_version = get_eessi_envvar ('EESSI_VERSION' )
928+ if eessi_version and LooseVersion (eessi_version ) >= '2025.06' :
929+ self .cfg .update ('configopts' , '--enable-ipv6' )
930+ else :
931+ raise EasyBuildError ("OpenMPI-specific hook triggered for non-OpenMPI easyconfig?!" )
932+
933+
934+ def pre_configure_hook_pmix_ipv6 (self , * args , ** kwargs ):
935+ """
936+ Pre-configure hook to enable IPv6 support in PMIx from EESSI 2025.06 onwards
937+ """
938+ if self .name == 'PMIx' :
939+ eessi_version = get_eessi_envvar ('EESSI_VERSION' )
940+ if eessi_version and LooseVersion (eessi_version ) >= '2025.06' :
941+ self .cfg .update ('configopts' , '--enable-ipv6' )
942+ else :
943+ raise EasyBuildError ("PMIx-specific hook triggered for non-PMIx easyconfig?!" )
944+
945+
946+ def pre_configure_hook_prrte_ipv6 (self , * args , ** kwargs ):
947+ """
948+ Pre-configure hook to enable IPv6 support in PRRTE from EESSI 2025.06 onwards
949+ """
950+ if self .name == 'PRRTE' :
951+ eessi_version = get_eessi_envvar ('EESSI_VERSION' )
952+ if eessi_version and LooseVersion (eessi_version ) >= '2025.06' :
953+ self .cfg .update ('configopts' , '--enable-ipv6' )
954+ else :
955+ raise EasyBuildError ("PRRTE-specific hook triggered for non-PRRTE easyconfig?!" )
956+
957+
922958def pre_configure_hook_libfabric_disable_psm3_x86_64_generic (self , * args , ** kwargs ):
923959 """Add --disable-psm3 to libfabric configure options when building with --optarch=GENERIC on x86_64."""
924960 if self .name == 'libfabric' :
@@ -1538,6 +1574,9 @@ def post_easyblock_hook(self, *args, **kwargs):
15381574 'ROCm-LLVM' : pre_configure_hook_llvm ,
15391575 'MetaBAT' : pre_configure_hook_metabat_filtered_zlib_dep ,
15401576 'OpenBLAS' : pre_configure_hook_openblas_optarch_generic ,
1577+ 'OpenMPI' : pre_configure_hook_openmpi_ipv6 ,
1578+ 'PMIx' : pre_configure_hook_pmix_ipv6 ,
1579+ 'PRRTE' : pre_configure_hook_prrte_ipv6 ,
15411580 'WRF' : pre_configure_hook_wrf_aarch64 ,
15421581 'LAMMPS' : pre_configure_hook_LAMMPS_zen4 ,
15431582 'Score-P' : pre_configure_hook_score_p ,
0 commit comments