singularityce: fix after no spaces in Executable allowed (#39553)

This commit is contained in:
Wouter Deconinck 2023-08-21 12:43:11 -05:00 committed by GitHub
parent 696d4a1b85
commit ed65532e27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,14 +79,14 @@ def config_options(self):
# Hijack the edit stage to run mconfig.
def edit(self, spec, prefix):
with working_dir(self.build_directory):
confstring = "./mconfig --prefix=%s" % prefix
confstring += " " + " ".join(self.config_options)
_config_options = ["--prefix=%s" % prefix]
_config_options += self.config_options
if "~suid" in spec:
confstring += " --without-suid"
_config_options += " --without-suid"
if "~network" in spec:
confstring += " --without-network"
configure = Executable(confstring)
configure()
_config_options += " --without-network"
configure = Executable("./mconfig")
configure(*_config_options)
# Set these for use by MakefilePackage's default build/install methods.
build_targets = ["-C", "builddir", "parallel=False"]