[DRE-maint] Bug#996511: ruby-sprockets: FTBFS with ruby3.0: ERROR: Test "ruby3.0" failed: ArgumentError: wrong number of arguments (given 2, expected 1)

Antonio Terceiro terceiro at debian.org
Fri Oct 15 00:47:03 BST 2021


Source: ruby-sprockets
Version: 3.7.2-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: debian-ruby at lists.debian.org
Usertags: ruby3.0

Hi,

We are about to enable building against ruby3.0 on unstable. During a test
rebuild, ruby-sprockets 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):
> ArgumentError: wrong number of arguments (given 2, expected 1)
>     <internal:dir>:14:in `open'
>     /<<PKGBUILDDIR>>/test/test_performance.rb:23:in `entries'
>     /<<PKGBUILDDIR>>/test/test_performance.rb:23:in `entries'
>     /<<PKGBUILDDIR>>/debian/ruby-sprockets/usr/lib/ruby/vendor_ruby/sprockets/path_utils.rb:56:in `entries'
>     /<<PKGBUILDDIR>>/debian/ruby-sprockets/usr/lib/ruby/vendor_ruby/sprockets/cached_environment.rb:19:in `block in initialize'
>     /<<PKGBUILDDIR>>/debian/ruby-sprockets/usr/lib/ruby/vendor_ruby/sprockets/cached_environment.rb:35:in `entries'
>     /<<PKGBUILDDIR>>/debian/ruby-sprockets/usr/lib/ruby/vendor_ruby/sprockets/resolve.rb:179:in `dirname_matches'
>     /<<PKGBUILDDIR>>/debian/ruby-sprockets/usr/lib/ruby/vendor_ruby/sprockets/resolve.rb:157:in `path_matches'
>     /<<PKGBUILDDIR>>/debian/ruby-sprockets/usr/lib/ruby/vendor_ruby/sprockets/resolve.rb:125:in `block in resolve_under_paths'
>     /<<PKGBUILDDIR>>/debian/ruby-sprockets/usr/lib/ruby/vendor_ruby/sprockets/resolve.rb:124:in `each'
>     /<<PKGBUILDDIR>>/debian/ruby-sprockets/usr/lib/ruby/vendor_ruby/sprockets/resolve.rb:124:in `resolve_under_paths'
>     /<<PKGBUILDDIR>>/debian/ruby-sprockets/usr/lib/ruby/vendor_ruby/sprockets/resolve.rb:108:in `resolve_logical_path'
>     /<<PKGBUILDDIR>>/debian/ruby-sprockets/usr/lib/ruby/vendor_ruby/sprockets/resolve.rb:35:in `resolve'
>     /<<PKGBUILDDIR>>/debian/ruby-sprockets/usr/lib/ruby/vendor_ruby/sprockets/legacy.rb:66:in `resolve_with_compat'
>     /<<PKGBUILDDIR>>/debian/ruby-sprockets/usr/lib/ruby/vendor_ruby/sprockets/base.rb:64:in `find_asset'
>     /<<PKGBUILDDIR>>/debian/ruby-sprockets/usr/lib/ruby/vendor_ruby/sprockets/environment.rb:30:in `find_asset'
>     /<<PKGBUILDDIR>>/debian/ruby-sprockets/usr/lib/ruby/vendor_ruby/sprockets/base.rb:92:in `[]'
>     /<<PKGBUILDDIR>>/test/test_sprocketize.rb:58:in `block in <class:TestSprockets>'
>     /usr/lib/ruby/vendor_ruby/minitest/test.rb:98:in `block (3 levels) in run'
>     /usr/lib/ruby/vendor_ruby/minitest/test.rb:195:in `capture_exceptions'
>     /usr/lib/ruby/vendor_ruby/minitest/test.rb:95:in `block (2 levels) in run'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:270:in `time_it'
>     /usr/lib/ruby/vendor_ruby/minitest/test.rb:94:in `block in run'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:365:in `on_signal'
>     /usr/lib/ruby/vendor_ruby/minitest/test.rb:211:in `with_info_handler'
>     /usr/lib/ruby/vendor_ruby/minitest/test.rb:93:in `run'
>     /usr/lib/ruby/vendor_ruby/minitest.rb:1029:in `run_one_method'
>     /usr/lib/ruby/vendor_ruby/minitest/parallel.rb:33:in `block (2 levels) in start'
> 
> 773 runs, 1320 assertions, 26 failures, 422 errors, 2 skips
> rake aborted!
> Command failed with status (1): [ruby -w -I"test" /usr/lib/ruby/gems/3.0.0/gems/rake-13.0.3/lib/rake/rake_test_loader.rb "test/test_asset.rb" "test/test_bundle.rb" "test/test_cache_store.rb" "test/test_caching.rb" "test/test_coffee_script_processor.rb" "test/test_context.rb" "test/test_digest_utils.rb" "test/test_ejs_processor.rb" "test/test_encoding.rb" "test/test_encoding_utils.rb" "test/test_engines.rb" "test/test_environment.rb" "test/test_erb_processor.rb" "test/test_http_utils.rb" "test/test_jst_processor.rb" "test/test_loader.rb" "test/test_manifest.rb" "test/test_manifest_utils.rb" "test/test_path_dependency_utils.rb" "test/test_path_digest_utils.rb" "test/test_path_utils.rb" "test/test_performance.rb" "test/test_processor_utils.rb" "test/test_rake_task.rb" "test/test_require.rb" "test/test_resolve.rb" "test/test_sass.rb" "test/test_server.rb" "test/test_source_maps.rb" "test/test_sprocketize.rb" "test/test_transformers.rb" "test/test_uglifier_compressor.rb" "test/test_uri_tar.rb" "test/test_uri_utils.rb" "test/test_utils.rb" "--exclude=/eco|closure|yui/" -v]
> 
> Tasks: TOP => default
> (See full trace by running task with --trace)
> ERROR: Test "ruby3.0" failed: 


The full build log is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-sprockets/ruby-sprockets_3.7.2-1+rebuild1633396062_amd64.build.txt
-------------- 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/20211014/abc704f2/attachment-0001.sig>


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