[DRE-maint] Bug#1019684: yard: FTBFS with ruby3.1: ERROR: Test "ruby3.1" failed: Failure/Error: require "gettext/mo"

Antonio Terceiro terceiro at debian.org
Tue Sep 13 13:11:25 BST 2022


Source: yard
Version: 0.9.27-1
Severity: important
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.1

Hi,

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

Relevant part of the build log (hopefully):
>      Failure/Error: require "gettext/mo"
> 
>        #<File (class)> received :exist? with unexpected arguments
>          expected: ("foo/fr.po")
>               got: ("/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/extensions/x86_64-linux/3.1.0/RedCloth-4.3.2/gem.build_complete")
>      # ./lib/yard/i18n/po_parser.rb:21:in `<class:POParser>'
>      # ./lib/yard/i18n/po_parser.rb:8:in `<module:I18n>'
>      # ./lib/yard/i18n/po_parser.rb:3:in `<module:YARD>'
>      # ./lib/yard/i18n/po_parser.rb:2:in `<top (required)>'
>      # ./lib/yard/i18n/locale.rb:50:in `load'
>      # ./spec/i18n/locale_spec.rb:62:in `block (3 levels) in <top (required)>'
>      # ./spec/spec_helper.rb:121:in `block (2 levels) in <top (required)>'
>      # ------------------
>      # --- Caused by: ---
>      # LoadError:
>      #   cannot load such file -- prime
>      #   ./lib/yard/i18n/po_parser.rb:21:in `<class:POParser>'
> 
> Top 5 slowest examples (1.36 seconds, 29.1% of total time):
>   YARD::RegistryStore#save never saves as single object db if single_object_db is false
>     1.02 seconds ./spec/registry_store_spec.rb:152
>   YARD::Registry Thread local maintains two Registries in separate threads
>     0.10087 seconds ./spec/registry_spec.rb:396
>   YARD::Registry Thread local allows setting of yardoc_file in separate threads
>     0.10043 seconds ./spec/registry_spec.rb:417
>   YARD::Registry Thread local allows setting of po_dir in separate threads
>     0.10031 seconds ./spec/registry_spec.rb:442
>   YARD::Server::Commands::LibraryCommand#call sets :rdoc as the default markup in regular mode
>     0.04345 seconds ./spec/server/commands/library_command_spec.rb:34
> 
> Top 5 slowest example groups:
>   YARD::Server::Commands::LibraryCommand
>     0.04285 seconds average (0.12856 seconds / 3 examples) ./spec/server/commands/library_command_spec.rb:4
>   YARD::RegistryStore
>     0.03318 seconds average (1.09 seconds / 33 examples) ./spec/registry_store_spec.rb:3
>   YARD::Parser::C::CParser
>     0.02566 seconds average (0.46193 seconds / 18 examples) ./spec/parser/c_parser_spec.rb:3
>   YARD::Templates::Engine::Template__build_yard_Y2Z3fT_yard_0_9_27_templates_default_module
>     0.02072 seconds average (0.14503 seconds / 7 examples) ./spec/templates/module_spec.rb:4
>   YARD::CLI::Display
>     0.01929 seconds average (0.05787 seconds / 3 examples) ./spec/cli/display_spec.rb:3
> 
> Finished in 4.68 seconds (files took 0.61565 seconds to load)
> 1938 examples, 1 failure, 9 pending
> 
> Failed examples:
> 
> rspec ./spec/i18n/locale_spec.rb:43 # YARD::I18n::Locale#load returns true for existent PO
> 
> /usr/bin/ruby3.1 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.10.3/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.10.1/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.10.1/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
> ERROR: Test "ruby3.1" failed: 


The full build log is available from:
https://people.debian.org/~terceiro/ruby3.1/17/yard/yard_0.9.27-1+rebuild1663008419_amd64-2022-09-12T18:47:00Z.build

To reproduce this, you need to install ruby-all-dev >= 1:3.0+2. Depending on
when you try this, it might mean installing ruby-all-dev from experimental, or
if the transition has already started, a normal build on unstable will be
enough.  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
-------------- 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/20220913/2269fa95/attachment-0001.sig>


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