Bug 242340 - archivers/rubygem-fpm: needs devel/rubygem-backports, but fails in 'clamp' code
Summary: archivers/rubygem-fpm: needs devel/rubygem-backports, but fails in 'clamp' code
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ruby mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-01 17:13 UTC by Jimmy Olgeni
Modified: 2019-12-01 17:13 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (ruby)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jimmy Olgeni freebsd_committer 2019-12-01 17:13:18 UTC
archivers/rubygem-fpm requires devel/rubygem-backports to be installed, else it will fail with this message:

Traceback (most recent call last):
	10: from /usr/local/bin/fpm:23:in `<main>'
	 9: from /usr/local/bin/fpm:23:in `load'
	 8: from /usr/local/lib/ruby/gems/2.6/gems/fpm-1.11.0/bin/fpm:4:in `<top (required)>'
	 7: from /usr/local/lib/ruby/site_ruby/2.6/rubygems/core_ext/kernel_require.rb:54:in `require'
	 6: from /usr/local/lib/ruby/site_ruby/2.6/rubygems/core_ext/kernel_require.rb:54:in `require'
	 5: from /usr/local/lib/ruby/gems/2.6/gems/fpm-1.11.0/lib/fpm.rb:3:in `<top (required)>'
	 4: from /usr/local/lib/ruby/site_ruby/2.6/rubygems/core_ext/kernel_require.rb:54:in `require'
	 3: from /usr/local/lib/ruby/site_ruby/2.6/rubygems/core_ext/kernel_require.rb:54:in `require'
	 2: from /usr/local/lib/ruby/gems/2.6/gems/fpm-1.11.0/lib/fpm/package.rb:7:in `<top (required)>'
	 1: from /usr/local/lib/ruby/site_ruby/2.6/rubygems/core_ext/kernel_require.rb:54:in `require'
/usr/local/lib/ruby/site_ruby/2.6/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- backports/2.0.0/stdlib/ostruct (LoadError)



It manages to start when backports are installed, but then it fails when trying to create a package in the 'pkg' format:

# fpm -s dir -C test -t freebsd --name test --package "test.pkg" --verbose .

Setting workdir {:workdir=>"/tmp", :level=>:info}
Traceback (most recent call last):
	7: from /usr/local/bin/fpm:23:in `<main>'
	6: from /usr/local/bin/fpm:23:in `load'
	5: from /usr/local/lib/ruby/gems/2.6/gems/fpm-1.11.0/bin/fpm:7:in `<top (required)>'
	4: from /usr/local/lib/ruby/gems/2.6/gems/clamp-1.3.1/lib/clamp/command.rb:140:in `run'
	3: from /usr/local/lib/ruby/gems/2.6/gems/fpm-1.11.0/lib/fpm/command.rb:574:in `run'
	2: from /usr/local/lib/ruby/gems/2.6/gems/clamp-1.3.1/lib/clamp/command.rb:66:in `run'
	1: from /usr/local/lib/ruby/gems/2.6/gems/fpm-1.11.0/lib/fpm/command.rb:402:in `execute'
/usr/local/lib/ruby/gems/2.6/gems/fpm-1.11.0/lib/fpm/command.rb:397:in `block in execute': undefined method `default_architecture' for #<FPM::Command:0x0000000804a13f40> (NoMethodError)

Seems to be related to this issue on GitHub:

  https://github.com/jordansissel/fpm/issues/1543