[DRE-maint] Bug#996218: ruby-enum: FTBFS with ruby3.0: ERROR: Test "ruby3.0" failed: expected Ruby::Enum::Errors::UninitializedConstantError, got #<ArgumentError: wrong number of arguments (given 2, expected 0..1)> with backtrace:

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


Source: ruby-enum
Version: 0.7.2-3
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-enum 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):
>        expected Ruby::Enum::Errors::UninitializedConstantError, got #<ArgumentError: wrong number of arguments (given 2, expected 0..1)> with backtrace:
>          # /usr/share/rubygems-integration/all/gems/i18n-1.8.10/lib/i18n.rb:196:in `translate'
>          # ./lib/ruby-enum/errors/base.rb:40:in `translate'
>          # ./lib/ruby-enum/errors/base.rb:51:in `create_problem'
>          # ./lib/ruby-enum/errors/base.rb:19:in `compose_message'
>          # ./lib/ruby-enum/errors/uninitialized_constant_error.rb:6:in `initialize'
>          # ./lib/ruby-enum/enum.rb:46:in `exception'
>          # ./lib/ruby-enum/enum.rb:46:in `raise'
>          # ./lib/ruby-enum/enum.rb:46:in `const_missing'
>          # ./spec/ruby-enum/enum_spec.rb:168:in `block (4 levels) in <top (required)>'
>          # ./spec/ruby-enum/enum_spec.rb:168:in `block (3 levels) in <top (required)>'
>      # ./spec/ruby-enum/enum_spec.rb:168:in `block (3 levels) in <top (required)>'
> 
> Finished in 0.0624 seconds (files took 0.45851 seconds to load)
> 29 examples, 5 failures
> 
> Failed examples:
> 
> rspec ./spec/ruby-enum/enum_spec.rb:23 # Ruby::Enum raises UninitializedConstantError on an invalid constant
> rspec ./spec/ruby-enum/enum_spec.rb:122 # Ruby::Enum on duplicate keys raises DuplicateKeyError
> rspec ./spec/ruby-enum/enum_spec.rb:132 # Ruby::Enum on duplicate values raises a DuplicateValueError
> rspec ./spec/ruby-enum/enum_spec.rb:145 # Ruby::Enum Given a class that has not defined any enums is expected to raise Ruby::Enum::Errors::UninitializedConstantError
> rspec ./spec/ruby-enum/enum_spec.rb:167 # Ruby::Enum Subclass behavior parent class should not have enums defined in child classes
> 
> /usr/bin/ruby3.0 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.9.3/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
> ERROR: Test "ruby3.0" failed: 


The full build log is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-enum/ruby-enum_0.7.2-3+rebuild1633378915_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/a997f988/attachment.sig>


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