You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are building modsecurity containers for various architectures. While adding support for pcre2 in newer versions, we found that for some architectures the pcre2 config is not found.
This happens probably because the package in debian is called libpcre2-8 (see package dev files list), and here are the results of installing and querying in the nginx default debian based container:
root@04e33073eeea:/# apt-get install libpcre2-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
libpcre2-16-0 libpcre2-32-0 libpcre2-8-0 libpcre2-posix2
The following NEW packages will be installed:
libpcre2-16-0 libpcre2-32-0 libpcre2-dev libpcre2-posix2
The following packages will be upgraded:
libpcre2-8-0
1 upgraded, 4 newly installed, 0 to remove and 21 not upgraded.
Need to get 1483 kB of archives.
After this operation, 3997 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://deb.debian.org/debian bullseye/main amd64 libpcre2-8-0 amd64 10.36-2+deb11u1 [248 kB]
Get:2 http://deb.debian.org/debian bullseye/main amd64 libpcre2-16-0 amd64 10.36-2+deb11u1 [232 kB]
Get:3 http://deb.debian.org/debian bullseye/main amd64 libpcre2-32-0 amd64 10.36-2+deb11u1 [220 kB]
Get:4 http://deb.debian.org/debian bullseye/main amd64 libpcre2-posix2 amd64 10.36-2+deb11u1 [49.1 kB]
Get:5 http://deb.debian.org/debian bullseye/main amd64 libpcre2-dev amd64 10.36-2+deb11u1 [733 kB]
Fetched 1483 kB in 0s (8869 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 20501 files and directories currently installed.)
Preparing to unpack .../libpcre2-8-0_10.36-2+deb11u1_amd64.deb ...
Unpacking libpcre2-8-0:amd64 (10.36-2+deb11u1) over (10.36-2) ...
Setting up libpcre2-8-0:amd64 (10.36-2+deb11u1) ...
Selecting previously unselected package libpcre2-16-0:amd64.
(Reading database ... 20501 files and directories currently installed.)
Preparing to unpack .../libpcre2-16-0_10.36-2+deb11u1_amd64.deb ...
Unpacking libpcre2-16-0:amd64 (10.36-2+deb11u1) ...
Selecting previously unselected package libpcre2-32-0:amd64.
Preparing to unpack .../libpcre2-32-0_10.36-2+deb11u1_amd64.deb ...
Unpacking libpcre2-32-0:amd64 (10.36-2+deb11u1) ...
Selecting previously unselected package libpcre2-posix2:amd64.
Preparing to unpack .../libpcre2-posix2_10.36-2+deb11u1_amd64.deb ...
Unpacking libpcre2-posix2:amd64 (10.36-2+deb11u1) ...
Selecting previously unselected package libpcre2-dev:amd64.
Preparing to unpack .../libpcre2-dev_10.36-2+deb11u1_amd64.deb ...
Unpacking libpcre2-dev:amd64 (10.36-2+deb11u1) ...
Setting up libpcre2-16-0:amd64 (10.36-2+deb11u1) ...
Setting up libpcre2-32-0:amd64 (10.36-2+deb11u1) ...
Setting up libpcre2-posix2:amd64 (10.36-2+deb11u1) ...
Setting up libpcre2-dev:amd64 (10.36-2+deb11u1) ...
Processing triggers for libc-bin (2.31-13+deb11u3) ...
root@04e33073eeea:/# pkg-config --list-all | grep pcre
libpcre libpcre - PCRE - Perl compatible regular expressions C library with 8 bit character support
libpcre16 libpcre16 - PCRE - Perl compatible regular expressions C library with 16 bit character support
libpcre2-16 libpcre2-16 - PCRE2 - Perl compatible regular expressions C library (2nd API) with 16 bit character support
libpcre2-32 libpcre2-32 - PCRE2 - Perl compatible regular expressions C library (2nd API) with 32 bit character support
libpcre2-8 libpcre2-8 - PCRE2 - Perl compatible regular expressions C library (2nd API) with 8 bit character support
libpcre2-posix libpcre2-posix - Posix compatible interface to libpcre2-8
libpcre32 libpcre32 - PCRE - Perl compatible regular expressions C library with 32 bit character support
libpcrecpp libpcrecpp - PCRECPP - C++ wrapper for PCRE
libpcreposix libpcreposix - PCREPosix - Posix compatible interface to libpcre
root@04e33073eeea:/# pkg-config --exists libpcre2-8
root@04e33073eeea:/# echo $?
0
root@04e33073eeea:/# pkg-config libpcre2-8 --modversion
10.36
So maybe just adding libpcre2-8 to the list here will do.
It's easy to patch, but I can send a PR if interested.
The text was updated successfully, but these errors were encountered:
Describe the bug
We are building modsecurity containers for various architectures. While adding support for pcre2 in newer versions, we found that for some architectures the pcre2 config is not found.
Example builds failing here: linux/arm64/v8.
This happens probably because the package in debian is called
libpcre2-8
(see package dev files list), and here are the results of installing and querying in the nginx default debian based container:So maybe just adding
libpcre2-8
to the list here will do.It's easy to patch, but I can send a PR if interested.
The text was updated successfully, but these errors were encountered: