Comments (15)
Gitpod gives you a Linux box that your ide can connect to.
from gpgme.
@sylvek @kaovilai thanks for investigating.
IIUC libassuan implements one of the protocols between gpg-agent and gpgme. This protocol is swappable, so it might be possible that your version has it compiled out.
I realised while you were removing things from LD_FLAGS
that the reason it still works is probably because pkg-config is already setting these correctly. pkg-config is pretty new to this project #26
So I think the fix is just to remove LD_FLAGS
entirely and leave it to pkg-config which should know how gpgme was configured.
I've raised an MR #35 - Before I merge, would you be able to test that it works? Thanks!
from gpgme.
My current workaround is https://gitpod.io/
from gpgme.
@sylvek It should work on macos though I've never used M1. I've even setup a macos workflow https://github.com/proglottis/gpgme/blob/master/.github/workflows/go.yml#L41
I wonder if your gpgme is unlinked or something? Sorry I can't be more specific as I don't have macos right now.
from gpgme.
Could try install libassuan
as well but didn't work for me.
brew install gpgme libassuan
from gpgme.
My current workaround is https://gitpod.io/
Sorry @kaovilai i didn'yt understand what your link could help 🤔
from gpgme.
@proglottis is it possible that the issue is coming from the version of gnupg?
▶ brew info gnupg
gnupg: stable 2.3.6 (bottled)
GNU Pretty Good Privacy (PGP) package
https://gnupg.org/
/opt/homebrew/Cellar/gnupg/2.3.6 (149 files, 13.6MB) *
Poured from bottle on 2022-04-27 at 16:41:13
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/gnupg.rb
License: GPL-3.0-or-later
==> Dependencies
Build: pkg-config ✔
Required: gettext ✔, gnutls ✔, libassuan ✔, libgcrypt ✔, libgpg-error ✔, libksba ✔, libusb ✔, npth ✔, pinentry ✔
==> Analytics
install: 70,313 (30 days), 264,446 (90 days), 990,320 (365 days)
install-on-request: 66,918 (30 days), 249,849 (90 days), 931,477 (365 days)
build-error: 11 (30 days)
▶ brew info libassuan
libassuan
libassuan: stable 2.5.5 (bottled)
Assuan IPC Library
https://www.gnupg.org/related_software/libassuan/
/opt/homebrew/Cellar/libassuan/2.5.5 (17 files, 525.9KB) *
Poured from bottle on 2021-04-06 at 21:24:23
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/libassuan.rb
License: GPL-3.0-only
==> Dependencies
Required: libgpg-error ✔
==> Analytics
install: 30,825 (30 days), 90,514 (90 days), 424,130 (365 days)
install-on-request: 730 (30 days), 1,979 (90 days), 10,253 (365 days)
build-error: 0 (30 days)
from gpgme.
This might do something haven't tested yet. It's possible libassuan brew package currently doesn't install everything for aarch64.
from gpgme.
Maybe if this line can remove -lassuan
we'd be good.
Line 5 in 12c28f9
from gpgme.
@sylvek I believe the issue is not on other libs but libassuan installation alone.
The homebrew recipe only checks that a binary exists and works.
test do
system bin/"libassuan-config", "--version"
end
It doesn't check that header files are available for other programs.
from gpgme.
🤔 I removed -lassuan
and -lgpg-error
and it seems building.
// #cgo pkg-config: gpgme
// #cgo LDFLAGS: -lgpgme
I'll do more tests tomorrow.
from gpgme.
you can brew install libgpg-error
so no need to remove that.
from gpgme.
@proglottis can you enlighten us why we need to link libassuan? can it be avoided?
from gpgme.
@proglottis i did a test, and everything worked as expected 👍
from gpgme.
Thanks all. I've cut a release with the fix https://github.com/proglottis/gpgme/releases/tag/v0.1.3
from gpgme.
Related Issues (12)
- Issues with building on Windows HOT 13
- Finding Keys on Windows HOT 3
- Does not build on Travis-CI [Linux] HOT 6
- tag official releases HOT 2
- Decrypt test fails with "No Data". HOT 4
- Linking with older versions of GPGME should use the -lgpgme-pthread library HOT 2
- compilation terminated HOT 1
- macOS `fatal error: 'gpgme.h' file not found` HOT 2
- Compilation on RHEL/CentOS 7 fails on pkg-config HOT 4
- could not import C (cgo preprocessing failed)) HOT 2
- Does not build against older gpgme versions HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gpgme.