Skip to content

Commit aecc722

Browse files
committed
distinguish between different versions for RISC-V clients
1 parent 1ff11e3 commit aecc722

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

init/eessi_defaults

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,25 @@
1010

1111
export EESSI_VERSION_DEFAULT='__EESSI_VERSION_DEFAULT__'
1212

13-
# use different defaults for RISC-V, as we want to redirect to the riscv.eessi.io repo
13+
# use different defaults for RISC-V clients
1414
if [[ $(uname -m) == "riscv64" ]]; then
15-
export EESSI_CVMFS_REPO="${EESSI_CVMFS_REPO_OVERRIDE:=/cvmfs/riscv.eessi.io}"
16-
export EESSI_VERSION="${EESSI_VERSION_OVERRIDE:=20240402}"
17-
if [[ -z ${EESSI_SILENT+x} ]]; then
18-
echo "RISC-V architecture detected, but there is no RISC-V support yet in the production repository."
19-
echo "Automatically switching to version ${EESSI_VERSION} of the RISC-V development repository ${EESSI_CVMFS_REPO}."
20-
echo "For more details about this repository, see https://www.eessi.io/docs/repositories/riscv.eessi.io/."
21-
echo ""
15+
export EESSI_VERSION="${EESSI_VERSION_OVERRIDE:=${EESSI_VERSION_DEFAULT}}"
16+
if [[ "${EESSI_VERSION}" == "2023.06" ]] || [[ "${EESSI_VERSION}" == "20240402" ]]; then
17+
export EESSI_VERSION="${EESSI_VERSION_OVERRIDE:=20240402}"
18+
export EESSI_CVMFS_REPO="${EESSI_CVMFS_REPO_OVERRIDE:=/cvmfs/riscv.eessi.io}"
19+
if [[ -z ${EESSI_SILENT+x} ]]; then
20+
echo "RISC-V architecture detected, but there is no RISC-V support yet in the production repository."
21+
echo "Automatically switching to version ${EESSI_VERSION} of the RISC-V development repository ${EESSI_CVMFS_REPO}."
22+
echo "For more details about this repository, see https://www.eessi.io/docs/repositories/riscv.eessi.io/."
23+
echo ""
24+
fi
25+
elif [[ "${EESSI_VERSION_DEFAULT}" == "2025.06" ]]; then
26+
export EESSI_CVMFS_REPO="${EESSI_CVMFS_REPO_OVERRIDE:=/cvmfs/dev.eessi.io/riscv}"
27+
export EESSI_COMPAT_LAYER_DIR="/cvmfs/software.eessi.io/versions/${EESSI_VERSION_DEFAULT}/compat/linux/$(uname -m)"
28+
if [[ -z ${EESSI_SILENT+x} ]]; then
29+
echo "This EESSI production version only provides a RISC-V compatibility layer,"
30+
echo "software installations are provided by the EESSI development repository at ${EESSI_CVMFS_REPO}."
31+
fi
2232
fi
2333
else
2434
export EESSI_CVMFS_REPO="${EESSI_CVMFS_REPO_OVERRIDE:=/cvmfs/software.eessi.io}"

0 commit comments

Comments
 (0)