Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/libmodsecurity: needs gcc >= 7
@ 2026-11-24 10:35 Frank Vanbever
  2026-11-24 10:35 ` [Buildroot] [PATCH 2/2] package/libmodsecurity: security bump version to 3.0.17 Frank Vanbever
  2026-11-24 11:45 ` [Buildroot] [PATCH 1/2] package/libmodsecurity: needs gcc >= 7 Julien Olivain via buildroot
  0 siblings, 2 replies; 3+ messages in thread
From: Frank Vanbever @ 2026-11-24 10:35 UTC (permalink / raw)
  To: buildroot; +Cc: Frank Vanbever

Since version 3.0.13, libmodsecurity requires a C++17 compiler [1].
With older compilers it fails with:

  configure: error: *** A compiler with support for C++17 language features is required.

gcc 7 is the first version providing C++17 support, so a dependency
on BR2_TOOLCHAIN_GCC_AT_LEAST_7 is required.

[1] https://github.com/owasp-modsecurity/ModSecurity/pull/3079

Signed-off-by: Frank Vanbever <fvb@funkworks.be>
---
 package/libmodsecurity/Config.in    | 6 ++++--
 package/nginx-modsecurity/Config.in | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/package/libmodsecurity/Config.in b/package/libmodsecurity/Config.in
index da14b21669..1abf088f23 100644
--- a/package/libmodsecurity/Config.in
+++ b/package/libmodsecurity/Config.in
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_LIBMODSECURITY
 	bool "libmodsecurity"
 	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # C++17
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	# libmodsecurity embeds several mbedtls source files, causing
 	# various issues when static linking and other dependencies of
@@ -19,6 +20,7 @@ config BR2_PACKAGE_LIBMODSECURITY
 
 	  https://github.com/owasp-modsecurity/ModSecurity
 
-comment "libmodsecurity needs a toolchain w/ C++, threads, dynamic library"
+comment "libmodsecurity needs a toolchain w/ C++, threads, dynamic library, gcc >= 7"
 	depends on !BR2_INSTALL_LIBSTDCPP || \
-		!BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+		!BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
+		!BR2_TOOLCHAIN_GCC_AT_LEAST_7
diff --git a/package/nginx-modsecurity/Config.in b/package/nginx-modsecurity/Config.in
index 94f0ff0a45..130190ecbd 100644
--- a/package/nginx-modsecurity/Config.in
+++ b/package/nginx-modsecurity/Config.in
@@ -2,6 +2,7 @@ config BR2_PACKAGE_NGINX_MODSECURITY
 	bool "nginx-modsecurity"
 	depends on BR2_PACKAGE_NGINX_HTTP
 	depends on BR2_INSTALL_LIBSTDCPP # libmodsecurity
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # libmodsecurity
 	depends on BR2_TOOLCHAIN_HAS_THREADS # libmodsecurity
 	depends on !BR2_STATIC_LIBS # libmodsecurity
 	select BR2_PACKAGE_LIBMODSECURITY
@@ -12,7 +13,8 @@ config BR2_PACKAGE_NGINX_MODSECURITY
 
 	  https://github.com/owasp-modsecurity/ModSecurity-nginx
 
-comment "nginx-modsecurity needs a toolchain w/ C++, threads, dynamic library"
+comment "nginx-modsecurity needs a toolchain w/ C++, threads, dynamic library, gcc >= 7"
 	depends on BR2_PACKAGE_NGINX_HTTP
 	depends on !BR2_INSTALL_LIBSTDCPP || \
-		!BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+		!BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
+		!BR2_TOOLCHAIN_GCC_AT_LEAST_7
-- 
2.53.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-24 11:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 10:35 [Buildroot] [PATCH 1/2] package/libmodsecurity: needs gcc >= 7 Frank Vanbever
2026-11-24 10:35 ` [Buildroot] [PATCH 2/2] package/libmodsecurity: security bump version to 3.0.17 Frank Vanbever
2026-11-24 11:45 ` [Buildroot] [PATCH 1/2] package/libmodsecurity: needs gcc >= 7 Julien Olivain via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox