@@ -335,6 +335,21 @@ def pre_configure_hook_LAMMPS_aarch64(self, *args, **kwargs):
335335 raise EasyBuildError ("LAMMPS-specific hook triggered for non-LAMMPS easyconfig?!" )
336336
337337
338+ def pre_configure_hook_atspi2core_filter_ld_library_path (self , * args , ** kwargs ):
339+ """
340+ pre-configure hook for at-spi2-core:
341+ - instruct GObject-Introspection's g-ir-scanner tool to not set $LD_LIBRARY_PATH
342+ when EasyBuild is configured to filter it, see:
343+ https://github.com/EESSI/software-layer/issues/196
344+ """
345+ if self .name == 'at-spi2-core' :
346+ if build_option ('filter_env_vars' ) and 'LD_LIBRARY_PATH' in build_option ('filter_env_vars' ):
347+ sed_cmd = 'sed -i "s/gir_extra_args = \[/gir_extra_args = \[\\ n \' --lib-dirs-envvar=FILTER_LD_LIBRARY_PATH\' ,/g" %(start_dir)s/atspi/meson.build && '
348+ self .cfg .update ('preconfigopts' , sed_cmd )
349+ else :
350+ raise EasyBuildError ("at-spi2-core-specific hook triggered for non-at-spi2-core easyconfig?!" )
351+
352+
338353def pre_test_hook (self ,* args , ** kwargs ):
339354 """Main pre-test hook: trigger custom functions based on software name."""
340355 if self .name in PRE_TEST_HOOKS :
@@ -551,6 +566,7 @@ def inject_gpu_property(ec):
551566 'OpenBLAS' : pre_configure_hook_openblas_optarch_generic ,
552567 'WRF' : pre_configure_hook_wrf_aarch64 ,
553568 'LAMMPS' : pre_configure_hook_LAMMPS_aarch64 ,
569+ 'at-spi2-core' : pre_configure_hook_atspi2core_filter_ld_library_path ,
554570}
555571
556572PRE_TEST_HOOKS = {
0 commit comments