From 712d358f7e213a664288189a7f31ba6e7d6f9573 Mon Sep 17 00:00:00 2001 From: simonleary-umass-edu <71396965+simonleary-umass-edu@users.noreply.github.com> Date: Mon, 20 Feb 2023 11:39:28 -0500 Subject: [PATCH] apptainer use the --with-suid configure option (#35513) --- var/spack/repos/builtin/packages/apptainer/package.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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