[DRE-maint] Bug#1042415: ruby-aws-partitions: Package missing partitions.json
Stephen Gelman
ssgelm at debian.org
Thu Jul 27 23:48:34 BST 2023
Package: ruby-aws-partitions
Version: 1.653.0-1
Severity: grave
Tags: patch
Justification: renders package unusable
X-Debbugs-Cc: ssgelm at debian.org
In version 1.653.0-1, /usr/share/rubygems-integration/all/gems/aws-partitions-1.653.0/partitions.json is not present. It is there in version 1.354.0-2 in bullseye. Without that file, any actual use of this gem fails:
$ irb
irb(main):001:0> require 'aws-partitions'
=> true
irb(main):002:1* Aws::Partitions.each do |partition|
irb(main):003:1* puts partition.name
irb(main):004:0> end
/usr/share/rubygems-integration/all/gems/aws-partitions-1.653.0/lib/aws-partitions.rb:225:in `read': No such file or directory @ rb_sysopen - /usr/share/rubygems-integration/all/gems/aws-partitions-1.653.0/partitions.json (Errno::ENOENT)
from /usr/share/rubygems-integration/all/gems/aws-partitions-1.653.0/lib/aws-partitions.rb:225:in `defaults'
from /usr/share/rubygems-integration/all/gems/aws-partitions-1.653.0/lib/aws-partitions.rb:214:in `default_partition_list'
from /usr/share/rubygems-integration/all/gems/aws-partitions-1.653.0/lib/aws-partitions.rb:137:in `each'
from (irb):2:in `<main>'
from /usr/lib/ruby/gems/3.1.0/gems/irb-1.4.1/exe/irb:11:in `<top (required)>'
from /usr/bin/irb:25:in `load'
from /usr/bin/irb:25:in `<main>'
Patch to fix is attached
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 6.3.0-2-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages ruby-aws-partitions depends on:
ii ruby 1:3.1
ruby-aws-partitions recommends no packages.
ruby-aws-partitions suggests no packages.
-- no debconf information
-------------- next part --------------
diff -Nru ruby-aws-partitions-1.653.0/debian/changelog ruby-aws-partitions-1.653.0/debian/changelog
--- ruby-aws-partitions-1.653.0/debian/changelog 2022-10-30 08:49:35.000000000 -0500
+++ ruby-aws-partitions-1.653.0/debian/changelog 2023-07-27 17:39:10.000000000 -0500
@@ -1,3 +1,11 @@
+ruby-aws-partitions (1.653.0-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Change DH_RUBY_GEM_INSTALL_WHITELIST_APPEND to DH_RUBY_GEM_INSTALL_INCLUDE
+ in debian/rules to work with newer gem2deb
+
+ -- Stephen Gelman <ssgelm at debian.org> Thu, 27 Jul 2023 17:39:10 -0500
+
ruby-aws-partitions (1.653.0-1) unstable; urgency=medium
* Team Upload
diff -Nru ruby-aws-partitions-1.653.0/debian/rules ruby-aws-partitions-1.653.0/debian/rules
--- ruby-aws-partitions-1.653.0/debian/rules 2022-10-30 08:49:35.000000000 -0500
+++ ruby-aws-partitions-1.653.0/debian/rules 2023-07-27 17:36:38.000000000 -0500
@@ -2,7 +2,7 @@
export GEM2DEB_TEST_RUNNER = --check-dependencies
export DH_RUBY = --gem-install
-export DH_RUBY_GEM_INSTALL_WHITELIST_APPEND := partitions.json
+export DH_RUBY_GEM_INSTALL_INCLUDE := partitions.json
%:
dh $@ --buildsystem=ruby --with ruby
More information about the Pkg-ruby-extras-maintainers
mailing list