diff options
author | Vanessasaurus <814322+vsoch@users.noreply.github.com> | 2023-05-29 04:34:07 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-29 12:34:07 +0200 |
commit | 8c97d8ad3f8ad9fa0721c81e79f1f20d01c938db (patch) | |
tree | 767c5a35ca142d0f09e82d44df3bc36970c3a73d /var | |
parent | 26107fe6b216095891ab9696fd64508b59a1cbbf (diff) | |
download | spack-8c97d8ad3f8ad9fa0721c81e79f1f20d01c938db.tar.gz spack-8c97d8ad3f8ad9fa0721c81e79f1f20d01c938db.tar.bz2 spack-8c97d8ad3f8ad9fa0721c81e79f1f20d01c938db.tar.xz spack-8c97d8ad3f8ad9fa0721c81e79f1f20d01c938db.zip |
add flux-security variant to flux-core (#37689)
This will build flux-security separately to have a flux-imp
that can be defined in a flux broker.toml. Note that the user
that wants a multi-user setup is recommended to create a view,
and then a system/broker.toml in flux config directory that
points to it.
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
Co-authored-by: vsoch <vsoch@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/flux-core/package.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/flux-core/package.py b/var/spack/repos/builtin/packages/flux-core/package.py index 70498e94d0..138ac07565 100644 --- a/var/spack/repos/builtin/packages/flux-core/package.py +++ b/var/spack/repos/builtin/packages/flux-core/package.py @@ -115,6 +115,7 @@ class FluxCore(AutotoolsPackage): variant("docs", default=False, description="Build flux manpages and docs") variant("cuda", default=False, description="Build dependencies with support for CUDA") + variant("security", default=False, description="Build with flux-security") # Restrict flux to Linux based platforms where builds are possible. conflicts("platform=darwin", msg="flux-core does not support MacOS based platforms.") @@ -150,6 +151,12 @@ class FluxCore(AutotoolsPackage): depends_on("asciidoc", type="build", when="+docs") depends_on("py-docutils", type="build", when="@0.32.0: +docs") + # Flux security variant + # Note that if you install with this variant, it is + # recommended to create a view and then a broker.toml that + # has the path to flux-imp generated by flux-security + depends_on("flux-security", type="build", when="+security") + # Need autotools when building on master: depends_on("autoconf", type="build", when="@master") depends_on("automake", type="build", when="@master") @@ -243,6 +250,8 @@ class FluxCore(AutotoolsPackage): args = ["--enable-pylint=no"] if "+docs" not in self.spec: args.append("--disable-docs") + if "+security" in self.spec: + args.append("--with-flux-security") return args def flag_handler(self, name, flags): |