Skip to content

Commit cf20491

Browse files
authored
Merge pull request #140 from bedroge/another_riscv_fix
two more fixes for building RISC-V stacks with a version suffix
2 parents 98a3cb1 + 95e58eb commit cf20491

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

EESSI-install-software.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,9 @@ else
384384
for easystack_file in ${rebuild_easystacks} ${new_easystacks}; do
385385

386386
# make sure that easystack file being picked up is for EESSI version that we're building for...
387-
echo "${easystack_file}" | grep -q "^easystacks/$(basename ${EESSI_CVMFS_REPO})/${EESSI_VERSION}/"
387+
echo "${easystack_file}" | grep -q "^easystacks/$(basename ${EESSI_CVMFS_REPO})/${EESSI_VERSION}${EESSI_SOFTWARE_LAYER_VERSION_SUFFIX}/"
388388
if [ $? -ne 0 ]; then
389-
echo_yellow "Easystack file ${easystack_file} is not intended for EESSI version ${EESSI_VERSION}, skipping it..."
389+
echo_yellow "Easystack file ${easystack_file} is not intended for EESSI version ${EESSI_VERSION}${EESSI_SOFTWARE_LAYER_VERSION_SUFFIX}, skipping it..."
390390
else
391391
echo -e "Processing easystack file ${easystack_file}...\n\n"
392392

init/modules/EESSI/2023.06.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,13 @@ if (subprocess("uname -m"):gsub("\n$","") == "riscv64") then
3535
"For more details about this repository, see https://www.eessi.io/docs/repositories/riscv.eessi.io/.")
3636
end
3737
elseif (eessi_version == "2025.06") then
38+
eessi_version_override = os.getenv("EESSI_VERSION_OVERRIDE") or ""
39+
index_suffix = string.find(eessi_version_override, '-')
40+
if index_suffix then
41+
eessi_software_layer_version_suffix = string.sub(eessi_version_override, index_suffix)
42+
end
3843
eessi_repo = "/cvmfs/dev.eessi.io/riscv"
39-
eessi_version = os.getenv("EESSI_VERSION_OVERRIDE") or eessi_version
40-
eessi_prefix = pathJoin(eessi_repo, "versions", eessi_version)
44+
eessi_prefix = pathJoin(eessi_repo, "versions", eessi_version .. eessi_software_layer_version_suffix)
4145
if mode() == "load" then
4246
LmodMessage("This EESSI production version only provides a RISC-V compatibility layer,\n" ..
4347
"software installations are provided by the EESSI development repository at " .. eessi_repo .. ".\n")

0 commit comments

Comments
 (0)