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

Replace xml2-config, pcre-config with pkg-config. #2014

Closed
wants to merge 1 commit into from
Closed

Replace xml2-config, pcre-config with pkg-config. #2014

wants to merge 1 commit into from

Conversation

chuckwolber
Copy link
Contributor

Yocto deprecates xml2-config and pcre-config for pkg-config. As pkg-config is
commonly found (and is used in other parts of the modsecurity v3), this change
should be compatible with existing build environments.

This addresses issue #2013 .

@chuckwolber
Copy link
Contributor Author

Looks like there are some test failures. make check seems to go through the motions in my own environment, but does not appear to run any actual tests:

============================================================================
Testsuite summary for modsecurity 3.0
============================================================================
# TOTAL: 0
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================

I suspect I am missing a few environment tools, but I have not dug too deeply into the details. In any case, I am happy to update the patch if I can get some guidance on why the tests are failing. I also do not spend much time working with autotools, so it is definitely possible that I missed something obvious.

@victorhora victorhora self-assigned this Feb 2, 2019
@victorhora victorhora self-requested a review February 2, 2019 01:57
@victorhora victorhora added enhancement 3.x Related to ModSecurity version 3.x labels Feb 2, 2019
@victorhora victorhora added this to the v3.0.4 milestone Feb 2, 2019
@zimmerle zimmerle requested review from zimmerle and removed request for victorhora February 12, 2019 11:50
@zimmerle zimmerle assigned zimmerle and unassigned victorhora Feb 12, 2019
@zimmerle
Copy link
Contributor

Hi @chuckwolber,

There is this flag that is manually added called: "-DWITH_LIBXML2". This flag tells ModSecurity to use the libxml during the compilation. It seems like you are missing this flag in your patch.

About your tests not being executed, it is likely that you are missing the yajl during your compilation/configuration. Without JSON ModSecurity is not able to run any test.

Yocto deprecates xml2-config and pcre-config for pkg-config. As pkg-config is
commonly found (and is used in other parts of the modsecurity v3), this change
should be compatible with existing build environments.
@chuckwolber
Copy link
Contributor Author

Updated patch to include "-DWITH_LIBXML2" and it is still failing several test cases. Any guidance you have would be appreciated.

@zimmerle
Copy link
Contributor

zimmerle commented Jul 9, 2019

Hi @chuckwolber,

It seems that -D WITH_LIBXML2 was put in the wrong place. Look at here. Also, all the test that was failing is due to the absence of XML. By fixing that XML, is likely to have all test passing.

@zimmerle
Copy link
Contributor

I am closing this as the review comments are still open for a while now. Feel free to re-open whenever it is possible to work on it again.

@zimmerle zimmerle closed this Nov 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Related to ModSecurity version 3.x enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants