summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsimonleary-umass-edu <71396965+simonleary-umass-edu@users.noreply.github.com>2023-02-20 11:39:28 -0500
committerGitHub <noreply@github.com>2023-02-20 17:39:28 +0100
commit712d358f7e213a664288189a7f31ba6e7d6f9573 (patch)
tree9e035f72ce6f6d7d35b195882ddf3f5e41b1f1a2
parente8238fe330f3761a0537232807ce0b32d3535b3e (diff)
downloadspack-712d358f7e213a664288189a7f31ba6e7d6f9573.tar.gz
spack-712d358f7e213a664288189a7f31ba6e7d6f9573.tar.bz2
spack-712d358f7e213a664288189a7f31ba6e7d6f9573.tar.xz
spack-712d358f7e213a664288189a7f31ba6e7d6f9573.zip
apptainer use the --with-suid configure option (#35513)
-rw-r--r--var/spack/repos/builtin/packages/apptainer/package.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/apptainer/package.py b/var/spack/repos/builtin/packages/apptainer/package.py
index a2f47d0d7c..3870c0177d 100644
--- a/var/spack/repos/builtin/packages/apptainer/package.py
+++ b/var/spack/repos/builtin/packages/apptainer/package.py
@@ -45,4 +45,8 @@ class Apptainer(SingularityBase):
# Override config options from SingularityBase
@property
def config_options(self):
- return []
+ spec = self.spec
+ options = []
+ if spec.satisfies("@1.1.0: +suid"):
+ options.append("--with-suid")
+ return options