From 60ecd0374e1fbecccf56221a085f74f994b144a8 Mon Sep 17 00:00:00 2001 From: Erik Heeren Date: Fri, 25 Aug 2023 09:04:06 +0200 Subject: [PATCH] arrow: explicitly disable RE2 and UTF8PROC flags when not in dependencies (#35353) Co-authored-by: Harmen Stoppels --- var/spack/repos/builtin/packages/arrow/package.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/var/spack/repos/builtin/packages/arrow/package.py b/var/spack/repos/builtin/packages/arrow/package.py index 23d87e3980..8a499fbec2 100644 --- a/var/spack/repos/builtin/packages/arrow/package.py +++ b/var/spack/repos/builtin/packages/arrow/package.py @@ -148,6 +148,11 @@ def cmake_args(self): args.append(self.define_from_variant("ARROW_WITH_ZLIB", "zlib")) args.append(self.define_from_variant("ARROW_WITH_ZSTD", "zstd")) + if not self.spec.dependencies("re2"): + args.append(self.define("ARROW_WITH_RE2", False)) + if not self.spec.dependencies("utf8proc"): + args.append(self.define("ARROW_WITH_UTF8PROC", False)) + if self.spec.satisfies("@:8"): args.extend( [