From 0b6e6c5d13f10db73f29f3d408b9cf8a697b605b Mon Sep 17 00:00:00 2001
From: Bendeguz Pisch <pisch.beni@gmail.com>
Date: Sun, 24 Mar 2024 17:39:51 +0000
Subject: [PATCH] APR recipe update

---
 recipes/wip/dev/apr/recipe.toml | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/recipes/wip/dev/apr/recipe.toml b/recipes/wip/dev/apr/recipe.toml
index 13ce6850c..c7d60c60b 100644
--- a/recipes/wip/dev/apr/recipe.toml
+++ b/recipes/wip/dev/apr/recipe.toml
@@ -1,5 +1,21 @@
-#TODO compilation error
+#TODO compiled but not tested
+#NOTE Please do not remove expat dependency -- while it's not direct, apr-util build breaks if apr does not have it.
+
 [source]
 tar = "https://dlcdn.apache.org//apr/apr-1.7.4.tar.bz2"
 [build]
-template = "configure"
+template = "custom"
+dependencies = [
+    "expat",
+]
+script = """
+COOKBOOK_CONFIGURE_FLAGS+=(
+    ac_cv_file__dev_zero=yes
+    apr_cv_process_shared_works=yes
+    apr_cv_mutex_robust_shared=no
+    apr_cv_tcp_nodelay_with_cork=yes
+)
+cookbook_configure
+"""
+
+
-- 
GitLab