@@ -429,6 +429,20 @@ def parse_hook_grpcio_zlib(ec, ecprefix):
429429 raise EasyBuildError ("grpcio-specific hook triggered for a non-grpcio easyconfig?!" )
430430
431431
432+ def parse_hook_mesa_use_llvm_minimal (ec , eprefix ):
433+ """
434+ Replace Mesa dependency on LLVM 18.1.8 by one on LLVM 18.1.8-minimal,
435+ as the full LLVM 18.1.8 installation does not have sysroot support.
436+ """
437+ if ec .name == 'Mesa' and ec .version == '24.1.3' :
438+ deps = ec ['dependencies' ]
439+ llvm_name , llvm_version = ('LLVM' , '18.1.8' )
440+ for idx , dep in enumerate (deps ):
441+ if dep [0 ] == llvm_name and dep [1 ] == llvm_version :
442+ deps [idx ] = (llvm_name , llvm_version , '-minimal' )
443+ break
444+
445+
432446def parse_hook_openblas_relax_lapack_tests_num_errors (ec , eprefix ):
433447 """Relax number of failing numerical LAPACK tests for aarch64/neoverse_v1 CPU target for OpenBLAS < 0.3.23"""
434448 cpu_target = get_eessi_envvar ('EESSI_SOFTWARE_SUBDIR' )
@@ -1595,6 +1609,7 @@ def post_easyblock_hook(self, *args, **kwargs):
15951609 'fontconfig' : parse_hook_fontconfig_add_fonts ,
15961610 'FreeImage' : parse_hook_freeimage_aarch64 ,
15971611 'grpcio' : parse_hook_grpcio_zlib ,
1612+ 'Mesa' : parse_hook_mesa_use_llvm_minimal ,
15981613 'OpenBLAS' : parse_hook_openblas_relax_lapack_tests_num_errors ,
15991614 'pybind11' : parse_hook_pybind11_replace_catch2 ,
16001615 'Qt5' : parse_hook_qt5_check_qtwebengine_disable ,
0 commit comments