Skip to content

fix(ci): use gpg-agent loopback instead of custom rpmsign command#4

Merged
moukrea merged 1 commit intomainfrom
fix/rpm-signing-gpg-agent
Mar 19, 2026
Merged

fix(ci): use gpg-agent loopback instead of custom rpmsign command#4
moukrea merged 1 commit intomainfrom
fix/rpm-signing-gpg-agent

Conversation

@moukrea
Copy link
Copy Markdown
Owner

@moukrea moukrea commented Mar 19, 2026

Summary

  • The custom %__gpg_sign_cmd macro from fix(ci): sign individual RPM packages to pass gpgcheck #3 corrupted RPM signature headers, changing the error from "package not signed" to "error opening package"
  • Replaced with gpg-agent loopback pinentry configuration, letting rpmsign use its default signing command
  • Added rpm -K verification step after signing to catch failures before publishing

Changes

  • Configure ~/.gnupg/gpg-agent.conf with allow-loopback-pinentry and restart agent
  • Simplified ~/.rpmmacros to only %_gpg_name (removed broken %__gpg_sign_cmd)
  • Added post-sign verification with rpm -K

The custom %__gpg_sign_cmd macro corrupted RPM signature headers,
causing "error opening package" on install. Replace with gpg-agent
loopback pinentry config and let rpmsign use its default signing
command. Add rpm -K verification step to catch signing failures early.
@moukrea moukrea merged commit 257ef36 into main Mar 19, 2026
6 checks passed
@moukrea moukrea deleted the fix/rpm-signing-gpg-agent branch March 19, 2026 13:57
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.

1 participant