Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 887135 - dev-libs/modsecurity-3.0.12 fails to compile (DASH-SYSTEM): configure: error: YAJL was explicitly referenced but it was not found
Summary: dev-libs/modsecurity-3.0.12 fails to compile (DASH-SYSTEM): configure: error:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Tomáš Mózes
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: nonbash
  Show dependency tree
 
Reported: 2022-12-19 09:16 UTC by Agostino Sarubbo
Modified: 2025-05-22 15:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,48.29 KB, text/plain)
2022-12-19 09:16 UTC, Agostino Sarubbo
Details
1-config.log (1-config.log,20.20 KB, text/plain)
2022-12-19 09:16 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-12-19 09:16:19 UTC
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.
Comment 1 Agostino Sarubbo gentoo-dev 2022-12-19 09:16:21 UTC
Created attachment 843635 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-12-19 09:16:22 UTC
Created attachment 843637 [details]
1-config.log

1-config.log
Comment 3 Agostino Sarubbo gentoo-dev 2022-12-19 09:16:23 UTC
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
Comment 4 Agostino Sarubbo gentoo-dev 2024-02-14 08:20:58 UTC
dash_tinderbox has reproduced this issue with version 3.0.12 - Updating summary.
Comment 5 zurabid2016 2025-04-14 13:38:00 UTC
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.
Comment 6 zurabid2016 2025-04-15 17:34:17 UTC
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.
Comment 7 Larry the Git Cow gentoo-dev 2025-05-22 15:59:15 UTC
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(+)