[DRE-maint] Bug#996312: ruby-librarian: FTBFS with ruby3.0: ERROR: Test "ruby3.0" failed: ArgumentError: tried to create Proc object without a block

Antonio Terceiro terceiro at debian.org
Tue Oct 12 23:45:50 BST 2021


Source: ruby-librarian
Version: 0.6.4-3
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-librarian 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:
>         tried to create Proc object without a block
>       # ./lib/librarian/dsl.rb:89:in `new'
>       # ./lib/librarian/dsl.rb:89:in `block in run'
>       # <internal:kernel>:90:in `tap'
>       # ./lib/librarian/dsl.rb:85:in `run'
>       # ./lib/librarian/dsl.rb:17:in `run'
>       # ./lib/librarian/environment.rb:148:in `dsl'
>       # ./spec/unit/spec_change_set_spec.rb:150:in `block (3 levels) in <module:Librarian>'
> 
> Deprecation Warnings:
> 
> Using `should` from rspec-expectations' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` with `config.expect_with(:rspec) { |c| c.syntax = :should }` instead. Called from /<<PKGBUILDDIR>>/spec/unit/dependency/requirement_spec.rb:13:in `block (2 levels) in <top (required)>'.
> 
> Using `stub` from rspec-mocks' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` instead. Called from /<<PKGBUILDDIR>>/spec/unit/action/clean_spec.rb:10:in `block (2 levels) in <module:Librarian>'.
> 
> 
> If you need more of the backtrace for any of these deprecations to
> identify where to make the necessary changes, you can configure
> `config.raise_errors_for_deprecations!`, and it will turn the
> deprecation warnings into errors, giving you the full backtrace.
> 
> 2 deprecation warnings total
> 
> Finished in 12.01 seconds (files took 1.01 seconds to load)
> 343 examples, 34 failures, 1 pending
> 
> Failed examples:
> 
> rspec ./spec/unit/dsl_spec.rb:12 # Librarian::Mock::Dsl a single source and a single dependency with a blank name should not not run with a blank name
> rspec ./spec/unit/dsl_spec.rb:24 # Librarian::Mock::Dsl a simple specfile - a single source, a single dependency, no transitive dependencies should run with a hash source
> rspec ./spec/unit/dsl_spec.rb:35 # Librarian::Mock::Dsl a simple specfile - a single source, a single dependency, no transitive dependencies should run with a shortcut source
> rspec ./spec/unit/dsl_spec.rb:46 # Librarian::Mock::Dsl a simple specfile - a single source, a single dependency, no transitive dependencies should run with a block hash source
> rspec ./spec/unit/dsl_spec.rb:58 # Librarian::Mock::Dsl a simple specfile - a single source, a single dependency, no transitive dependencies should run with a block named source
> rspec ./spec/unit/dsl_spec.rb:70 # Librarian::Mock::Dsl a simple specfile - a single source, a single dependency, no transitive dependencies should run with a default hash source
> rspec ./spec/unit/dsl_spec.rb:82 # Librarian::Mock::Dsl a simple specfile - a single source, a single dependency, no transitive dependencies should run with a default named source
> rspec ./spec/unit/dsl_spec.rb:94 # Librarian::Mock::Dsl a simple specfile - a single source, a single dependency, no transitive dependencies should run with a default shortcut source
> rspec ./spec/unit/dsl_spec.rb:106 # Librarian::Mock::Dsl a simple specfile - a single source, a single dependency, no transitive dependencies should run with a shortcut source hash definition
> rspec ./spec/unit/dsl_spec.rb:117 # Librarian::Mock::Dsl a simple specfile - a single source, a single dependency, no transitive dependencies should run with a shortcut source block definition
> rspec ./spec/unit/dsl_spec.rb:128 # Librarian::Mock::Dsl a simple specfile - a single source, a single dependency, no transitive dependencies should run with a default shortcut source hash definition
> rspec ./spec/unit/dsl_spec.rb:141 # Librarian::Mock::Dsl a simple specfile - a single source, a single dependency, no transitive dependencies should run with a default shortcut source block definition
> rspec ./spec/unit/dsl_spec.rb:158 # Librarian::Mock::Dsl validating source options should raise when given unrecognized optiosn options
> rspec ./spec/unit/lockfile_spec.rb:31 # Librarian::Lockfile sanity the resolution 
> rspec ./spec/unit/lockfile_spec.rb:32 # Librarian::Lockfile sanity the resolution 
> rspec ./spec/unit/lockfile_spec.rb:41 # Librarian::Lockfile#save just saving should return the lockfile text
> rspec ./spec/unit/lockfile_spec.rb:49 # Librarian::Lockfile#save saving and reloading should have the expected manifests
> rspec ./spec/unit/lockfile_spec.rb:58 # Librarian::Lockfile#save bouncing should return the same lockfile text after bouncing as before bouncing
> rspec ./spec/unit/resolver_spec.rb:36 # Librarian::Resolver a simple specfile 
> rspec ./spec/unit/resolver_spec.rb:66 # Librarian::Resolver a specfile with a dep from one src depending on a dep from another src 
> rspec ./spec/unit/resolver_spec.rb:96 # Librarian::Resolver a specfile with a dep in multiple sources should have the expected number of sources
> rspec ./spec/unit/resolver_spec.rb:102 # Librarian::Resolver a specfile with a dep in multiple sources 
> rspec ./spec/unit/resolver_spec.rb:104 # Librarian::Resolver a specfile with a dep in multiple sources should have the manifest from the final source with a matching manifest
> rspec ./spec/unit/resolver_spec.rb:132 # Librarian::Resolver a specfile with a dep depending on a nonexistent dep 
> rspec ./spec/unit/resolver_spec.rb:160 # Librarian::Resolver a specfile with conflicting constraints 
> rspec ./spec/unit/resolver_spec.rb:191 # Librarian::Resolver a specfile with cyclic constraints when cyclic resolutions are forbidden 
> rspec ./spec/unit/resolver_spec.rb:197 # Librarian::Resolver a specfile with cyclic constraints when cyclic resolutions are permitted should have all the manifests
> rspec ./spec/unit/resolver_spec.rb:207 # Librarian::Resolver updating should not work
> rspec ./spec/unit/resolver_spec.rb:245 # Librarian::Resolver a change to the spec should work
> rspec ./spec/unit/spec_change_set_spec.rb:13 # Librarian::SpecChangeSet a simple root removal should work
> rspec ./spec/unit/spec_change_set_spec.rb:44 # Librarian::SpecChangeSet a simple root add should work
> rspec ./spec/unit/spec_change_set_spec.rb:76 # Librarian::SpecChangeSet a simple root change when the change is consistent should work
> rspec ./spec/unit/spec_change_set_spec.rb:108 # Librarian::SpecChangeSet a simple root change when the change is inconsistent should work
> rspec ./spec/unit/spec_change_set_spec.rb:141 # Librarian::SpecChangeSet a simple root source change should work
> 
> /usr/bin/ruby3.0 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.9.3/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.9.2/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
> ERROR: Test "ruby3.0" failed: 


The full build log is available at
https://people.debian.org/~kanashiro/ruby3.0/round2/builds/3/ruby-librarian/ruby-librarian_0.6.4-3+rebuild1633385463_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/20211012/526fecc8/attachment.sig>


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