summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Becker <101113822+EbiArnie@users.noreply.github.com>2024-10-02 18:08:32 +0100
committerGitHub <noreply@github.com>2024-10-02 10:08:32 -0700
commitf8f13ad8aae485836cd74057c3bd3dc232fea07d (patch)
treebab2725aa36a112a1ccf6802545d2bfbfe14fcf3
parentfcf72201d31b6bf2f6d464b05fe8de58b0bc19ac (diff)
downloadspack-f8f13ad8aae485836cd74057c3bd3dc232fea07d.tar.gz
spack-f8f13ad8aae485836cd74057c3bd3dc232fea07d.tar.bz2
spack-f8f13ad8aae485836cd74057c3bd3dc232fea07d.tar.xz
spack-f8f13ad8aae485836cd74057c3bd3dc232fea07d.zip
postgresql: Add icu4c dependency for versions 16+ (#46691)
* postgresql: Add icu4c dependency for versions 16+ * postgresql: make ICU an option * postgresql: ICU variant only needed for v16+ * postgresql: Check for negated option Check for negated option instead of negating the test Co-authored-by: Alec Scott <hi@alecbcs.com> --------- Co-authored-by: Alec Scott <hi@alecbcs.com>
-rw-r--r--var/spack/repos/builtin/packages/postgresql/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/postgresql/package.py b/var/spack/repos/builtin/packages/postgresql/package.py
index c2256db1a8..3dafdc5ecd 100644
--- a/var/spack/repos/builtin/packages/postgresql/package.py
+++ b/var/spack/repos/builtin/packages/postgresql/package.py
@@ -64,7 +64,9 @@ class Postgresql(AutotoolsPackage):
variant("tcl", default=False, description="Enable Tcl bindings.")
variant("gssapi", default=False, description="Build with GSSAPI functionality.")
variant("xml", default=False, description="Build with XML support.")
+ variant("icu", default=True, description="Build with ICU support.", when="@16:")
+ depends_on("icu4c", when="@16: +icu")
depends_on("readline", when="lineedit=readline")
depends_on("libedit", when="lineedit=libedit")
depends_on("openssl")
@@ -103,6 +105,9 @@ class Postgresql(AutotoolsPackage):
if spec.satisfies("+xml"):
args.append("--with-libxml")
+ if spec.satisfies("~icu"):
+ args.append("--without-icu")
+
return args
def install(self, spec, prefix):