Skip to content

Commit 9df7fe7

Browse files
authored
Merge pull request #426 from coreruleset/fix/modsec3-arch-detection
fix: patch msc_find_lib.m4 for multiarch library detection
2 parents dbcb017 + 5fd0a41 commit 9df7fe7

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

nginx/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ RUN set -eux; \
5151
git clone https://github.com/owasp-modsecurity/ModSecurity --branch "v${MODSEC3_VERSION}" --depth 1 --recursive; \
5252
cd ModSecurity; \
5353
ARCH=$(gcc -print-multiarch); \
54-
sed -ie "s/i386-linux-gnu/${ARCH}/g" build/ssdeep.m4; \
55-
sed -ie "s/i386-linux-gnu/${ARCH}/g" build/pcre2.m4; \
54+
sed -ie "s/i386-linux-gnu/${ARCH}/g" build/msc_find_lib.m4; \
5655
./build.sh; \
5756
./configure ${MODSEC3_FLAGS}; \
5857
make -j$(nproc) install; \

nginx/Dockerfile-alpine

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ RUN set -eux; \
4848
git clone https://github.com/owasp-modsecurity/ModSecurity --branch "v${MODSEC3_VERSION}" --depth 1 --recursive; \
4949
cd ModSecurity; \
5050
ARCH=$(gcc -print-multiarch); \
51-
sed -ie "s/i386-linux-gnu/${ARCH}/g" build/ssdeep.m4; \
52-
sed -ie "s/i386-linux-gnu/${ARCH}/g" build/pcre2.m4; \
51+
sed -ie "s/i386-linux-gnu/${ARCH}/g" build/msc_find_lib.m4; \
5352
./build.sh; \
5453
./configure ${MODSEC3_FLAGS}; \
5554
make -j$(nproc) install; \

0 commit comments

Comments
 (0)