kumquat-buildroot/package/libmodsecurity/0001-Fail-when-CANONICAL_HOST-cannot-be-determined.patch
Frank Vanbever d9205b4da5 package/libmodsecurity: new package
The dependency on !BR2_STATIC_LIBS is due to missing Libs.private in the
libmodconfig pkg-config file making builds that statically link against
libmodsecurity fail.

Lua is disabled due to using the host libraries.

Yajl is disabled as enabling it forces the tests to be built. These tests have a
hard dependency on libmodsecurity.a which is not built when --disable-static is
used in the configuration. There is no flag to disable these tests.

Signed-off-by: Frank Vanbever <frank.vanbever@essensium.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2020-01-30 11:26:05 +01:00

32 lines
795 B
Diff

From 0832208360aab69fbaec76225db67801840a33fe Mon Sep 17 00:00:00 2001
From: Frank Vanbever <frank.vanbever@essensium.com>
Date: Fri, 10 Jan 2020 11:14:43 +0100
Subject: [PATCH] Fail when CANONICAL_HOST cannot be determined
When the CANONICAL_HOST is unknown the configure script exits
with exit code 0 even though no makefile was produced.
Upstream: https://github.com/SpiderLabs/ModSecurity/pull/2235
Signed-off-by: Frank Vanbever <frank.vanbever@essensium.com>
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 95e48843..5e6971f4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -193,7 +193,7 @@ case $host in
;;
*)
echo "Unknown CANONICAL_HOST $host"
- exit
+ exit 1
;;
esac
--
2.20.1