It looks like libgit2 may support pcre2 instead of pcre1 optionally. Please consider unconditionally switching to pcre2. https://github.com/libgit2/libgit2/blob/734468d6fd92fc5d8a6d15b3573e4a384c391c22/cmake/SelectRegex.cmake#L31
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c176e89191344e0396c6427bf5798739a794af83 commit c176e89191344e0396c6427bf5798739a794af83 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2022-04-11 06:47:34 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2022-04-11 07:41:18 +0000 dev-libs/libgit2: Use libpcre2 Closes: https://bugs.gentoo.org/837731 Signed-off-by: Michał Górny <mgorny@gentoo.org> dev-libs/libgit2/libgit2-1.4.2-r1.ebuild | 71 ++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+)