@@ -16,13 +16,18 @@ local eessi_repo = "/cvmfs/software.eessi.io"
1616local eessi_prefix = pathJoin (eessi_repo , " versions" , eessi_version )
1717local eessi_compat_prefix = pathJoin (eessi_prefix , " compat" )
1818local eessi_init_prefix = pathJoin (eessi_prefix , " init" )
19+ local eessi_software_layer_version_suffix = " "
1920local eessi_os_type = " linux"
2021-- for RISC-V clients we need to do some overrides, as things are stored in different CVMFS repositories
2122if (subprocess (" uname -m" ):gsub (" \n $" ," " ) == " riscv64" ) then
2223 if (eessi_version == " 2023.06" or eessi_version == " 20240402" ) then
23- eessi_version = os.getenv (" EESSI_VERSION_OVERRIDE" ) or " 20240402"
24+ eessi_version_override = os.getenv (" EESSI_VERSION_OVERRIDE" ) or " "
25+ index_suffix = string.find (eessi_version_override , ' -' )
26+ if index_suffix then
27+ eessi_software_layer_version_suffix = string.sub (eessi_version_override , index_suffix )
28+ end
2429 eessi_repo = " /cvmfs/riscv.eessi.io"
25- eessi_prefix = pathJoin (eessi_repo , " versions" , eessi_version )
30+ eessi_prefix = pathJoin (eessi_repo , " versions" , eessi_version .. eessi_software_layer_version_suffix )
2631 eessi_compat_prefix = pathJoin (eessi_prefix , " compat" )
2732 if mode () == " load" then
2833 LmodMessage (" RISC-V architecture detected, but there is no RISC-V support yet in the production repository.\n " ..
@@ -139,6 +144,8 @@ prepend_path("PATH", pathJoin(eessi_eprefix, "bin"))
139144eessiDebug (" Adding " .. pathJoin (eessi_eprefix , " bin" ) .. " to PATH" )
140145prepend_path (" PATH" , pathJoin (eessi_eprefix , " usr" , " bin" ))
141146eessiDebug (" Adding " .. pathJoin (eessi_eprefix , " usr" , " bin" ) .. " to PATH" )
147+ setenv (" EESSI_SOFTWARE_LAYER_VERSION_SUFFIX" , eessi_software_layer_version_suffix )
148+ eessiDebug (" Setting EESSI_SOFTWARE_LAYER_VERSION_SUFFIX to " .. eessi_software_layer_version_suffix )
142149setenv (" EESSI_SOFTWARE_PATH" , eessi_software_path )
143150eessiDebug (" Setting EESSI_SOFTWARE_PATH to " .. eessi_software_path )
144151setenv (" EESSI_MODULEPATH" , eessi_module_path )
0 commit comments