Skip to content

Commit 5fe620e

Browse files
committed
More tweaks
1 parent 664040b commit 5fe620e

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/tests_eessi_module.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,9 @@ jobs:
338338

339339
- name: Make sure we are filtering LD_LIBRARY_PATH if necessary
340340
run: |
341+
# Initialise Lmod
342+
. /cvmfs/software.eessi.io/versions/${{matrix.EESSI_VERSION}}/compat/linux/$(uname -m)/usr/share/Lmod/init/bash
343+
341344
# Make sure we are using the EESSI module file from the repository
342345
export MODULEPATH=init/modules
343346

init/modules/EESSI/2023.06.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ end
235235

236236
-- Filter system paths from LD_LIBRARY_PATH
237237
-- Needs to be reversible so first make a copy
238-
append_path ("EESSI_DEFAULT_HOST_LD_LIBRARY_PATH", os.getenv("LD_LIBRARY_PATH") or "")
238+
append_path ("__EESSI_DEFAULT_HOST_LD_LIBRARY_PATH__", os.getenv("LD_LIBRARY_PATH") or "")
239239
local function remove_system_paths(var)
240240
local paths = os.getenv(var)
241241
local system_lib_patterns = {
@@ -256,10 +256,10 @@ local function remove_system_paths(var)
256256
end
257257
-- on unload the variable will no longer exist
258258
if mode() == "load" then
259-
remove_system_paths("EESSI_DEFAULT_HOST_LD_LIBRARY_PATH")
259+
remove_system_paths("__EESSI_DEFAULT_HOST_LD_LIBRARY_PATH__")
260260
end
261261
-- now we can use pushenv to retain/restore the original value
262-
pushenv ("LD_LIBRARY_PATH", os.getenv("EESSI_DEFAULT_HOST_LD_LIBRARY_PATH") or "")
262+
pushenv ("LD_LIBRARY_PATH", os.getenv("__EESSI_DEFAULT_HOST_LD_LIBRARY_PATH__") or "")
263263

264264
-- set CURL_CA_BUNDLE on RHEL-based systems
265265
ca_bundle_file_rhel = "/etc/pki/tls/certs/ca-bundle.crt"

0 commit comments

Comments
 (0)