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

homebrew + gnupg 21 #61

Closed
danilobuerger opened this issue Feb 17, 2017 · 7 comments
Closed

homebrew + gnupg 21 #61

danilobuerger opened this issue Feb 17, 2017 · 7 comments
Labels
feature Enhancements and new features

Comments

@danilobuerger
Copy link
Contributor

Since I can't open an issue at https://github.com/justwatchcom/homebrew-gopass, I am opening this here:

Would it be possible to also allow gnupg 21 as a dependency instead of gnupg 2 only?

@dominikschulz dominikschulz added the feature Enhancements and new features label Feb 22, 2017
@danilobuerger
Copy link
Contributor Author

To clarify this: gopass works perfectly for me with gnupg 21. However, I must install it via go get instead of brew to circumvent the dependency of gnupg 2.

@falschparker82
Copy link
Contributor

Hey - I've dug a little into this issue, but I have no real solution for it.

Unfortunately, gnupg, gnupg2 and gnupg21 seem to be completely different and mutually incompatible packages for homebrew: https://github.com/Homebrew/homebrew-core/blob/master/Formula/gnupg2.rb

class Gnupg21 < Formula
[...]
  conflicts_with "gnupg2",
:because => "GPG2.1.x is incompatible with the 2.0.x branch."

While gopass should work fine with either version, I didn't find any option to specify any GPG package as a dependency.

I've filed an issue with the homebrew community here: http://discourse.brew.sh/t/write-formula-to-work-with-any-version-of-gpg/662

@danilobuerger
Copy link
Contributor Author

Maybe using an option would work:
http://stackoverflow.com/a/28738539/2525941

@falschparker82
Copy link
Contributor

...a little ugly, but looks reasonable - I'll give it a try

@danilobuerger
Copy link
Contributor Author

I agree! But better than nothing.

@falschparker82
Copy link
Contributor

Just updated the formula - would you volunteer to be my guinea pig? (don't want to go to gpg 2.1 right now)

brew update && brew install gopass --with-gnupg21

(oh, btw. I've opened the issue tracker at the other repo)

THX and have a nice weekend!

@danilobuerger
Copy link
Contributor Author

Just tried, works for me.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Enhancements and new features
Projects
None yet
Development

No branches or pull requests

3 participants