From 6edd77a51a748e435d0d7fc4b1d3b89b54004dbe Mon Sep 17 00:00:00 2001
From: bpisch <pisch.beni@gmail.com>
Date: Tue, 16 Apr 2024 10:00:23 +0200
Subject: [PATCH] Add dependencies and a basic build script to postgresql16
 recipe, and update the top status line.

---
 recipes/wip/db/postgresql16/recipe.toml | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/recipes/wip/db/postgresql16/recipe.toml b/recipes/wip/db/postgresql16/recipe.toml
index ccb5ddffa..b439b54b2 100644
--- a/recipes/wip/db/postgresql16/recipe.toml
+++ b/recipes/wip/db/postgresql16/recipe.toml
@@ -1,5 +1,18 @@
-#TODO compilation error
+#TODO waiting on sigjmp_buf and related POSIX functions in relibc
 [source]
 tar = "https://ftp.postgresql.org/pub/source/v16.0/postgresql-16.0.tar.bz2"
 [build]
-template = "configure"
+template = "custom"
+dependencies = [
+    "readline",
+    "zlib",
+]
+script = """
+cp "${COOKBOOK_SOURCE}/src/backend/utils/errcodes.h" "${COOKBOOK_SOURCE}/src/include/utils/errcodes.h"
+COOKBOOK_CONFIGURE_FLAGS+=(
+    --without-icu
+    --without-readline
+    --with-template=redox
+)
+cookbook_configure
+"""
-- 
GitLab