www-apache/mod_security-2.9.7 fails tu build with default USE "-pcre2" with error """ checking for libpcre2 config script... no configure: *** pcre2 library not found. configure: error: pcre2 library is required """ With USE=pcre2 the package builds just fine. Reproducible: Always Steps to Reproduce: 1.update www-apache/mod_security to 2.9.7 2.observe build fail with mentioned error 3.reemerge with USE=pcre2 and build is OK Actual Results: Failed build with -pcer2 USE flag Expected Results: Build OK I will provide more info if needed.
Thank you for the report, please add * the complete build.log as attachment and * a paste of the emerge info as described on https://wiki.gentoo.org/wiki/Attach_the_logs_to_the_bug_ticket Please reopen this ticket (Status:UNCONFIRMED) afterwards.
Do you have dev-libs/libpcre2 installed? Just tested 2.9.7 on ~amd64: [ebuild R ] www-apache/mod_security-2.9.7::gentoo USE="-doc -fuzzyhash -geoip -jit -json -lua -mlogc -pcre2" LUA_SINGLE_TARGET="-lua5-1 -lua5-3" 0 KiB ... checking for libpcre config script... /usr/bin/pcre-config configure: using pcre v8.45 configure: pcre2 not specified; omitting check ... >>> Installing (1 of 1) www-apache/mod_security-2.9.7::gentoo
It's not strictly relevant to this bug, but at this point, we should really hard-require pcre2 rather than giving a choice, but it's ok to offer both initially if you really want if there's a substantial risk of breakage.
(In reply to Sam James from comment #3) > It's not strictly relevant to this bug, but at this point, we should really > hard-require pcre2 rather than giving a choice, but it's ok to offer both > initially if you really want if there's a substantial risk of breakage. Not against it, but 2.9.7 was the first release to add pcre2 support, that's why it was added as optional. We can change it to hard requirement in the next release.