validators: T7450: use PCRE2 instead of the outdated original PCRE #33
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change summary
Value validation utilities currently use the pcre OCaml package. That package is based on the original PCRE library. Its latest release 8.45 is the last release and the original implementation is now declared EOL. That package is named libpcre3 in Debian, for some reason.
PCRE maintainers made a new release line called PCRE2 that has now replaced the original. Debian Trixie no longer includes the original implementation, only PCRE2. The package is called libpcre2. Yes, you read it right: libpcre2 is newer than libpcre3.
There are already OCaml bindings for PCRE2 — they are API-compatible, just use a different module name, so we only need to update those names and dependencies to make it work.
I also removed the build dependency from
debian/control— that file doesn't list actual build dependencies like the OCaml toolchain anyway, so it's no use keeping libpcre there.libpcre2 does exist in Debian Bookworm, so we can backport this change to 1.5/Circinus and possibly to 1.4/Sagitta.
Types of changes
Related Task(s)
Related PR(s)
Checklist: