From 12f43380b90bfbc3e0f8b1439bb14145b82e9c05 Mon Sep 17 00:00:00 2001 From: Loïc Pottier <48072795+lpottier@users.noreply.github.com> Date: Thu, 9 Feb 2023 10:24:48 -0800 Subject: rabbitmq-c: fix bug when POLT < 1.14 compilation failed (POPT_ARG_ARGV undeclared) (#35403) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Loïc Pottier --- var/spack/repos/builtin/packages/rabbitmq-c/package.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/rabbitmq-c/package.py b/var/spack/repos/builtin/packages/rabbitmq-c/package.py index 3367673d56..477dfa3c43 100644 --- a/var/spack/repos/builtin/packages/rabbitmq-c/package.py +++ b/var/spack/repos/builtin/packages/rabbitmq-c/package.py @@ -22,10 +22,12 @@ class RabbitmqC(CMakePackage): variant("shared", default=True, description="Build shared library") variant("static", default=True, description="Build static library") variant("doc", default=False, description="Build the documentation") + variant("tools", default=False, description="Build the tools") depends_on("cmake@3.12:", type="build") depends_on("openssl@1.1.1:", when="+ssl", type=("build", "link", "run")) depends_on("doxygen", when="+doc", type="build") + depends_on("popt@1.14:", when="+tools", type=("build", "link", "run")) def cmake_args(self): args = [ @@ -35,5 +37,6 @@ class RabbitmqC(CMakePackage): # Tests can only be built against static libraries self.define_from_variant("BUILD_TESTS", "static"), self.define_from_variant("BUILD_API_DOCS", "doc"), + self.define_from_variant("BUILD_TOOLS", "tools"), ] return args -- cgit v1.2.3-70-g09d2