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

Make the signing macros parametric #3476

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

pmatilai
Copy link
Member

It's not any less code, but gives us much better control over how they're called, eliminating the need for global temporary macros for passing what really are command arguments.

No functional change, but paves way for future programmatic switches such as perhaps binary/ascii signatures.

This is of course incompatible with folks who have their own custom %__gpg_sign_cmd from the past, recipes for these have unfortunately commonly floated around the internet as "necessary" for signing. These are double-underscore macros, people messing with those had better know what they're doing.

@pmatilai pmatilai requested a review from a team as a code owner November 28, 2024 11:05
@pmatilai pmatilai requested review from ffesti and removed request for a team November 28, 2024 11:05
@pmatilai
Copy link
Member Author

Eh, completely forgot we do now have a C++ variant for rpmExpandThisMacro() too 🤦 😆
I'll update it to use that instead...

@pmatilai pmatilai marked this pull request as draft November 28, 2024 11:13
@pmatilai pmatilai marked this pull request as ready for review November 28, 2024 11:30
@ffesti
Copy link
Contributor

ffesti commented Nov 28, 2024

Looks good to me. Can you please rebase and then merge?

@pmatilai
Copy link
Member Author

FWIW, the first patch in this series inspired me to whip up #3477, so actually I'd prefer to get that merged first and then rebase this on top.

@ffesti
Copy link
Contributor

ffesti commented Nov 28, 2024

Reviewed and merged #3477.

These have been in this bizarre double-command format for passing
to execve(), but there's really no point. Just make it a regular
command and pass the same argument as the pathname and argv[0].
No functional changes.
It's not any less code, but gives us much better control over how they're
called, eliminating the need for global temporary macros for passing
what really are command arguments.

No functional change, but paves way for future programmatic switches such as
perhaps binary/ascii signatures.

This is of course incompatible with folks who have their own custom
%__gpg_sign_cmd from the past, recipes for these have unfortunately
commonly floated around the internet as "necessary" for signing.
These are double-underscore macros, people messing with those had better
know what they're doing.
@ffesti ffesti merged commit 71e88ec into rpm-software-management:master Nov 28, 2024
1 check 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