openscap icon indicating copy to clipboard operation
openscap copied to clipboard

Please port to pcre2

Open bgermann opened this issue 3 years ago • 8 comments

The old pcre library is abandoned and phased out in Linux distributions. Please port openscap to pcre2.

bgermann avatar Jul 14 '22 16:07 bgermann

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.

jan-cerny avatar Jul 15 '22 14:07 jan-cerny

See https://bugs.debian.org/1000008

bgermann avatar Jul 15 '22 22:07 bgermann

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.

evgenyz avatar Jul 19 '22 11:07 evgenyz

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.

stewartsmith avatar Jul 23 '22 19:07 stewartsmith

We are on it.

evgenyz avatar Jul 23 '22 21:07 evgenyz

Let me know if we can be of any help!

stewartsmith avatar Jul 23 '22 21:07 stewartsmith

Fedora has started a discussion on this on Friday: https://lists.fedoraproject.org/archives/list/[email protected]/thread/K3BUC6T5VIG7LXOV4RVFO7IUPE2LGA2J/

jan-cerny avatar Jul 25 '22 09:07 jan-cerny

This is also being tracked in https://bugzilla.redhat.com/show_bug.cgi?id=2128342

jan-cerny avatar Sep 21 '22 07:09 jan-cerny

Please note that RHEL 10 is also planning on dropping support for classic pcre.

yselkowitz avatar Jul 11 '23 14:07 yselkowitz

We are going to switch to PCRE2 in upstream and Rawhide before Oct 2023.

evgenyz avatar Jul 11 '23 14:07 evgenyz

Closed by #2015.

evgenyz avatar Sep 05 '23 12:09 evgenyz

Release: https://github.com/OpenSCAP/openscap/tree/1.3.9

evgenyz avatar Sep 06 '23 14:09 evgenyz