NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.39k stars 14.34k forks source link

Migrate from PCRE to PCRE2 #356387

Open emilazy opened 2 weeks ago

emilazy commented 2 weeks ago

PCRE2 was released in 2015. The original PCRE is end‐of‐life and will not receive further bug fixes. Debian decided to remove it years ago (they called their original‐PCRE package pcre3 for historical reasons), filed mass bug reports against packages still using it, and it has been gone entirely since the release of Bookworm last year. We should follow suit, upgrading packages to PCRE2 where possible and considering dropping obsolete software that won’t get updated to a supported version, especially if it processes untrusted input.

Issues and PRs

SuperSandro2000 commented 4 days ago

We need to be careful with services that have systemd hardening because they can block the PCRE2 jit like eg https://github.com/NixOS/nixpkgs/pull/179444

pluiedev commented 2 days ago

Here's a list of all the packages in pkgs/by-name that still refer to pcre (may not be complete):

This is probably going to be much harder than expected.