Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 902063 - www-apache/mod_security-2.9.7 fails to build with -pcre2 USE
Summary: www-apache/mod_security-2.9.7 fails to build with -pcre2 USE
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-18 16:12 UTC by samurai.no.dojo
Modified: 2023-03-20 08:35 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description samurai.no.dojo 2023-03-18 16:12:52 UTC
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.
Comment 1 Jonas Stein gentoo-dev 2023-03-19 22:48:03 UTC
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.
Comment 2 Tomáš Mózes 2023-03-20 06:16:59 UTC
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
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-20 06:27:29 UTC
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.
Comment 4 Tomáš Mózes 2023-03-20 08:35:47 UTC
(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.