Skip to content

configure.ac: Add Wformat-security to Wformat check#899

Closed
bbhtt wants to merge 1 commit intotpm2-software:masterfrom
bbhtt:bbhtt/fix-wfmt-flag
Closed

configure.ac: Add Wformat-security to Wformat check#899
bbhtt wants to merge 1 commit intotpm2-software:masterfrom
bbhtt:bbhtt/fix-wfmt-flag

Conversation

@bbhtt
Copy link

@bbhtt bbhtt commented Jul 8, 2025

Same change as tpm2-software/tpm2-tools@52ac6af

This became fatal with newer automake/autoconf

checking whether byte ordering is bigendian... no
checking whether the C compiler accepts -Wall... yes
checking whether the C compiler accepts -Wextra... yes
checking whether the C compiler accepts -Wformat... yes
checking whether the C compiler accepts -Wformat-security... no
configure: error: Cannot enable -Wformat-security, consider configuring with --disable-hardening

Same change as tpm2-software/tpm2-tools@52ac6af

This became fatal with newer automake/autoconf

```
checking whether byte ordering is bigendian... no
checking whether the C compiler accepts -Wall... yes
checking whether the C compiler accepts -Wextra... yes
checking whether the C compiler accepts -Wformat... yes
checking whether the C compiler accepts -Wformat-security... no
configure: error: Cannot enable -Wformat-security, consider configuring with --disable-hardening
```
@williamcroberts
Copy link
Member

@bbhtt I'll take this, can you add a signed off to your commit and re-push? I'll probably start the RC cycle without this and then I'll merge it if you sign it off in the next week before a release.

williamcroberts added a commit to williamcroberts/tpm2-pkcs11 that referenced this pull request Sep 13, 2025
Without -Wformat for -Wformat-security, gcc will complain:

checking whether the C compiler accepts -Wformat-security... no
configure: error: Cannot enable -Wformat-security, consider configuring with --disable-hardening

Related to: tpm2-software#899

Signed-off-by: Bill Roberts <bill.c.roberts@gmail.com>
@williamcroberts
Copy link
Member

I actually need this now... so moved: #904

@bbhtt
Copy link
Author

bbhtt commented Sep 13, 2025

If the ci here wasn't so broken I'd have seen the dco workflow failing and added it then. The nice thing to do when taking other's patches is to preserve authorship.

@bbhtt bbhtt deleted the bbhtt/fix-wfmt-flag branch September 13, 2025 16:51
@williamcroberts
Copy link
Member

If the ci here wasn't so broken I'd have seen the dco workflow failing and added it then.

The DCO check is it's own thing so it's not even polluted by the failing CI test scripts:

image

The nice thing to do when taking other's patches is to preserve authorship.

I can't sign off the DCO for you, I gave you attribution in the commit message for my follow up. I had no idea how quickly you could turn it around, and couldn't hold up the release any longer, my apologies. I do appreciate your comments back, at least now I know in the future you're pretty quick with responses.

williamcroberts added a commit that referenced this pull request Sep 13, 2025
Without -Wformat for -Wformat-security, gcc will complain:

checking whether the C compiler accepts -Wformat-security... no
configure: error: Cannot enable -Wformat-security, consider configuring with --disable-hardening

Related to: #899

Signed-off-by: Bill Roberts <bill.c.roberts@gmail.com>
@bbhtt
Copy link
Author

bbhtt commented Sep 14, 2025

If you need it fast maybe visit the open PRs in your repo more often. This was sitting here for over 2 months without any review and suddenly you need it "right now" and can't wait a day let alone more than 1 hour meanwhile I was waiting for 2 months...very fair.

A "related to" link to the PR is not attribution.

@williamcroberts
Copy link
Member

If you need it fast maybe visit the open PRs in your repo more often. This was sitting here for over 2 months without any review and suddenly you need it "right now" and can't wait a day let alone more than 1 hour meanwhile I was waiting for 2 months...very fair.

A "related to" link to the PR is not attribution.

Sorry our funding was pulled and we're all keeping the lights on in our spare time. We've made multiple calls to ask for new maintainers to help, and I didn't see you step up. What you didn't see was the person that was patiently working with me for over a year to get what he wants and assisted in getting the release process started and fixing our CI.

Your lack of following our contribution guidelines and missing the DCO is not my problem.

async-smith8845bn added a commit to async-smith8845bn/tpm2-pkcs11 that referenced this pull request Nov 19, 2025
Without -Wformat for -Wformat-security, gcc will complain:

checking whether the C compiler accepts -Wformat-security... no
configure: error: Cannot enable -Wformat-security, consider configuring with --disable-hardening

Related to: tpm2-software/tpm2-pkcs11#899

Signed-off-by: Bill Roberts <bill.c.roberts@gmail.com>
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