cortex / gopass

Gopass: A simple password-store GUI
GNU General Public License v3.0
190 stars 13 forks source link

osx install fails at gpgme error #32

Open morriswinkler-simple opened 7 years ago

morriswinkler-simple commented 7 years ago

Ok firs fix lime-qml witth this

https://github.com/limetext/qml-go/issues/6

than go ahead and

brew install qt5 pkg-config 

brew link --force qt5

brew install qpgme

to fail at

./keyinfo.go:103: c.Export undefined (type *gpgme.Context has no field or method Export)
./keyinfo.go:124: c.AssuanSend undefined (type *gpgme.Context has no field or method AssuanSend)

any idea how to fix that

gpgme: stable 1.7.0 (bottled)
Library access to GnuPG
https://www.gnupg.org/related_software/gpgme/
/usr/local/Cellar/gpgme/1.7.0 (64 files, 3M) *
  Poured from bottle on 2017-02-17 at 13:23:34
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/gpgme.rb
==> Dependencies
Required: gnupg2 ✔, libgpg-error ✔, libassuan ✔, pth ✔
kohlerm commented 7 years ago

Same problem here, on both Ubuntu 16.04 an RHEL 7

suedadam commented 7 years ago

Was going to be building this; however, I keep running into dependency errors on my mac (annoyingly because I have to update but I don't want to).

Regardless, The issue is because of the export() function (first error) not being a function. I'm not sure where he was doing so but I'm assuming he had a local wrapper/fix for this on his dev environment? I can't find it in the history of the gpgme project (Go fork) that has that function. You can probably fix it by changing the code to use FindKeys() instead, shouldn't be too big of a difference. You could also use GetKey() or list through them via KeyListStart and iterating through the list via KeyListNext() until it's at KeyListEnd() https://godoc.org/github.com/proglottis/gpgme#Context.GetKey