[DRE-maint] Bug#996230: ruby-friendly-id: FTBFS with ruby3.0: ERROR: Test "ruby3.0" failed: /usr/share/rubygems-integration/all/gems/activerecord-6.0.3.7/lib/active_record/associations.rb:1370:in `has_many': wrong number of arguments (given 3, expected 1..2) (ArgumentError)

Antonio Terceiro terceiro at debian.org
Tue Oct 12 13:13:13 BST 2021


Source: ruby-friendly-id
Version: 5.3.0-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.0

Hi,

We are about to enable building against ruby3.0 on unstable. During a test
rebuild, ruby-friendly-id was found to fail to build in that situation.

To reproduce this locally, you need to install ruby-all-dev from experimental
on an unstable system or build chroot.

Relevant part (hopefully):
> /usr/share/rubygems-integration/all/gems/activerecord-6.0.3.7/lib/active_record/associations.rb:1370:in `has_many': wrong number of arguments (given 3, expected 1..2) (ArgumentError)
> 	from /<<PKGBUILDDIR>>/debian/ruby-friendly-id/usr/lib/ruby/vendor_ruby/friendly_id/history.rb:75:in `block in included'
> 	from /<<PKGBUILDDIR>>/debian/ruby-friendly-id/usr/lib/ruby/vendor_ruby/friendly_id/history.rb:74:in `class_eval'
> 	from /<<PKGBUILDDIR>>/debian/ruby-friendly-id/usr/lib/ruby/vendor_ruby/friendly_id/history.rb:74:in `included'
> 	from /<<PKGBUILDDIR>>/debian/ruby-friendly-id/usr/lib/ruby/vendor_ruby/friendly_id/configuration.rb:56:in `include'
> 	from /<<PKGBUILDDIR>>/debian/ruby-friendly-id/usr/lib/ruby/vendor_ruby/friendly_id/configuration.rb:56:in `block in use'
> 	from /<<PKGBUILDDIR>>/debian/ruby-friendly-id/usr/lib/ruby/vendor_ruby/friendly_id/configuration.rb:53:in `map'
> 	from /<<PKGBUILDDIR>>/debian/ruby-friendly-id/usr/lib/ruby/vendor_ruby/friendly_id/configuration.rb:53:in `use'
> 	from /<<PKGBUILDDIR>>/debian/ruby-friendly-id/usr/lib/ruby/vendor_ruby/friendly_id/base.rb:209:in `friendly_id'
> 	from /<<PKGBUILDDIR>>/test/history_test.rb:10:in `<class:Manual>'
> 	from /<<PKGBUILDDIR>>/test/history_test.rb:8:in `<class:HistoryTest>'
> 	from /<<PKGBUILDDIR>>/test/history_test.rb:3:in `<top (required)>'
> 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require'
> 	from <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require'
> 	from /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.7/lib/active_support/dependencies.rb:324:in `block in require'
> 	from /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.7/lib/active_support/dependencies.rb:291:in `load_dependency'
> 	from /usr/share/rubygems-integration/all/gems/activesupport-6.0.3.7/lib/active_support/dependencies.rb:324:in `require'
> 	from /usr/lib/ruby/gems/3.0.0/gems/rake-13.0.3/lib/rake/rake_test_loader.rb:17:in `block in <main>'
> 	from /usr/lib/ruby/gems/3.0.0/gems/rake-13.0.3/lib/rake/rake_test_loader.rb:5:in `select'
> 	from /usr/lib/ruby/gems/3.0.0/gems/rake-13.0.3/lib/rake/rake_test_loader.rb:5:in `<main>'
> ------------------------------------------------------------------------
> Using ruby 3.0.2 AR 6.0.3.7 with sqlite3 (in-memory)
> rake aborted!
> Command failed with status (1): [ruby -w -I"test" /usr/lib/ruby/gems/3.0.0/gems/rake-13.0.3/lib/rake/rake_test_loader.rb "test/base_test.rb" "test/candidates_test.rb" "test/configuration_test.rb" "test/core_test.rb" "test/finders_test.rb" "test/generator_test.rb" "test/history_test.rb" "test/numeric_slug_test.rb" "test/object_utils_test.rb" "test/reserved_test.rb" "test/scoped_test.rb" "test/sequentially_slugged_test.rb" "test/simple_i18n_test.rb" "test/slugged_test.rb" "test/sti_test.rb" -v]
> 
> Tasks: TOP => default
> (See full trace by running task with --trace)
> ERROR: Test "ruby3.0" failed: 


The full build log is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-friendly-id/ruby-friendly-id_5.3.0-1+rebuild1633380511_amd64.build.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-ruby-extras-maintainers/attachments/20211012/e4d2a97d/attachment.sig>


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