Skip to content
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

Migrate to PCRE2 #5391

Merged
merged 2 commits into from
Dec 12, 2023
Merged

Migrate to PCRE2 #5391

merged 2 commits into from
Dec 12, 2023

Conversation

vpodzime
Copy link
Contributor

@vpodzime vpodzime commented Dec 6, 2023

PCRE has been deprecated for long enough.

Ticket: ENT-10629
Changelog: CFEngine now uses PCRE2 for regular expressions

Merge together:
#5391
cfengine/buildscripts#1343
https://github.com/cfengine/enterprise/pull/779
https://github.com/cfengine/nova/pull/2160

@cf-bottom
Copy link

Thank you for submitting a pull request! Maybe @craigcomstock can review this?

@vpodzime vpodzime force-pushed the master-pcre2 branch 3 times, most recently from e43e6ce to af87080 Compare December 7, 2023 15:08
Copy link
Contributor

@craigcomstock craigcomstock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good :)

cf-execd/cf-execd-runner.c Outdated Show resolved Hide resolved
cf-execd/exec-config.c Show resolved Hide resolved
PCRE has been deprecated for long enough.

Ticket: ENT-10629
Changelog: CFEngine now uses PCRE2 for regular expressions
@vpodzime
Copy link
Contributor Author

vpodzime commented Dec 7, 2023

@cf-bottom jenkins, please

@cfengine cfengine deleted a comment from cf-bottom Dec 8, 2023
@cf-bottom
Copy link

@vpodzime
Copy link
Contributor Author

vpodzime commented Dec 8, 2023

@cf-bottom jenkins with exotics, please

@cf-bottom
Copy link

@vpodzime
Copy link
Contributor Author

Build with the Regex type (no tests): Build Status

@vpodzime
Copy link
Contributor Author

Alright, I triggered a build:

Build Status

(with exotics)

Unrelated failures only.

Makes things nicer than using the PCRE2's `pcre2_code` type
directly as it provides at least a little bit of abstraction.

Introduced in NorthernTechHQ/libntech@8b678ccbc7010.

Ticket: ENT-10629
Changelog: None
Copy link
Contributor

@larsewi larsewi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@vpodzime vpodzime merged commit d75fc4f into cfengine:master Dec 12, 2023
11 of 12 checks passed
libpromises/matching.c Show resolved Hide resolved
vpodzime added a commit to vpodzime/oss-fuzz that referenced this pull request Dec 13, 2023
Since cfengine/core#5391,
fuzzing CFEngine requires PCRE2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants