Please port to pcre2
The old pcre library is abandoned and phased out in Linux distributions. Please port openscap to pcre2.
Hi @bgermann. Thanks for opening this issue. Do you know some specific Linux distribution that phased out pcre or plans to do so? For example Fedora which is bleed edge still has it. Knowing this would help us identify the priority or time schedule for the port.
See https://bugs.debian.org/1000008
It's worth noticing that PCRE2 handles expressions in a bit different way, and even the patterns validation/compilation is a bit different (https://pcre.org/current/doc/html/pcre2.html). It could be wise to have an option for downstream maintainers of which library to choose.
Fedora is also looking at deprecating and removing pcre in favor of pcre2, and with Amazon Linux 2022, openscap is one of the last packages (along with grep and zsh) that still needs pcre.
We are on it.
Let me know if we can be of any help!
Fedora has started a discussion on this on Friday: https://lists.fedoraproject.org/archives/list/[email protected]/thread/K3BUC6T5VIG7LXOV4RVFO7IUPE2LGA2J/
This is also being tracked in https://bugzilla.redhat.com/show_bug.cgi?id=2128342
Please note that RHEL 10 is also planning on dropping support for classic pcre.
We are going to switch to PCRE2 in upstream and Rawhide before Oct 2023.
Closed by #2015.
Release: https://github.com/OpenSCAP/openscap/tree/1.3.9