[DRE-maint] Bug#997310: ruby-pygments.rb: FTBFS: ERROR: Test "ruby2.7" failed.
Lucas Nussbaum
lucas at debian.org
Sat Oct 23 20:35:57 BST 2021
Source: ruby-pygments.rb
Version: 1.2.1-2
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> /usr/bin/ruby2.7 /usr/bin/gem2deb-test-runner
>
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Checking Rubygems dependency resolution on ruby2.7 │
> └──────────────────────────────────────────────────────────────────────────────┘
>
> NOTE: Gem::Specification#has_rdoc= is deprecated with no replacement. It will be removed in Rubygems 4
> Gem::Specification#has_rdoc= called from pygments.rb.gemspec.gem2deb:15.
> GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-pygments.rb/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/2.7.0:/var/lib/gems/2.7.0:/usr/local/lib/ruby/gems/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/lib/x86_64-linux-gnu/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0 ruby2.7 -e gem\ \"pygments.rb\"
>
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Run tests for ruby2.7 from debian/ruby-tests.rake │
> └──────────────────────────────────────────────────────────────────────────────┘
>
> RUBYLIB=. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-pygments.rb/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/2.7.0:/var/lib/gems/2.7.0:/usr/local/lib/ruby/gems/2.7.0:/usr/lib/ruby/gems/2.7.0:/usr/lib/x86_64-linux-gnu/ruby/gems/2.7.0:/usr/share/rubygems-integration/2.7.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0 ruby2.7 -S rake -f debian/ruby-tests.rake
> /usr/bin/ruby2.7 -w -I"test" /usr/share/rubygems-integration/all/gems/rake-13.0.3/lib/rake/rake_test_loader.rb "test/test_pygments.rb" -v
> /<<PKGBUILDDIR>>/test/test_pygments.rb:89: warning: assigned but unused variable - code
> Loaded suite /usr/share/rubygems-integration/all/gems/rake-13.0.3/lib/rake/rake_test_loader
> Started
> PygmentsConfigTest:
> test_filters: .: (0.253368)
> test_formatters: .: (0.004428)
> test_lexers: E
> ===============================================================================
> Error: test_lexers(PygmentsConfigTest): MentosError: Error loading lexer file. Was it created and vendored?
> /<<PKGBUILDDIR>>/debian/ruby-pygments.rb/usr/share/rubygems-integration/all/gems/pygments.rb-1.2.1/lib/pygments/popen.rb:157:in `rescue in lexers'
> /<<PKGBUILDDIR>>/debian/ruby-pygments.rb/usr/share/rubygems-integration/all/gems/pygments.rb-1.2.1/lib/pygments/popen.rb:151:in `lexers'
> /usr/lib/ruby/2.7.0/forwardable.rb:235:in `lexers'
> /<<PKGBUILDDIR>>/test/test_pygments.rb:284:in `test_lexers'
> 281: end
> 282:
> 283: def test_lexers
> => 284: list = P.lexers
> 285: assert list.has_key?('Ruby')
> 286: assert list['Ruby'][:aliases].include?('duby')
> 287: end
> ===============================================================================
> : (0.000830)
> test_styles: .: (0.000396)
> PygmentsCssTest:
> test_css: .: (0.001229)
> test_css_colorful: .: (0.001022)
> test_css_default: .: (0.000636)
> test_css_options: .: (0.000651)
> test_css_prefix: .: (0.000624)
> test_css_prefix_and_options: .: (0.000610)
> PygmentsHighlightTest:
> test_full_html_highlight: .: (0.081641)
> test_full_table_highlight: .: (0.001609)
> test_highlight_defaults_to_html: .: (0.001329)
> test_highlight_formatter_bbcode: .: (0.001151)
> test_highlight_formatter_terminal: .: (0.001066)
> test_highlight_on_multi_threads: .: (0.774033)
> test_highlight_options: .: (0.001977)
> test_highlight_still_works_with_invalid_code: .: (0.031023)
> test_highlight_works_on_utf8: .: (0.000866)
> test_highlight_works_on_utf8_all_chars_automatically: .: (0.000705)
> test_highlight_works_on_utf8_automatically: .: (0.000679)
> test_highlight_works_with_larger_files: .: (0.219833)
> test_highlight_works_with_multiple_newlines: .: (0.001844)
> test_highlight_works_with_multiple_utf8: .: (0.000724)
> test_highlight_works_with_multiple_utf8_and_trailing_newline: .: (0.000773)
> test_highlight_works_with_null_bytes: .: (0.000687)
> test_highlight_works_with_single_character_input: .: (0.014925)
> test_highlight_works_with_trailing_cr: .: (0.001439)
> test_highlight_works_with_trailing_newline: .: (0.001304)
> PygmentsLexerClassTest:
> test_find: E
> ===============================================================================
> Error: test_find(PygmentsLexerClassTest): MentosError: Error loading lexer file. Was it created and vendored?
> /<<PKGBUILDDIR>>/debian/ruby-pygments.rb/usr/share/rubygems-integration/all/gems/pygments.rb-1.2.1/lib/pygments/popen.rb:157:in `rescue in lexers'
> /<<PKGBUILDDIR>>/debian/ruby-pygments.rb/usr/share/rubygems-integration/all/gems/pygments.rb-1.2.1/lib/pygments/popen.rb:151:in `lexers'
> /usr/lib/ruby/2.7.0/forwardable.rb:235:in `lexers'
> /<<PKGBUILDDIR>>/debian/ruby-pygments.rb/usr/share/rubygems-integration/all/gems/pygments.rb-1.2.1/lib/pygments/lexer.rb:149:in `<module:Pygments>'
> /<<PKGBUILDDIR>>/debian/ruby-pygments.rb/usr/share/rubygems-integration/all/gems/pygments.rb-1.2.1/lib/pygments/lexer.rb:3:in `<top (required)>'
> /<<PKGBUILDDIR>>/test/test_pygments.rb:209:in `test_find'
> 206:
> 207: class PygmentsLexerClassTest < Test::Unit::TestCase
> 208: def test_find
> => 209: assert_equal 'Ruby', P::Lexer['Ruby'].name
> 210: assert_equal 'Ruby', P::Lexer['ruby'].name
> 211: assert_equal 'Ruby', P::Lexer['rb'].name
> 212: assert_equal 'Ruby', P::Lexer['rake'].name
> ===============================================================================
> : (0.002163)
> test_find_by_alias: E
> ===============================================================================
> Error: test_find_by_alias(PygmentsLexerClassTest): TypeError: superclass mismatch for class Lexer
> /<<PKGBUILDDIR>>/debian/ruby-pygments.rb/usr/share/rubygems-integration/all/gems/pygments.rb-1.2.1/lib/pygments/lexer.rb:4:in `<module:Pygments>'
> /<<PKGBUILDDIR>>/debian/ruby-pygments.rb/usr/share/rubygems-integration/all/gems/pygments.rb-1.2.1/lib/pygments/lexer.rb:3:in `<top (required)>'
> /<<PKGBUILDDIR>>/test/test_pygments.rb:222:in `test_find_by_alias'
> 219: end
> 220:
> 221: def test_find_by_alias
> => 222: assert_equal P::Lexer['Ruby'], P::Lexer.find_by_alias('rb')
> 223: assert_equal P::Lexer['Ruby'], P::Lexer.find_by_alias('ruby')
> 224: assert_equal P::Lexer['Scala'], P::Lexer.find_by_alias('scala')
> 225: assert_equal P::Lexer['Go'], P::Lexer.find_by_alias('go')
> ===============================================================================
> : (0.000991)
> test_find_by_name: E
> ===============================================================================
> Error: test_find_by_name(PygmentsLexerClassTest): TypeError: superclass mismatch for class Lexer
> /<<PKGBUILDDIR>>/debian/ruby-pygments.rb/usr/share/rubygems-integration/all/gems/pygments.rb-1.2.1/lib/pygments/lexer.rb:4:in `<module:Pygments>'
> /<<PKGBUILDDIR>>/debian/ruby-pygments.rb/usr/share/rubygems-integration/all/gems/pygments.rb-1.2.1/lib/pygments/lexer.rb:3:in `<top (required)>'
> /<<PKGBUILDDIR>>/test/test_pygments.rb:217:in `test_find_by_name'
> 214: end
> 215:
> 216: def test_find_by_name
> => 217: assert_equal P::Lexer['Ruby'], P::Lexer.find_by_name('Ruby')
> 218: assert_equal P::Lexer['C'], P::Lexer.find_by_name('C')
> 219: end
> 220:
> ===============================================================================
> : (0.001090)
> test_find_lexer_by_extname: E
> ===============================================================================
> Error: test_find_lexer_by_extname(PygmentsLexerClassTest): TypeError: superclass mismatch for class Lexer
> /<<PKGBUILDDIR>>/debian/ruby-pygments.rb/usr/share/rubygems-integration/all/gems/pygments.rb-1.2.1/lib/pygments/lexer.rb:4:in `<module:Pygments>'
> /<<PKGBUILDDIR>>/debian/ruby-pygments.rb/usr/share/rubygems-integration/all/gems/pygments.rb-1.2.1/lib/pygments/lexer.rb:3:in `<top (required)>'
> /<<PKGBUILDDIR>>/test/test_pygments.rb:229:in `test_find_lexer_by_extname'
> 226: end
> 227:
> 228: def test_find_lexer_by_extname
> => 229: assert_equal P::Lexer['Ruby'], P::Lexer.find_by_extname('.rb')
> 230: assert_equal P::Lexer['PHP'], P::Lexer.find_by_extname('.php4')
> 231: assert_equal P::Lexer['PHP'], P::Lexer.find_by_extname('.php5')
> 232: assert_equal P::Lexer['Groff'], P::Lexer.find_by_extname('.1')
> ===============================================================================
> : (0.000917)
> test_find_lexer_by_mimetype: E
> ===============================================================================
> Error: test_find_lexer_by_mimetype(PygmentsLexerClassTest): TypeError: superclass mismatch for class Lexer
> /<<PKGBUILDDIR>>/debian/ruby-pygments.rb/usr/share/rubygems-integration/all/gems/pygments.rb-1.2.1/lib/pygments/lexer.rb:4:in `<module:Pygments>'
> /<<PKGBUILDDIR>>/debian/ruby-pygments.rb/usr/share/rubygems-integration/all/gems/pygments.rb-1.2.1/lib/pygments/lexer.rb:3:in `<top (required)>'
> /<<PKGBUILDDIR>>/test/test_pygments.rb:240:in `test_find_lexer_by_mimetype'
> 237: end
> 238:
> 239: def test_find_lexer_by_mimetype
> => 240: assert_equal P::Lexer['Ruby'], P::Lexer.find_by_mimetype('text/x-ruby')
> 241: assert_equal P::Lexer['JSON'], P::Lexer.find_by_mimetype('application/json')
> 242: end
> 243: end
> ===============================================================================
> : (0.000896)
> PygmentsLexerTest:
> test_lexer_by_content: .: (0.001002)
> test_lexer_by_filename: .: (0.117606)
> test_lexer_by_filename_and_content: .: (0.001860)
> test_lexer_by_mimetype: .: (0.001412)
> test_lexer_by_name: .: (0.008761)
> test_lexer_by_nothing: .: (0.001944)
> PygmentsValidityTest:
> test_add_ids_on_empty_string: .: (0.000120)
> test_add_ids_with_padding: .: (0.000069)
> test_add_ids_with_starting_slashes: .: (0.000045)
> test_add_ids_with_unicode_data: .: (0.000044)
> test_get_fixed_bits_from_header: .: (0.000077)
> test_get_fixed_bits_from_header_works_with_large_headers: .: (0.000086)
> test_size_check: .: (0.000048)
> test_size_check_bad: .: (0.000036)
>
> Finished in 1.542649161 seconds.
> -------------------------------------------------------------------------------
> 48 tests, 69 assertions, 0 failures, 6 errors, 0 pendings, 0 omissions, 0 notifications
> 87.5% passed
> -------------------------------------------------------------------------------
> 31.12 tests/s, 44.73 assertions/s
> rake aborted!
> Command failed with status (1): [ruby -w -I"test" /usr/share/rubygems-integration/all/gems/rake-13.0.3/lib/rake/rake_test_loader.rb "test/test_pygments.rb" -v]
> /usr/share/rubygems-integration/all/gems/rake-13.0.3/exe/rake:27:in `<top (required)>'
> Tasks: TOP => default
> (See full trace by running task with --trace)
> ERROR: Test "ruby2.7" failed.
The full build log is available from:
http://qa-logs.debian.net/2021/10/23/ruby-pygments.rb_1.2.1-2_unstable.log
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
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the Pkg-ruby-extras-maintainers
mailing list