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

Use pkg-config to find libxml2, falling back to xml2-config if necessary #2714

Merged
merged 1 commit into from
Oct 14, 2022

Conversation

hughmcmaster
Copy link
Contributor

@hughmcmaster hughmcmaster commented Apr 12, 2022

Debian is taking steps to remove xml2-config in favour of pkg-config. This means ModSecurity will build without libxml2 support by default on Debian, Ubuntu and other distributions tracking Debian packages.

This patch modifies build/libxml.m4 to check for libxml2 via pkg-config, falling back to xml2-config if necessary.

@hughmcmaster hughmcmaster changed the title configure.ac: Use pkg-config to find libxml2 Use pkg-config to find libxml2, falling back to xml2-config if necessary Oct 5, 2022
Debian is taking steps to remove xml2-config in favour of pkg-config.
This means ModSecurity will build without libxml2 support by default
on Debian, Ubuntu and other distributions tracking Debian packages.

This patch modifies build/libxml.m4 to check for libxml2 via
pkg-config, falling back to xml2-config if necessary.
@hughmcmaster
Copy link
Contributor Author

Hi @martinhsv, hoping you can look at this MR soon. Debian goes into freeze in January...

@martinhsv
Copy link
Contributor

Hello @hughmcmaster ,

I wasn't aware of Debian's plan re: xml2-config. Thanks for both raising the issue and submitting the PR.

I'll plan to merge this shortly.

In our other maintained branch (v2/master), it looks to me like the same issue applies in the comparable file (find_xml.m4). Would you be interested in submitting a pull request to update that one as well? (No obligation, of course.)

@hughmcmaster
Copy link
Contributor Author

Thanks, @martinhsv. I'm happy to send a patch for the other branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants