Source: ruby-dbf
Version: 3.0.5-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-r...@lists.debian.org
Usertags: ruby3.0

Hi,

We are about to enable building against ruby3.0 on unstable. During a test
rebuild, ruby-dbf 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):
>       Failure/Error: @encoding ? 
> value.force_encoding(@encoding).encode(*ENCODING_ARGS) : value
> 
>       TypeError:
>         no implicit conversion of Hash into String
>       # ./lib/dbf/column_type.rb:98:in `encode'
>       # ./lib/dbf/column_type.rb:98:in `type_cast'
>       # ./lib/dbf/column.rb:49:in `type_cast'
>       # ./lib/dbf/record.rb:94:in `init_attribute'
>       # ./lib/dbf/record.rb:71:in `block in attribute_map'
>       # ./lib/dbf/record.rb:71:in `map'
>       # ./lib/dbf/record.rb:71:in `attribute_map'
>       # ./lib/dbf/record.rb:56:in `attributes'
>       # ./lib/dbf/record.rb:82:in `method_missing'
>       # ./spec/dbf/record_spec.rb:85:in `block (4 levels) in <top (required)>'
> 
> Finished in 0.82809 seconds (files took 0.79418 seconds to load)
> 181 examples, 10 failures
> 
> Failed examples:
> 
> rspec ./spec/dbf/file_formats_spec.rb:88 # DBF of type 30 (Visual FoxPro) 
> reads memo data
> rspec ./spec/dbf/database_spec.rb:46 # DBF::Database::Foxpro#table_path 
> returns an absolute path
> rspec ./spec/dbf/database_spec.rb:39 # DBF::Database::Foxpro#table when 
> accessing related tables loads an existing related table with wrong filename 
> casing
> rspec ./spec/dbf/database_spec.rb:35 # DBF::Database::Foxpro#table when 
> accessing related tables supports a long table field name
> rspec ./spec/dbf/database_spec.rb:31 # DBF::Database::Foxpro#table when 
> accessing related tables loads an existing related table
> rspec ./spec/dbf/database_spec.rb:9 # DBF::Database::Foxpro#initialize when 
> given a path to an existing dbc file does not raise an error
> rspec ./spec/dbf/database_spec.rb:21 # DBF::Database::Foxpro#initialize it 
> loads the example db correctly shows a correct list of tables
> rspec ./spec/dbf/column_spec.rb:225 # DBF::Column#type_cast with type M 
> (memo) casts to string
> rspec ./spec/dbf/record_spec.rb:96 # DBF::Record column data for table 
> overriding specified in dbf encoding should transcode from manually specified 
> encoding to default system encoding
> rspec ./spec/dbf/record_spec.rb:84 # DBF::Record column data for table using 
> specified in dbf encoding should automatically encodes to default system 
> encoding
> 
> Randomized with seed 8811
> 
> /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 failed
> ERROR: Test "ruby3.0" failed: 


The full build log is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-dbf/ruby-dbf_3.0.5-1+rebuild1633377673_amd64.build.txt

Attachment: signature.asc
Description: PGP signature

Reply via email to