[DRE-maint] Bug#846151: gem2deb: doesn't handle DFSG re-packed upstream tar file version

micah micah at riseup.net
Mon Nov 28 18:37:50 UTC 2016


Package: gem2deb
Version: 0.32
Severity: normal

Hello,

I have an upstream source that has a non-DFSG IETF licensed RFC in it. I
downloaded the tar and repacked it to remove that file. Then I ran gem2deb on
it, but it failed because I renamed the tar to have +dfsg:

micah at muck:new$ DH_RUBY_GEMSPEC=json_pure.gemspec gem2deb json-pure-2.0.2+dfsg.tar.gz 
-- Creating source tarball from json-pure-2.0.2+dfsg.tar.gz ...
tar xfm /home/micah/debian/pkg-ruby-extras/new/json-pure-2.0.2+dfsg.tar.gz --strip 1
tar czf /home/micah/debian/pkg-ruby-extras/new/json-pure-2.0.2+dfsg.tar.gz json-pure-2.0.2+dfsg
-- Successfully created ./json-pure-2.0.2+dfsg.tar.gz

-- Creating Debian source package from ./json-pure-2.0.2+dfsg.tar.gz ...
tar xzf ruby-json-pure_2.0.2+dfsg.orig.tar.gz
/usr/lib/ruby/vendor_ruby/gem2deb/dh_make_ruby.rb:212:in `chdir': No such file or directory @ dir_chdir - ruby-json-pure-2.0.2 (Errno::ENOENT)
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_make_ruby.rb:212:in `build_in_directory'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_make_ruby.rb:206:in `block in build'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_make_ruby.rb:202:in `chdir'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_make_ruby.rb:202:in `build'
	from /usr/bin/gem2deb:118:in `<main>'
micah at muck:new1$ ls
json-pure-2.0.2+dfsg.tar.gz  ruby-json-pure-2.0.2+dfsg/  ruby-json-pure_2.0.2+dfsg.orig.tar.gz@

To get around this, I did a gbp import-orig on an empty git repo then dh-make-ruby there.

thanks for maintaining gem2deb, it has really improved things significantly!
micah


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-1-amd64 (SMP w/8 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  debhelper            10.2.2
ii  devscripts           2.16.8
ii  gem2deb-test-runner  0.32
ii  perl                 5.24.1~rc3-3
ii  rake                 10.5.0-2
ii  ruby                 1:2.3.0+4
ii  ruby-all-dev         1:2.3.0+4
ii  ruby-setup           3.4.1-9

Versions of packages gem2deb recommends:
ii  apt-file         3.1.3
ii  build-essential  12.2
ii  python3-debian   0.1.29

gem2deb suggests no packages.

-- no debconf information



More information about the Pkg-ruby-extras-maintainers mailing list