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( [