Run of fresh-releases for ruby-gpgme

Try this locally (using silver-platter):

debian-svp new-upstream ruby-gpgme 

Merge these changes:

git pull https://janitor.debian.net/git/ruby-gpgme fresh-releases/main
git pull https://janitor.debian.net/git/ruby-gpgme fresh-releases/pristine-tar
git pull https://janitor.debian.net/git/ruby-gpgme fresh-releases/upstream

Summary

Merged new upstream version: 2.0.20 (was: 2.0.19).

Diff

Branch: main

diff --git a/NEWS b/NEWS
index 92fa29f..0a55a5b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,13 @@
-2.0.19 November 3, 2019
+2.0.20 February 18, 2020
+
+- Update dependencies (Issue#134)
+  * libgpg-error 1.37
+  * libassuan 2.5.3
+  * gpgme to 1.13.1
+- Set `IO#autoclose = false` on the pass_function `IO` object to avoid GC race conditions
+  * Vicent Martí <vicent@github.com>
+
+2.0.19 October 3, 2019
 
 - Significant test/CI improvements
   * Sebastian Skałacki <skalee@gmail.com>
diff --git a/debian/changelog b/debian/changelog
index 01cedee..5bea753 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,9 @@
-ruby-gpgme (2.0.19-4) UNRELEASED; urgency=medium
+ruby-gpgme (2.0.20-1) UNRELEASED; urgency=medium
 
   * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository,
     Repository-Browse.
 
- -- Debian Janitor <janitor@jelmer.uk>  Sun, 15 Mar 2020 06:14:24 +0000
+ -- Debian Janitor <janitor@jelmer.uk>  Sun, 28 Mar 2021 06:42:28 -0000
 
 ruby-gpgme (2.0.19-3) unstable; urgency=medium
 
diff --git a/ext/gpgme/extconf.rb b/ext/gpgme/extconf.rb
index 2e62042..c12f14a 100644
--- a/ext/gpgme/extconf.rb
+++ b/ext/gpgme/extconf.rb
@@ -62,11 +62,11 @@ EOS
   require 'rubygems'
   require 'mini_portile2'
 
-  libgpg_error_recipe = MiniPortile.new('libgpg-error', '1.32').tap do |recipe|
+  libgpg_error_recipe = MiniPortile.new('libgpg-error', '1.37').tap do |recipe|
     recipe.target = File.join(ROOT, "ports")
     recipe.files = [{
       :url => "https://www.gnupg.org/ftp/gcrypt/#{recipe.name}/#{recipe.name}-#{recipe.version}.tar.bz2",
-      :sha256 => 'c345c5e73cc2332f8d50db84a2280abfb1d8f6d4f1858b9daa30404db44540ca'
+      :sha256 => 'b32d6ff72a73cf79797f7f2d039e95e9c6f92f0c1450215410840ab62aea9763'
     }]
     recipe.configure_options = [
       '--disable-shared',
@@ -82,11 +82,11 @@ EOS
     recipe.activate
   end
 
-  libassuan_recipe = MiniPortile.new('libassuan', '2.5.1').tap do |recipe|
+  libassuan_recipe = MiniPortile.new('libassuan', '2.5.3').tap do |recipe|
     recipe.target = File.join(ROOT, "ports")
     recipe.files = [{
       :url => "https://www.gnupg.org/ftp/gcrypt/#{recipe.name}/#{recipe.name}-#{recipe.version}.tar.bz2",
-      :sha256 => '47f96c37b4f2aac289f0bc1bacfa8bd8b4b209a488d3d15e2229cb6cc9b26449'
+      :sha256 => '91bcb0403866b4e7c4bc1cc52ed4c364a9b5414b3994f718c70303f7f765e702'
     }]
     recipe.configure_options = [
       '--disable-shared',
@@ -102,11 +102,11 @@ EOS
     recipe.activate
   end
 
-  gpgme_recipe = MiniPortile.new('gpgme', '1.12.0').tap do |recipe|
+  gpgme_recipe = MiniPortile.new('gpgme', '1.13.1').tap do |recipe|
     recipe.target = File.join(ROOT, "ports")
     recipe.files = [{
       :url => "https://www.gnupg.org/ftp/gcrypt/#{recipe.name}/#{recipe.name}-#{recipe.version}.tar.bz2",
-      :sha256 => 'b4dc951c3743a60e2e120a77892e9e864fb936b2e58e7c77e8581f4d050e8cd8'
+      :sha256 => 'c4e30b227682374c23cddc7fdb9324a99694d907e79242a25a4deeedb393be46'
     }]
     recipe.configure_options = [
       '--disable-shared',
diff --git a/gpgme.gemspec b/gpgme.gemspec
index a7d71f9..8bb55fc 100644
--- a/gpgme.gemspec
+++ b/gpgme.gemspec
@@ -1,6 +1,6 @@
 Gem::Specification.new do |s|
   s.name              = 'gpgme'
-  s.version           = '2.0.19'
+  s.version           = '2.0.20'
   s.authors           = ['Daiki Ueno', 'Albert Llop']
   s.date              = '2018-11-22'
   s.email             = 'ueno@gnu.org'
diff --git a/lib/gpgme/ctx.rb b/lib/gpgme/ctx.rb
index 73b77a6..45a0371 100644
--- a/lib/gpgme/ctx.rb
+++ b/lib/gpgme/ctx.rb
@@ -517,6 +517,7 @@ keylist_mode=#{KEYLIST_MODE_NAMES[keylist_mode]}>"
 
     def self.pass_function(pass, uid_hint, passphrase_info, prev_was_bad, fd)
       io = IO.for_fd(fd, 'w')
+      io.autoclose = false
       io.puts pass
       io.flush
     end
diff --git a/lib/gpgme/version.rb b/lib/gpgme/version.rb
index 6f2bafd..d681daf 100644
--- a/lib/gpgme/version.rb
+++ b/lib/gpgme/version.rb
@@ -1,4 +1,4 @@
 module GPGME
   # The version of GPGME ruby binding you are using
-  VERSION = "2.0.19"
+  VERSION = "2.0.20"
 end

Branch: pristine-tar

diff --git a/ruby-gpgme_2.0.20.orig.tar.gz.delta b/ruby-gpgme_2.0.20.orig.tar.gz.delta
new file mode 100644
index 0000000..10dda70
Binary files /dev/null and b/ruby-gpgme_2.0.20.orig.tar.gz.delta differ
diff --git a/ruby-gpgme_2.0.20.orig.tar.gz.id b/ruby-gpgme_2.0.20.orig.tar.gz.id
new file mode 100644
index 0000000..422f2f1
--- /dev/null
+++ b/ruby-gpgme_2.0.20.orig.tar.gz.id
@@ -0,0 +1 @@
+5437d2c3db79d4a8361cd574053767364d39658b

Branch: upstream

Tag: upstream/2.0.20
diff --git a/NEWS b/NEWS
index 92fa29f..0a55a5b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,13 @@
-2.0.19 November 3, 2019
+2.0.20 February 18, 2020
+
+- Update dependencies (Issue#134)
+  * libgpg-error 1.37
+  * libassuan 2.5.3
+  * gpgme to 1.13.1
+- Set `IO#autoclose = false` on the pass_function `IO` object to avoid GC race conditions
+  * Vicent Martí <vicent@github.com>
+
+2.0.19 October 3, 2019
 
 - Significant test/CI improvements
   * Sebastian Skałacki <skalee@gmail.com>
diff --git a/ext/gpgme/extconf.rb b/ext/gpgme/extconf.rb
index 2e62042..c12f14a 100644
--- a/ext/gpgme/extconf.rb
+++ b/ext/gpgme/extconf.rb
@@ -62,11 +62,11 @@ EOS
   require 'rubygems'
   require 'mini_portile2'
 
-  libgpg_error_recipe = MiniPortile.new('libgpg-error', '1.32').tap do |recipe|
+  libgpg_error_recipe = MiniPortile.new('libgpg-error', '1.37').tap do |recipe|
     recipe.target = File.join(ROOT, "ports")
     recipe.files = [{
       :url => "https://www.gnupg.org/ftp/gcrypt/#{recipe.name}/#{recipe.name}-#{recipe.version}.tar.bz2",
-      :sha256 => 'c345c5e73cc2332f8d50db84a2280abfb1d8f6d4f1858b9daa30404db44540ca'
+      :sha256 => 'b32d6ff72a73cf79797f7f2d039e95e9c6f92f0c1450215410840ab62aea9763'
     }]
     recipe.configure_options = [
       '--disable-shared',
@@ -82,11 +82,11 @@ EOS
     recipe.activate
   end
 
-  libassuan_recipe = MiniPortile.new('libassuan', '2.5.1').tap do |recipe|
+  libassuan_recipe = MiniPortile.new('libassuan', '2.5.3').tap do |recipe|
     recipe.target = File.join(ROOT, "ports")
     recipe.files = [{
       :url => "https://www.gnupg.org/ftp/gcrypt/#{recipe.name}/#{recipe.name}-#{recipe.version}.tar.bz2",
-      :sha256 => '47f96c37b4f2aac289f0bc1bacfa8bd8b4b209a488d3d15e2229cb6cc9b26449'
+      :sha256 => '91bcb0403866b4e7c4bc1cc52ed4c364a9b5414b3994f718c70303f7f765e702'
     }]
     recipe.configure_options = [
       '--disable-shared',
@@ -102,11 +102,11 @@ EOS
     recipe.activate
   end
 
-  gpgme_recipe = MiniPortile.new('gpgme', '1.12.0').tap do |recipe|
+  gpgme_recipe = MiniPortile.new('gpgme', '1.13.1').tap do |recipe|
     recipe.target = File.join(ROOT, "ports")
     recipe.files = [{
       :url => "https://www.gnupg.org/ftp/gcrypt/#{recipe.name}/#{recipe.name}-#{recipe.version}.tar.bz2",
-      :sha256 => 'b4dc951c3743a60e2e120a77892e9e864fb936b2e58e7c77e8581f4d050e8cd8'
+      :sha256 => 'c4e30b227682374c23cddc7fdb9324a99694d907e79242a25a4deeedb393be46'
     }]
     recipe.configure_options = [
       '--disable-shared',
diff --git a/gpgme.gemspec b/gpgme.gemspec
index a7d71f9..8bb55fc 100644
--- a/gpgme.gemspec
+++ b/gpgme.gemspec
@@ -1,6 +1,6 @@
 Gem::Specification.new do |s|
   s.name              = 'gpgme'
-  s.version           = '2.0.19'
+  s.version           = '2.0.20'
   s.authors           = ['Daiki Ueno', 'Albert Llop']
   s.date              = '2018-11-22'
   s.email             = 'ueno@gnu.org'
diff --git a/lib/gpgme/ctx.rb b/lib/gpgme/ctx.rb
index 73b77a6..45a0371 100644
--- a/lib/gpgme/ctx.rb
+++ b/lib/gpgme/ctx.rb
@@ -517,6 +517,7 @@ keylist_mode=#{KEYLIST_MODE_NAMES[keylist_mode]}>"
 
     def self.pass_function(pass, uid_hint, passphrase_info, prev_was_bad, fd)
       io = IO.for_fd(fd, 'w')
+      io.autoclose = false
       io.puts pass
       io.flush
     end
diff --git a/lib/gpgme/version.rb b/lib/gpgme/version.rb
index 6f2bafd..d681daf 100644
--- a/lib/gpgme/version.rb
+++ b/lib/gpgme/version.rb
@@ -1,4 +1,4 @@
 module GPGME
   # The version of GPGME ruby binding you are using
-  VERSION = "2.0.19"
+  VERSION = "2.0.20"
 end

Debdiff

[The following lists of changes regard files as different if they have different names, permissions or owners.]

Files in second set of .debs but not in first

-rw-r--r--  root/root   /usr/share/rubygems-integration/2.7.0/specifications/gpgme-2.0.20.gemspec

Files in first set of .debs but not in second

-rw-r--r--  root/root   /usr/share/rubygems-integration/2.7.0/specifications/gpgme-2.0.19.gemspec

No differences were encountered between the control files of package ruby-gpgme

No differences were encountered between the control files of package ruby-gpgme-dbgsym

Lintian Result

Full worker log Full build log