From 8c97d8ad3f8ad9fa0721c81e79f1f20d01c938db Mon Sep 17 00:00:00 2001 From: Vanessasaurus <814322+vsoch@users.noreply.github.com> Date: Mon, 29 May 2023 04:34:07 -0600 Subject: 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 Co-authored-by: vsoch --- var/spack/repos/builtin/packages/flux-core/package.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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): -- cgit v1.2.3-60-g2f50