Closed hmarr closed 6 years ago
Hey @hmarr thanks for the report - what arch are you building/CI on?
I've seen this both on my Mac (darwin x86_64) and in an Ubuntu Docker container (linux x86_64).
I just ran through clean installs on Darwin for Ruby 2.3.3, 2.4.5, 2.5.0, and 2.5.3, and all installed cleanly. Hate that :(
Gah, that's frustrating. I'll see if I can get a more minimal reproduction of it.
There's a new PR #125 that removes some tests, I'll have a look at that
Ah, great - that looks hopeful!
Hey @hmarr what version of gpg are you running out of interest?
I've used both 2.2.4 and 2.2.10. I haven't tried with 1.x, though.
Ah. I run 1.4 because of the gpg-agent stuff. Version bump incoming
Thanks for jumping on this so quickly 🙌
There's a new PR #125 that removes some tests, I'll have a look at that
@dansketcher @hmarr Yeah, I wrote that PR to specifically address this issue :smile:.
@dbussink are you also on GPG 2.x?
I reran a CI build that was failing with v2.0.17 and it's now successfully getting past the bundle install
phase with v2.0.18 so it looks like this has done the job.
Thanks again @dansketcher and @dbussink!
Thanks @hmarr for the report, and @dbussink for the PR 💯
@dbussink are you also on GPG 2.x?
Confirming for posterity that I also use 2.x.
The latest version of ruby-gpgme is failing to install for us. We're seeing
gpg: can't connect to the agent: File name too long
while compiling the native libraries, which could be the culprit.For now, we're working around the issue by installing with
--use-system-libraries
, but I figured I'd report this anyway as it may affect others. Here are the full logs from the CI build. I've included an excerpt below, too.Install logs
``` Fetching gpgme 2.0.17 Installing gpgme 2.0.17 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /root/dependabot-core/vendor/bundle/ruby/2.5.0/gems/gpgme-2.0.17/ext/gpgme /usr/bin/ruby2.5 -r ./siteconf20181122-80-kk3jon.rb extconf.rb ************************************************************************ IMPORTANT! gpgme gem uses locally built versions of required C libraries, namely libgpg-error, libassuan, and gpgme. If this is a concern for you and you want to use the system library instead, abort this installation process and reinstall gpgme gem as follows: gem install gpgme -- --use-system-libraries ************************************************************************ Downloading Downloading libgpg-error-1.32.tar.bz2 ( 0%) [SNIP] Downloading Downloading libgpg-error-1.32.tar.bz2 (100%) Extracting libgpg-error-1.32.tar.bz2 into tmp/x86_64-linux-gnu/ports/libgpg-error/1.32... OK Running 'configure' for libgpg-error 1.32... OK Running 'compile' for libgpg-error 1.32... OK Running 'install' for libgpg-error 1.32... OK Activating libgpg-error 1.32 (from /root/dependabot-core/vendor/bundle/ruby/2.5.0/gems/gpgme-2.0.17/ports/x86_64-linux-gnu/libgpg-error/1.32)... Downloading libassuan-2.5.1.tar.bz2 Downloading Downloading libassuan-2.5.1.tar.bz2 ( 2%) Downloading libassuan-2.5.1.tar.bz2 [SNIP] Downloading libassuan-2.5.1.tar.bz2 ( 97%) Downloading libassuan-2.5.1.tar.bz2 Downloading libassuan-2.5.1.tar.bz2 (100%) Extracting libassuan-2.5.1.tar.bz2 into tmp/x86_64-linux-gnu/ports/libassuan/2.5.1... OK Running 'configure' for libassuan 2.5.1... OK Running 'compile' for libassuan 2.5.1... OK Running 'install' for libassuan 2.5.1... OK Activating libassuan 2.5.1 (from /root/dependabot-core/vendor/bundle/ruby/2.5.0/gems/gpgme-2.0.17/ports/x86_64-linux-gnu/libassuan/2.5.1)... Downloading gpgme-1.12.0.tar.bz2 ( 11%) [SNIP] Downloading gpgme-1.12.0.tar.bz2 (100%) Extracting gpgme-1.12.0.tar.bz2 into tmp/x86_64-linux-gnu/ports/gpgme/1.12.0... OK Running 'configure' for gpgme 1.12.0... OK Running 'compile' for gpgme 1.12.0... ERROR, review '/root/dependabot-core/vendor/bundle/ruby/2.5.0/gems/gpgme-2.0.17/ext/gpgme/tmp/x86_64-linux-gnu/ports/gpgme/1.12.0/compile.log' to see what happened. Last lines are: ======================================================================== gpg: key 47AF4B6961F04784: public key "Victor Test (demo key)