Source: ruby-pygments.rb
Version: 2.4.1+ds-1
Severity: serious
Tags: ftbfs

We needed to upgrade pygments to 2.19 (#1117224), and ruby-pygments.rb 
FTBFS as a result:

RUBYLIB=. 
GEM_PATH=/build/reproducible-path/ruby-pygments.rb-2.4.1+ds/debian/ruby-pygments.rb/usr/share/rubygems-integration/all:/build/reproducible-path/ruby-pygments.rb-2.4.1+ds/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.3.0:/var/lib/gems/3.3.0:/usr/local/lib/ruby/gems/3.3.0:/usr/lib/ruby/gems/3.3.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.3.0:/usr/share/rubygems-integration/3.3.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0
 ruby3.3 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake
/usr/bin/ruby3.3 -w -I"test" 
/usr/share/rubygems-integration/all/gems/rake-13.2.1/lib/rake/rake_test_loader.rb
 "test/test_pygments.rb"  -v
Loaded suite 
/usr/share/rubygems-integration/all/gems/rake-13.2.1/lib/rake/rake_test_loader
Started
PygmentsConfigTest:
  test_filters:                                         .: (0.032670)
  test_formatters:                                      .: (0.006292)
  test_lexers:                                          .: (0.006611)
  test_styles:                                          .: (0.000686)
PygmentsCssTest:
  test_css:                                             .: (0.001037)
  test_css_colorful:                                    F
===============================================================================
Failure: test_css_colorful(PygmentsCssTest):
  </\.c\ \{\ color:\ \#888888\ \}/> was expected to be =~
  <"pre { line-height: 125%; }\n" +
  "td.linenos .normal { color: inherit; background-color: transparent; 
padding-left: 5px; padding-right: 5px; }\n" +
  "span.linenos { color: inherit; background-color: transparent; padding-left: 
5px; padding-right: 5px; }\n" +
  "td.linenos .special { color: #000000; background-color: #ffffc0; 
padding-left: 5px; padding-right: 5px; }\n" +
  "span.linenos.special { color: #000000; background-color: #ffffc0; 
padding-left: 5px; padding-right: 5px; }\n" +
  ".hll { background-color: #ffffcc }\n" +
  ".c { color: #888 } /* Comment */\n" +
  ".err { color: #F00; background-color: #FAA } /* Error */\n" +
  ".k { color: #080; font-weight: bold } /* Keyword */\n" +
  ".o { color: #333 } /* Operator */\n" +
  ".ch { color: #888 } /* Comment.Hashbang */\n" +
  ".cm { color: #888 } /* Comment.Multiline */\n" +
  ".cp { color: #579 } /* Comment.Preproc */\n" +
  ".cpf { color: #888 } /* Comment.PreprocFile */\n" +
  ".c1 { color: #888 } /* Comment.Single */\n" +
  ".cs { color: #C00; font-weight: bold } /* Comment.Special */\n" +
  ".gd { color: #A00000 } /* Generic.Deleted */\n" +
  ".ge { font-style: italic } /* Generic.Emph */\n" +
  ".ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */\n" +
  ".gr { color: #F00 } /* Generic.Error */\n" +
  ".gh { color: #000080; font-weight: bold } /* Generic.Heading */\n" +
  ".gi { color: #00A000 } /* Generic.Inserted */\n" +
  ".go { color: #888 } /* Generic.Output */\n" +
  ".gp { color: #C65D09; font-weight: bold } /* Generic.Prompt */\n" +
  ".gs { font-weight: bold } /* Generic.Strong */\n" +
  ".gu { color: #800080; font-weight: bold } /* Generic.Subheading */\n" +
  ".gt { color: #04D } /* Generic.Traceback */\n" +
  ".kc { color: #080; font-weight: bold } /* Keyword.Constant */\n" +
  ".kd { color: #080; font-weight: bold } /* Keyword.Declaration */\n" +
  ".kn { color: #080; font-weight: bold } /* Keyword.Namespace */\n" +
  ".kp { color: #038; font-weight: bold } /* Keyword.Pseudo */\n" +
  ".kr { color: #080; font-weight: bold } /* Keyword.Reserved */\n" +
  ".kt { color: #339; font-weight: bold } /* Keyword.Type */\n" +
  ".m { color: #60E; font-weight: bold } /* Literal.Number */\n" +
  ".s { background-color: #FFF0F0 } /* Literal.String */\n" +
  ".na { color: #00C } /* Name.Attribute */\n" +
  ".nb { color: #007020 } /* Name.Builtin */\n" +
  ".nc { color: #B06; font-weight: bold } /* Name.Class */\n" +
  ".no { color: #036; font-weight: bold } /* Name.Constant */\n" +
  ".nd { color: #555; font-weight: bold } /* Name.Decorator */\n" +
  ".ni { color: #800; font-weight: bold } /* Name.Entity */\n" +
  ".ne { color: #F00; font-weight: bold } /* Name.Exception */\n" +
  ".nf { color: #06B; font-weight: bold } /* Name.Function */\n" +
  ".nl { color: #970; font-weight: bold } /* Name.Label */\n" +
  ".nn { color: #0E84B5; font-weight: bold } /* Name.Namespace */\n" +
  ".nt { color: #070 } /* Name.Tag */\n" +
  ".nv { color: #963 } /* Name.Variable */\n" +
  ".ow { color: #000; font-weight: bold } /* Operator.Word */\n" +
  ".w { color: #BBB } /* Text.Whitespace */\n" +
  ".mb { color: #60E; font-weight: bold } /* Literal.Number.Bin */\n" +
  ".mf { color: #60E; font-weight: bold } /* Literal.Number.Float */\n" +
  ".mh { color: #058; font-weight: bold } /* Literal.Number.Hex */\n" +
  ".mi { color: #00D; font-weight: bold } /* Literal.Number.Integer */\n" +
  ".mo { color: #40E; font-weight: bold } /* Literal.Number.Oct */\n" +
  ".sa { background-color: #FFF0F0 } /* Literal.String.Affix */\n" +
  ".sb { background-color: #FFF0F0 } /* Literal.String.Backtick */\n" +
  ".sc { color: #04D } /* Literal.String.Char */\n" +
  ".dl { background-color: #FFF0F0 } /* Literal.String.Delimiter */\n" +
  ".sd { color: #D42 } /* Literal.String.Doc */\n" +
  ".s2 { background-color: #FFF0F0 } /* Literal.String.Double */\n" +
  ".se { color: #666; font-weight: bold; background-color: #FFF0F0 } /* 
Literal.String.Escape */\n" +
  ".sh { background-color: #FFF0F0 } /* Literal.String.Heredoc */\n" +
  ".si { background-color: #EEE } /* Literal.String.Interpol */\n" +
  ".sx { color: #D20; background-color: #FFF0F0 } /* Literal.String.Other */\n" 
+
  ".sr { color: #000; background-color: #FFF0FF } /* Literal.String.Regex */\n" 
+
  ".s1 { background-color: #FFF0F0 } /* Literal.String.Single */\n" +
  ".ss { color: #A60 } /* Literal.String.Symbol */\n" +
  ".bp { color: #007020 } /* Name.Builtin.Pseudo */\n" +
  ".fm { color: #06B; font-weight: bold } /* Name.Function.Magic */\n" +
  ".vc { color: #369 } /* Name.Variable.Class */\n" +
  ".vg { color: #D70; font-weight: bold } /* Name.Variable.Global */\n" +
  ".vi { color: #33B } /* Name.Variable.Instance */\n" +
  ".vm { color: #963 } /* Name.Variable.Magic */\n" +
  ".il { color: #00D; font-weight: bold } /* Literal.Number.Integer.Long */">.
/build/reproducible-path/ruby-pygments.rb-2.4.1+ds/test/test_pygments.rb:201:in 
`test_css_colorful'
     198:   end
     199:
     200:   def test_css_colorful
  => 201:     assert_match '.c { color: #888888 }', P.css(style: 'colorful')
     202:   end
     203: end
     204:
===============================================================================
: (0.004512)
  test_css_options:                                     .: (0.000584)
  test_css_prefix:                                      .: (0.000616)
  test_css_prefix_and_options:                          .: (0.000310)
PygmentsHighlightTest:
  test_highlight_defaults_to_html:                      .: (0.056655)
  test_highlight_formatter_terminal:                    .: (0.000946)
  test_highlight_on_multi_threads:                      O
===============================================================================
Omission: We do not actually support multithreading 
[test_highlight_on_multi_threads(PygmentsHighlightTest)]
/build/reproducible-path/ruby-pygments.rb-2.4.1+ds/test/test_pygments.rb:101:in 
`test_highlight_on_multi_threads'
===============================================================================
: (0.000300)
  test_highlight_options:                               .: (0.000704)
  test_highlight_still_works_with_invalid_code:         .: (0.017424)
  test_highlight_works_on_utf8:                         .: (0.000800)
  test_highlight_works_on_utf8_all_chars_automatically: .: (0.000792)
  test_highlight_works_on_utf8_automatically:           .: (0.000630)
  test_highlight_works_with_larger_files:               .: (0.013578)
  test_highlight_works_with_multiple_newlines:          .: (0.000898)
  test_highlight_works_with_multiple_utf8:              .: (0.000402)
  test_highlight_works_with_multiple_utf8_and_trailing_newline: .: (0.000427)
  test_highlight_works_with_null_bytes:                 .: (0.000384)
  test_highlight_works_with_trailing_cr:                .: (0.000733)
  test_highlight_works_with_trailing_newline:           .: (0.000704)
  test_version:                                         .: (0.000173)
PygmentsLexerClassTest:
  test_find:                                            .: (0.000108)
  test_find_by_alias:                                   .: (0.000038)
  test_find_by_name:                                    .: (0.000028)
  test_find_lexer_by_extname:                           .: (0.000040)
  test_find_lexer_by_mimetype:                          .: (0.000025)
PygmentsLexerTest:
  test_lexer_by_content:                                .: (0.000489)
  test_lexer_by_filename:                               .: (0.085385)
  test_lexer_by_filename_and_content:                   .: (0.008844)
  test_lexer_by_mimetype:                               .: (0.000682)
  test_lexer_by_name:                                   .: (0.003649)
  test_lexer_by_nothing:                                .: (0.002117)

Finished in 0.251694417 seconds.
-------------------------------------------------------------------------------
36 tests, 55 assertions, 1 failures, 0 errors, 0 pendings, 1 omissions, 0 
notifications
97.1429% passed
-------------------------------------------------------------------------------
143.03 tests/s, 218.52 assertions/s
rake aborted!
Command failed with status (1): [ruby -w -I"test" 
/usr/share/rubygems-integration/all/gems/rake-13.2.1/lib/rake/rake_test_loader.rb
 "test/test_pygments.rb"  -v]
/usr/share/rubygems-integration/all/gems/rake-13.2.1/exe/rake:27:in `<top 
(required)>'
Tasks: TOP => default
(See full trace by running task with --trace)
/usr/lib/ruby/vendor_ruby/gem2deb.rb:52:in `run': /usr/bin/ruby3.3 
/usr/bin/gem2deb-test-runner (Gem2Deb::CommandFailed)
        from /usr/lib/ruby/vendor_ruby/gem2deb.rb:64:in `block in run_ruby'
        from /usr/lib/ruby/vendor_ruby/gem2deb.rb:87:in `maybe_crossbuild'
        from /usr/lib/ruby/vendor_ruby/gem2deb.rb:63:in `run_ruby'
        from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:189:in 
`run_tests_for_version'
        from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:176:in `block in 
run_tests'
        from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:175:in `each'
        from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:175:in `run_tests'
        from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:71:in `run_tests'
        from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:57:in `install'
        from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:163:in `install'
        from /usr/bin/dh_ruby:89:in `<main>'
dh_auto_install: error: dh_ruby --install 
/build/reproducible-path/ruby-pygments.rb-2.4.1\+ds/debian/ruby-pygments.rb 
returned exit code 1

Judging from 
https://github.com/pygments/pygments.rb/blob/master/CHANGELOG.adoc, this 
is fixed in pygments.rb 4.0.0.  Could you please upgrade, and bump your 
build-dependency on python3-pygments to (>= 2.19.0) so that britney 
knows that these packages need to migrate to testing together?

Thanks,

-- 
Colin Watson (he/him)                              [[email protected]]

Reply via email to