Source: bsfilter
Version: 1:1.0.19-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-r...@lists.debian.org
Usertags: ruby3.1

Hi,

We are about to start the ruby3.1 transition in unstable. While trying to
rebuild bsfilter with ruby3.1 enabled, the build failed.

Relevant part of the build log (hopefully):
> /usr/bin/ruby3.1 /usr/bin/gem2deb-test-runner
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Run tests for ruby3.1 from debian/ruby-tests.rake                           
>  │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> RUBYLIB=. 
> GEM_PATH=/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0
>  ruby3.1 -S rake -f debian/ruby-tests.rake
> /usr/bin/ruby3.1 test.rb --verbose
> cd test
> Loaded suite test
> Started
> TestBase64: 
>   test_base64:                                                .: (0.012286)
>   test_delimiter_bug:                                 .: (0.002738)
> TestDBM: 
>   test_default_dbm:                                   .: (0.008320)
>   test_gdbm:                                          F
> ===============================================================================
> Failure: test_gdbm(TestDBM):
>   Warning: ignore this test if GDBM is NOT installed.
>   Exception raised:
>   LoadError(<cannot load such file -- gdbm>)
>   
> <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in
>  `require'
>   
> <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in
>  `require'
>   /<<PKGBUILDDIR>>/bsfilter/bsfilter:3108:in `get_options'
>   /<<PKGBUILDDIR>>/bsfilter/bsfilter:3262:in `setup'
>   test.rb:408:in `block in test_gdbm'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/assertions.rb:693:in
>  `block in assert_nothing_raised'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/assertions.rb:1826:in
>  `_wrap_assertion'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/assertions.rb:684:in
>  `assert_nothing_raised'
>   test.rb:407:in `test_gdbm'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/testcase.rb:871:in
>  `run_test'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/testcase.rb:566:in
>  `block (2 levels) in run'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/fixture.rb:276:in 
> `block in create_fixtures_runner'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/fixture.rb:276:in 
> `block in create_fixtures_runner'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/fixture.rb:257:in 
> `run_fixture'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/fixture.rb:292:in 
> `run_setup'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/testcase.rb:564:in
>  `block in run'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/testcase.rb:563:in
>  `catch'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/testcase.rb:563:in
>  `run'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/testsuite.rb:124:in
>  `run_test'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/testsuite.rb:53:in
>  `run'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/testsuite.rb:124:in
>  `run_test'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/testsuite.rb:53:in
>  `run'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/ui/testrunnermediator.rb:67:in
>  `run_suite'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/ui/testrunnermediator.rb:45:in
>  `block (2 levels) in run'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/ui/testrunnermediator.rb:102:in
>  `with_listener'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/ui/testrunnermediator.rb:41:in
>  `block in run'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/ui/testrunnermediator.rb:39:in
>  `catch'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/ui/testrunnermediator.rb:39:in
>  `run'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/ui/testrunner.rb:40:in
>  `start_mediator'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/ui/testrunner.rb:25:in
>  `start'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/ui/testrunnerutilities.rb:24:in
>  `run'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/autorunner.rb:458:in
>  `block in run'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/autorunner.rb:514:in
>  `change_work_directory'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/autorunner.rb:457:in
>  `run'
>   
> /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit/autorunner.rb:66:in
>  `run'
>   /usr/lib/ruby/gems/3.1.0/gems/test-unit-3.5.3/lib/test/unit.rb:518:in 
> `block (2 levels) in <top (required)>'
> test.rb:407:in `test_gdbm'
>      404:   end
>      405: 
>      406:   def test_gdbm
>   => 407:     assert_nothing_raised('Warning: ignore this test if GDBM is NOT 
> installed') do
>      408:       @bsfilter.setup($default_options + ["--db", "gdbm", "-c"])
>      409:     end
>      410:     @bsfilter.use_dummyfh
> ===============================================================================
> : (0.016581)
>   test_qdbm:                                          
> /usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/3.1.0/depot.rb:91: warning: 
> iterator? is deprecated; use block_given? instead
> /usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/3.1.0/depot.rb:91: warning: 
> iterator? is deprecated; use block_given? instead
> /usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/3.1.0/depot.rb:91: warning: 
> iterator? is deprecated; use block_given? instead
> /usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/3.1.0/depot.rb:91: warning: 
> iterator? is deprecated; use block_given? instead
> /usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/3.1.0/depot.rb:91: warning: 
> iterator? is deprecated; use block_given? instead
> /usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/3.1.0/depot.rb:91: warning: 
> iterator? is deprecated; use block_given? instead
> /usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/3.1.0/depot.rb:91: warning: 
> iterator? is deprecated; use block_given? instead
> /usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/3.1.0/depot.rb:91: warning: 
> iterator? is deprecated; use block_given? instead
> /usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/3.1.0/depot.rb:91: warning: 
> iterator? is deprecated; use block_given? instead
> /usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/3.1.0/depot.rb:91: warning: 
> iterator? is deprecated; use block_given? instead
> /usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/3.1.0/depot.rb:91: warning: 
> iterator? is deprecated; use block_given? instead
> /usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/3.1.0/depot.rb:91: warning: 
> iterator? is deprecated; use block_given? instead
> .: (0.015371)
>   test_sdbm:                                          .: (0.007070)
> TestEOL: 
>   test_cr:                                            .: (0.006987)
>   test_crlf:                                          .: (0.005808)
>   test_lf:                                            .: (0.005814)
> TestEOLMBox: 
>   test_cr:                                            .: (0.003423)
>   test_crlf:                                          .: (0.002873)
>   test_lf:                                            .: (0.002678)
> TestGetLang: 
>   test_euc:                                           .: (0.002464)
>   test_gb18030_base64_gb2312:                         .: (0.007228)
>   test_iso_2022_jp_plain:                             .: (0.003230)
>   test_sjis:                                          .: (0.002992)
>   test_sjis_base64_iso_2022_jp:                               .: (0.002343)
>   test_sjis_base64_iso_2202_jp:                               .: (0.002424)
>   test_utf8_base64:                                   .: (0.002111)
>   test_utf8_plain:                                    .: (0.003065)
> TestHeaderParser: 
>   test_header_parser:                                 .: (0.002010)
>   test_ignore_header:                                 .: (0.001539)
>   test_mime_b_iso_2022_jp:                            .: (0.003032)
>   test_mime_b_iso_2202_jp:                            .: (0.002832)
>   test_mime_b_shift_jis:                              .: (0.002622)
>   test_mime_b_shift_jis_bad:                          .: (0.003017)
>   test_refer_header_date:                             .: (0.001947)
>   test_refer_header_null:                             .: (0.002278)
>   test_refer_header_subject:                          .: (0.001935)
>   test_refer_header_subject_date:                     .: (0.001886)
> TestHtmlParser: 
>   test_default:                                               .: (0.010230)
>   test_ignore_after_last_atag:                                .: (0.009263)
>   test_ignore_plain_text_part:                                .: (0.009007)
> TestInsertHeader: 
>   test_no_body:                                               .: (0.001678)
>   test_no_boundary:                                   .: (0.002192)
>   test_normal:                                                .: (0.001951)
> TestJtokenizer: 
>   test_bigram:                                                .: (0.003743)
> TestMarkSpamSubject: 
>   test_multi_subject:                                 .: (0.006381)
>   test_no_body:                                               .: (0.014042)
>   test_no_boundary:                                   .: (0.006012)
> TestMbox: 
>   test_with_mbox:                                     .: (0.002450)
>   test_without_mbox:                                  .: (0.002033)
> TestMultipleInstances: 
>   test_by_jtokenizer:                                 .: (0.004416)
>   test_by_mbox:                                               .: (0.008279)
> TestPlainTextParser: 
>   test_folding:                                               .: (0.003153)
>   test_iso_8895_1:                                    .: (0.001718)
> TestTokenizerOptionCombination: 
>   test_all:                                           .: (3.166783)
> 
> Finished in 3.394784289 seconds.
> -------------------------------------------------------------------------------
> 47 tests, 116 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 
> notifications
> 97.8723% passed
> -------------------------------------------------------------------------------
> 13.84 tests/s, 34.17 assertions/s
> rake aborted!
> Command failed with status (1): [/usr/bin/ruby3.1 test.rb --verbose...]
> /<<PKGBUILDDIR>>/debian/ruby-tests.rake:7:in `block (2 levels) in <top 
> (required)>'
> /<<PKGBUILDDIR>>/debian/ruby-tests.rake:6:in `block in <top (required)>'
> Tasks: TOP => default
> (See full trace by running task with --trace)
> ERROR: Test "ruby3.1" failed.


The full build log is available from:
https://people.debian.org/~terceiro/ruby3.1/17/bsfilter/bsfilter_1.0.19-3+rebuild1663007202_amd64-2022-09-12T18:26:43Z.build

To reproduce this, you need ruby-all-dev >= 1:3.0+2.  Depending on when you
read this, this might mean installing ruby-all-dev from experimental, or ir the
transition has alraedy started in unstable, a normal build on unstable should
do it.  If you fail to reproduce, please provide a build log and diff it with
mine so that we can identify if something relevant changed in the meantime.

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

Attachment: signature.asc
Description: PGP signature

Reply via email to