From fcb04e584abb795f72ba1efd559c096ccc5522e2 Mon Sep 17 00:00:00 2001 From: Thomas Roeblitz Date: Mon, 20 May 2024 18:46:26 +0200 Subject: [PATCH] Rebuild EESSI-extend module --- EESSI-extend-2023.06-easybuild.eb | 14 +++++++++++++- ...0240520-eb-4.9.1-update-EESSI-extend-module.yml | 5 +++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 easystacks/software.eessi.io/2023.06/rebuilds/20240520-eb-4.9.1-update-EESSI-extend-module.yml diff --git a/EESSI-extend-2023.06-easybuild.eb b/EESSI-extend-2023.06-easybuild.eb index 76e96766f9..6e7e301af3 100644 --- a/EESSI-extend-2023.06-easybuild.eb +++ b/EESSI-extend-2023.06-easybuild.eb @@ -92,7 +92,19 @@ elseif (os.getenv("EESSI_SITE_INSTALL") ~= nil) then if ((os.getenv("EESSI_PROJECT_INSTALL") ~= nil) or (os.getenv("EESSI_USER_INSTALL") ~= nil)) then LmodError("You cannot use EESSI_SITE_INSTALL in combination with any other EESSI_*_INSTALL environment variables") end - easybuild_installpath = string.gsub(os.getenv("EESSI_SOFTWARE_PATH"), 'versions', 'host_injections') + site_install = os.getenv("EESSI_SITE_INSTALL") + site_modulepath = nil + if (site_install ~= nil) then + -- Check the folder exists + if not isDir(site_install) then + LmodError("The location of EESSI_SITE_INSTALL (" .. site_install .. ") does not exist or is not a folder") + end + if (mode() == "load") then + LmodMessage("Configuring for use of EESSI_SITE_INSTALL under " .. site_install) + end + easybuild_installpath = string.gsub(os.getenv("EESSI_SOFTWARE_PATH"), os.getenv("EESSI_CVMFS_REPO"), site_install) + site_modulepath = pathJoin(easybuild_installpath, 'modules', 'all') + end else -- Deal with user and project installs project_install = os.getenv("EESSI_PROJECT_INSTALL") diff --git a/easystacks/software.eessi.io/2023.06/rebuilds/20240520-eb-4.9.1-update-EESSI-extend-module.yml b/easystacks/software.eessi.io/2023.06/rebuilds/20240520-eb-4.9.1-update-EESSI-extend-module.yml new file mode 100644 index 0000000000..dd1ec62665 --- /dev/null +++ b/easystacks/software.eessi.io/2023.06/rebuilds/20240520-eb-4.9.1-update-EESSI-extend-module.yml @@ -0,0 +1,5 @@ +# 2024-05-20 +# Rebuild EESSI-extend/2023.06-easybuild +# The current version does not handle EESSI_SITE_INSTALL correctly. +easyconfigs: + - EESSI-extend-2023.06-easybuild.eb