Skip to content

Commit

Permalink
Fix detection of container libc version
Browse files Browse the repository at this point in the history
This fixes the workaround for issue brainvisa/brainvisa.github.io#186

For some unknown reason, on some machines "apptainer run ...libc.so.6" returns an empty string, whereas "apptainer exec ..." works.
  • Loading branch information
ylep authored Jan 8, 2025
1 parent 5a5f0f7 commit 29a3fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/casa_distro/singularity.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ def _nv_libs_binds(image=None):
pass
if host_ver is not None:
try:
cmd = [singularity_executable(), 'run', image, libc_path]
cmd = [singularity_executable(), 'exec', image, libc_path]
out_data = subprocess.check_output(cmd).decode()
ver_line = out_data.split('\n')[0]
m = re.match('^.* version ([0-9.]+)\\.$', ver_line)
Expand Down

0 comments on commit 29a3fc4

Please sign in to comment.