https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: dev-libs/modsecurity-3.0.8 fails to compile (DASH-SYSTEM). Discovered on: amd64 (internal ref: dash_tinderbox) NOTE: (DASH-SYSTEM) in the summary means that the bug was found on a machine that runs /bin/sh as dash but this bug MAY or MAY NOT BE related to dash.
Created attachment 843635 [details] build.log build log and emerge --info
Created attachment 843637 [details] 1-config.log 1-config.log
Error(s) that match a know pattern in addition to what has been reported in the summary: configure: error: YAJL was explicitly referenced but it was not found configure: error: YAJL was explicitly referenced but it was not found
dash_tinderbox has reproduced this issue with version 3.0.12 - Updating summary.
Can reproduce. modsecurity uses a *lot* of Bash == operators in build/*.m4 files. CONFIG_SHELL must therefore be set to "${BROOT}/bin/bash" as a workaround.
See also https://github.com/owasp-modsecurity/ModSecurity/pull/3359. It removes Bashisms from M4 macros and should enable building ModSecurity on non-Bash systems.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10b7c0f58e44faf7bf70e2f16efe7baef68d74ba commit 10b7c0f58e44faf7bf70e2f16efe7baef68d74ba Author: Zurab Kvachadze <zurabid2016@gmail.com> AuthorDate: 2025-04-14 13:53:44 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2025-05-22 15:58:49 +0000 dev-libs/modsecurity: revbump 3.0.1{3,4}, drop libpcre dep, unbreak POSIX shells The autotool-based build system uses a lot of Bash == comparison operators, which obviously causes breakages on non-Bash POSIX-compliant shells. This commit sets the CONFIG_SHELL environment variable for econf and drops libpcre in favour for libpcre2. Closes: https://bugs.gentoo.org/886539 Closes: https://bugs.gentoo.org/887135 Signed-off-by: Zurab Kvachadze <zurabid2016@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/41592 Closes: https://github.com/gentoo/gentoo/pull/41592 Signed-off-by: Sam James <sam@gentoo.org> dev-libs/modsecurity/modsecurity-3.0.13-r1.ebuild | 71 +++++++++++++++++++++++ dev-libs/modsecurity/modsecurity-3.0.14-r1.ebuild | 71 +++++++++++++++++++++++ 2 files changed, 142 insertions(+)