[DRE-maint] Bug#786841: generate_or_update_gem_to_package_data: undefined method `invert' for false:FalseClass (NoMethodError)
Christian Hofstaedtler
zeha at debian.org
Mon May 25 23:20:31 UTC 2015
Package: gem2deb
Version: 0.16
Severity: normal
I've been observing the following error while running `gem2deb molinillo`:
-----
molinillo doesn't seem to exist. Let's try to download it with 'gem fetch molinillo'
gem fetch molinillo
Downloaded molinillo-0.2.3
-- Creating source tarball from molinillo-0.2.3.gem ...
tar xfm /home/ch/Debian/pkg-ruby-extras/molinillo-0.2.3.gem
"tar xzfm data.tar.gz"
"zcat metadata.gz > metadata.yml"
tar czf /home/ch/Debian/pkg-ruby-extras/molinillo-0.2.3.tar.gz molinillo-0.2.3
-- Successfully created ./molinillo-0.2.3.tar.gz
-- Creating Debian source package from ./molinillo-0.2.3.tar.gz ...
/usr/lib/ruby/vendor_ruby/gem2deb/dh_make_ruby.rb:145:in `generate_or_update_gem_to_package_data': undefined method `invert' for false:FalseClass (NoMethodError)
from /usr/lib/ruby/vendor_ruby/gem2deb/dh_make_ruby.rb:64:in `initialize'
from /usr/bin/gem2deb:96:in `new'
from /usr/bin/gem2deb:96:in `<main>'
-----
A bit of debugging suggests that this happens because my apt-file cache
was empty, and then apt-file search returns an empty result, yielding
an invalid YAML file (after the sed processing), causing YAML.load
on dh_make_ruby.rb:145 to return false.
Maybe a check for false or a too-small cache file could be added
in generate_or_update_gem_to_package_data.
AFAICT, the version in jessie is also affected by this.
Best,
C.
-- System Information:
Debian Release: 8.0
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages gem2deb depends on:
ii build-essential 11.7
ii debhelper 9.20150101
ii devscripts 2.15.3
ii gem2deb-test-runner 0.16
ii perl 5.20.2-3
ii python3-debian 0.1.27
ii ruby 1:2.1.5+1
ii ruby-all-dev 1:2.1.5+1
ii ruby-setup 3.4.1-7
Versions of packages gem2deb recommends:
ii apt-file 2.5.4
gem2deb suggests no packages.
-- no debconf information
More information about the Pkg-ruby-extras-maintainers
mailing list