clevis: update to 23#61296
Conversation
There was a problem hiding this comment.
- Set
b_ndebug=falsebecause Clevis 23'stest-token-to-jweusesassert(). With Void's defaultb_ndebug=true,NDEBUGis defined, the assertions are compiled out, and the test fails to build under-Werrordue to unused variables.
Wouldn't it be better to fix the patch instead or disable -Werror?
Thanks, fixed in a follow-up commit. I dropped b_ndebug=false and added a patch for test-token-to-jwe instead. The test relied on assert(), so with NDEBUG enabled the assertions were compiled out and the variables became unused under -Werror. The patch replaces assert() with an explicit CHECK() helper so the test still works with the default build flags. |
|
Hi @Duncaen, I think the previous review comments should be addressed now. Could you take another look when you have time? |
|
Looks ok, commits need to be squashed and it would probably be good if @mmdbalkhi and some others tired it. |
|
LGTM |
|
Squashed the commits into one. Thanks for the review and testing. |
Testing the changes
Local build testing
Additional testing:
clevisto 23.systemd-reply-passwordat build time on non-systemd systemschmodin the dracut module for the password unlocker scriptsSetb_ndebug=falsebecause Clevis 23'stest-token-to-jweusesassert(). With Void's defaultb_ndebug=true,NDEBUGis defined, the assertions are compiled out, and the test fails to build under-Werrordue to unused variables.test-token-to-jweto avoid usingassert(). With Void's defaultb_ndebug=true,NDEBUG is defined, soassert()is compiled out and the test fails to build under-Werrordue to unused variables. The patch uses an explicitCHECK()helper instead.chmod: command not foundwarning is gone.