Skip to content

Commit 7744c24

Browse files
authored
Merge pull request #454 from bedroge/at-spi2-core-2.49.91-GCCcore-12.3.0
{2023.06}[GCCcore/12.3.0] at-spi2-core 2.49.91
2 parents 29f4cff + 9a1b4c8 commit 7744c24

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

easystacks/software.eessi.io/2023.06/eessi-2023.06-eb-4.9.0-2023a.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ easyconfigs:
22
- OpenFOAM-11-foss-2023a.eb:
33
options:
44
from-pr: 19545
5+
- at-spi2-core-2.49.91-GCCcore-12.3.0.eb

eb_hooks.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
338353
def 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

556572
PRE_TEST_HOOKS = {

0 commit comments

Comments
 (0)