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

Do not overwrite CPPFLAGS #1296

Merged
merged 1 commit into from
Jul 5, 2024
Merged

Conversation

mbiebl
Copy link
Contributor

@mbiebl mbiebl commented Jul 4, 2024

Use AM_CPPFLAGS instead of ovewriting CPPFLAGS.
CPPFLAGS is a user variable reserved for local modifications. See
https://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html

@StorageGhoul
Copy link

Can one of the admins verify this patch?

@mbiebl
Copy link
Contributor Author

mbiebl commented Jul 4, 2024

In Debian we pass certain hardening build flags to all packages and I was wondering why that failed for udisks:
https://salsa.debian.org/utopia-team/udisks2/-/jobs/5927192

Turns out that the udisks build system uses CPPFLAGS whereas it should use AM_CPPFLAGS

Use AM_CPPFLAGS instead of ovewriting CPPFLAGS.
CPPFLAGS is a user variable reserved for local modifications.
See
https://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html
@vojtechtrefny
Copy link
Member

Jenkins, ok to test.

Copy link
Member

@vojtechtrefny vojtechtrefny left a comment

Choose a reason for hiding this comment

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

LGTM Thank you

Copy link
Member

@tbzatek tbzatek left a comment

Choose a reason for hiding this comment

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

Interesting, there are lots of relics in the Makefiles. Thanks for spotting this!

@tbzatek tbzatek merged commit f2a7305 into storaged-project:master Jul 5, 2024
16 of 21 checks passed
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.

4 participants