brew installing one, specific formula (not cask) and not every time you run brew? If it's a general brew problem please file this issue at https://github.com/Homebrew/brew/issues/new. If it's a brew cask problem please file this issue at https://github.com/Homebrew/caskroom/homebrew-cask/newbrew update and retried your prior step?brew doctor, fixed all issues and retried your prior step?brew gist-logs <formula> (where <formula> is the name of the formula that failed) and included the output link?brew gist-logs didn't work: ran brew config and brew doctor and included their output with your issue?Please note we will close your issue without comment if you delete or do not fill out the issue checklist and provide ALL the requested information.
To help us debug your issue please explain:
Decrypt text with gpg2 -d.
cat password.txt | base64 --decode | gpg2 -d
gpg: encrypted with 2048-bit RSA key, ID CBD2E04C36A72E45, created 2017-05-13
"Oli Lalonde <[email protected]>"
gpg: public key decryption failed: Inappropriate ioctl for device
gpg: decryption failed: No secret key
Get the decrypted text
brew install commands)brew install gnupg2
cat encrypted-text.txt | base64 --decode | gpg2 -d
This workaround fixed the problem: https://github.com/IJHack/QtPass/issues/156#issuecomment-224629448
brew install pinentry-mac
echo "pinentry-program /usr/local/bin/pinentry-mac" >> ~/.gnupg/gpg-agent.conf
killall gpg-agent
The pinentry-mac formula already tells you to do that (in the caveats, emitted when the formula is installed).
But I find it weird that the gnupg2 formula, which depends on pinentry and compiles it in as the default pinentry, results in a gpg binary that doesn't just call that (console) pinentry out of the box.
Yeah, I just found out about the pinentry-mac workaround by googling for this issue, it's not a pinentry-mac bug report but a gnupg2 one.
I wonder if this has any bearing on the reason why it isn't using the configured pinentry:
You should always add the following lines to your .bashrc
or whatever initialization file is used for all shell invocations:
GPG_TTY=$(tty)
export GPG_TTY
It is important that this environment variable always reflects the
output of the tty command. For W32 systems this option is not required.
from here.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Beep boop, might be stale but still an issue ;)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This is not a Homebrew issue, but rather one of user configuration. The information I posted before should solve your issue.
The relevant configuration instructions, (the solution), are present both on gnupg.org and towards the beginning of the gpg-agent manpage.
Given these two things, and the fact that the user configuration is predominantly outside of Homebrew's scope in cases like this, this issue is inherently "resolved".
Apologies for opening a frivolous ticket @jcount
It was not clear to me from this thicket that your comment represented the community opinion on the matter of bundled pinentry tool.
Thank you for all the hard work you do as a maintainer, and for speedily reviewing community PRs.
My comment represents the opinion and position of the maintainers of this project.
Most helpful comment
This workaround fixed the problem: https://github.com/IJHack/QtPass/issues/156#issuecomment-224629448