Skip to content

Conversation

prusnak
Copy link
Contributor

@prusnak prusnak commented Mar 13, 2022

For example on Qubes OS one might want to use qubes-gpg-client-wrapper instead

Fixes #24346

@JeremyRand
Copy link
Contributor

Concept ACK. Regarding the lint failure about not quoting the new variable, I am unsure whether this lint failure is actually a problem. It seems to me that some users may wish to pass extra arguments to whatever executable is used in place of gpg; quoting the variable would prevent this use case. Thoughts?

@prusnak
Copy link
Contributor Author

prusnak commented Mar 14, 2022

It seems to me that some users may wish to pass extra arguments to whatever executable is used in place of gpg; quoting the variable would prevent this use case.

If we want to enable passing the extra arguments, we'd need to do the following change, so the check_tools correctly extracts the binary name and checks against that.

- check_tools ${GPG}
+ GPG_ARRAY=($GPG)
+ check_tools "${GPG_ARRAY[0]}"

If we want to disable passing the extra arguments, it's enough to just quote the variable usage, right.

I will wait for resolution which way we want to go and then I'll update the PR.

@JeremyRand
Copy link
Contributor

JeremyRand commented Mar 14, 2022

I have a weak preference for allowing extra arguments, but I do not have any immediate need for it myself, so will defer if anyone else has a good reason not to.

@prusnak prusnak force-pushed the guix-attest-override-gpg branch from a6865b8 to 60aa72f Compare March 14, 2022 13:53
@prusnak
Copy link
Contributor Author

prusnak commented Mar 14, 2022

I have a weak preference for allowing extra arguments

Applied the improvement from #24552 (comment) in e368c03

If there is a consensus we do not want $GPG to contain extra arguments, I will gladly rework the PR

@prusnak prusnak force-pushed the guix-attest-override-gpg branch from 60aa72f to e368c03 Compare March 14, 2022 13:59
@theStack
Copy link
Contributor

Concept ACK

For example on Qubes OS one might want to use qubes-gpg-client-wrapper instead
@prusnak prusnak force-pushed the guix-attest-override-gpg branch from e368c03 to af74e06 Compare March 15, 2022 13:35
@laanwj
Copy link
Member

laanwj commented Apr 4, 2022

Concept and code review ACK af74e06

I think passing extra arguments to gpg is a valid usecase. Though, as of course always with shell nonsense, this interferes with using spaces in filenames. But that's probably not too common (sigh)…

@laanwj laanwj merged commit b307279 into bitcoin:master Apr 6, 2022
@prusnak prusnak deleted the guix-attest-override-gpg branch April 6, 2022 13:31
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Apr 6, 2022
af74e06 guix: make it possible to override gpg binary (Pavol Rusnak)

Pull request description:

  For example on Qubes OS one might want to use qubes-gpg-client-wrapper instead

  Fixes bitcoin#24346

ACKs for top commit:
  laanwj:
    Concept and code review ACK af74e06

Tree-SHA512: 9e56b5fab231f8908fff15c88fe5b356ac4a31a14a27ae2dd3b6e876f32628910a666a4e2da5bf7c5d159de66cf57652c94c81cdc3b1c3d39a23c23e2c77dd03
dekm pushed a commit to unigrid-project/daemon that referenced this pull request Oct 27, 2022
af74e06 guix: make it possible to override gpg binary (Pavol Rusnak)

Pull request description:

  For example on Qubes OS one might want to use qubes-gpg-client-wrapper instead

  Fixes bitcoin#24346

ACKs for top commit:
  laanwj:
    Concept and code review ACK af74e06

Tree-SHA512: 9e56b5fab231f8908fff15c88fe5b356ac4a31a14a27ae2dd3b6e876f32628910a666a4e2da5bf7c5d159de66cf57652c94c81cdc3b1c3d39a23c23e2c77dd03
@bitcoin bitcoin locked and limited conversation to collaborators Apr 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

guix-attest should support custom GPG executable names
5 participants