Page MenuHomeVyOS Platform

Use PCRE2 in validation utilities
Closed, ResolvedPublic

Description

Our OCaml libs and 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.

Details

Version
-
Is it a breaking change?
Perfectly compatible
Issue type
Internal change (not visible to end users)

Event Timeline

dmbaturin triaged this task as Normal priority.

With the above merged, the following update will be needed for successful builds:
https://github.com/vyos/libvyosconfig/pull/37
Following that merge, the corresponding update of commit hash for vyos-1x will be required.

Viacheslav moved this task from Need Triage to Completed on the VyOS Rolling board.
Viacheslav moved this task from Open to Finished on the VyOS 1.5 Circinus (1.5-stream-2025-Q3) board.