Skip to content

Fix modsign macro to fail build on signing errors#219

Merged
anfimovdm merged 2 commits intoAlmaLinux:masterfrom
andrewlukoshko:master
Mar 30, 2026
Merged

Fix modsign macro to fail build on signing errors#219
anfimovdm merged 2 commits intoAlmaLinux:masterfrom
andrewlukoshko:master

Conversation

@andrewlukoshko
Copy link
Copy Markdown
Member

Replace find -exec with xargs in __brp_kmod_sign so that a non-zero exit from modsign (e.g. unknown OS returning HTTP 400) propagates and aborts the RPM build instead of silently packaging unsigned modules.

Replace find -exec with xargs in __brp_kmod_sign so that a non-zero
exit from modsign (e.g. unknown OS returning HTTP 400) propagates and
aborts the RPM build instead of silently packaging unsigned modules.
Replace find -print -exec rm -f {} with find -delete to avoid
forking rm for each file.
@anfimovdm anfimovdm merged commit 9a74b4c into AlmaLinux:master Mar 30, 2026
2 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.

2 participants