Skip to content

Conversation

airween
Copy link
Member

@airween airween commented Aug 25, 2025

what

This PR fixes the error that ./build.sh gives namely the src/Makefile.am contains non-POSIX variables.

why

GNU automake does not support wildcard, but the project uses that in src/Makefile.am. There is an open issue about this so we should fix that.

references

#3435
https://www.gnu.org/software/automake/manual/html_node/Wildcards.html

fix

As the documentation says above GNU automake expects a programmer should list the files instead of using wildcard, I used a hack: in build.sh I collect all header files in previously mentioned directories, and generate a file: src/headers.mk. This file is included in src/Makefile.am. The file is generated all cases when user runs ./build.sh. The generated file is not part of the source tree - see .gitignore changes in this PR.

Copy link
Contributor

@fzipi fzipi left a comment

Choose a reason for hiding this comment

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

Typo

Co-authored-by: Felipe Zipitría <[email protected]>
@airween airween requested a review from fzipi August 25, 2025 14:13
Copy link

@fzipi
Copy link
Contributor

fzipi commented Aug 25, 2025

@airween
Copy link
Member Author

airween commented Aug 25, 2025

These are part of ModSecurity's API (the header files which will be installed under /usr/include/modsecurity) and I think make knows from these lines what headers need to install.

I'm not sure I understand your question here, but yes, these lines are problematic. See the diff of the mentioned file. That's the point: eliminate the wildcard macro.

@airween airween merged commit 52c1d48 into owasp-modsecurity:v3/master Aug 29, 2025
50 checks passed
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants