8000 fix: work around configure issue with GCC 14+ by theseion · Pull Request #351 · coreruleset/modsecurity-crs-docker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: work around configure issue with GCC 14+ #351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion nginx/Dockerfile-alpine
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ RUN set -eux; \
make -j$(nproc) install; \
strip /usr/local/modsecurity/lib/lib*.so*

# Build modules
# Build modules
# Note the `sed` line. It patches the configure test for ModSecurity-nginx
# so that it works with GCC 14+.
# Once https://github.com/owasp-modsecurity/ModSecurity-nginx/pull/275 has
# been released, this workaround can be removed again.
RUN set -eux; \
modules=""; \
set -- ${NGINX_DYNAMIC_MODULES}; \
Expand All @@ -66,6 +70,7 @@ RUN set -eux; \
git clone -b "${version}" --depth 1 "https://github.com/${owner}/${name}.git"; \
modules="${modules} --add-dynamic-module=../${name}"; \
done; \
sed -iE "s/ngx_feature_test='printf(\"hello\");'/ngx_feature_test='msc_init();'/" ModSecurity-nginx/config; \
curl -sSL "https://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz" -o nginx-${NGINX_VERSION}.tar.gz; \
tar -xzf nginx-${NGINX_VERSION}.tar.gz; \
cd ./nginx-${NGINX_VERSION}; \
Expand Down
Loading
0