-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support PCRE2 #13771
Support PCRE2 #13771
Conversation
What we (you, the ROOT team, the users) need to discuss is whether we can deprecate TPRegex altogether, given that std::regex is now (since C++17 is required, as a side effect of kicking out old compilers) guaranteed to be available. Or reimplement it using std:: regex. Thoughts? |
Test Results 10 files 10 suites 2d 4h 27m 22s ⏱️ For more details on these failures, see this check. Results for commit f89fc64. ♻️ This comment has been updated with latest results. |
pcre2 10.40 (as mentioned in #11395) already comes with a pcre2-config.cmake (https://github.com/PCRE2Project/pcre2/blob/pcre2-10.40/cmake/pcre2-config.cmake.in) file. Can that be used instead of adding FindPCRE2.cmake ? |
The packaged pcre2 in Fedora and RHEL/CentOS/Rocky/Alma does not ship the cmake files. They are only create/installed if pcre2 is built using cmake. The RPM for Fedora and RHEL are built using autotools, and therefore do not contain the cmake files. |
Not adding this to the 6.32 milestone, since even Fedora rawhide still has the old pcre for now. |
I wouldn't go into this direction yet. We have a couple of problems with Therefore, provided that it's tested, I'm in favor of merging this PR. I'm adding pcre2 to the CI images, so that we can test it: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing! We can see in the CI that it works:
-- Looking for PCRE
-- Found PCRE2: /usr/include (found version "10.32")
Potential regression: #15986 |
This Pull request:
Makes it possible to use PCRE2 as an alternative to PCRE
Checklist:
This PR fixes #11395