[DRE-maint] Bug#1084368: ruby-rspec-parameterized: FTBFS: Failure/Error: require 'unparser'

Santiago Vila sanvila at debian.org
Mon Oct 7 09:41:27 BST 2024


Package: src:ruby-rspec-parameterized
Version: 0.4.2-2
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
  debian/rules binary
dh binary --buildsystem=ruby --with ruby
    dh_update_autotools_config -O--buildsystem=ruby
    dh_autoreconf -O--buildsystem=ruby
    dh_auto_configure -O--buildsystem=ruby
	dh_ruby --configure
    dh_auto_build -O--buildsystem=ruby
	dh_ruby --build
    dh_auto_test -O--buildsystem=ruby
	dh_ruby --test
    create-stamp debian/debhelper-build-stamp
    dh_testroot -O--buildsystem=ruby
    dh_prep -O--buildsystem=ruby
    dh_auto_install --destdir=debian/ruby-rspec-parameterized/ -O--buildsystem=ruby
	dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-rspec-parameterized
/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241006-262586-9ys9tn/gemspec
Failed to load /dev/null because it doesn't contain valid YAML hash
WARNING:  licenses is empty, but is recommended.  Use a license identifier from
http://spdx.org/licenses or 'Nonstandard' for a nonstandard license,
or set it to nil if you don't want to specify a license.
WARNING:  open-ended dependency on parser (>= 0) is not recommended
   use a bounded requirement, such as '~> x.y'
WARNING:  open-ended dependency on unparser (>= 0) is not recommended
   use a bounded requirement, such as '~> x.y'
WARNING:  open-ended dependency on proc_to_ast (>= 0) is not recommended
   use a bounded requirement, such as '~> x.y'
WARNING:  open-ended dependency on binding_ninja (>= 0.2.3) is not recommended
   if binding_ninja is semantically versioned, use:
     add_runtime_dependency 'binding_ninja', '~> 0.2', '>= 0.2.3'
WARNING:  open-ended dependency on rake (>= 12.0.0, development) is not recommended
   if rake is semantically versioned, use:
     add_development_dependency 'rake', '~> 12.0', '>= 12.0.0'
WARNING:  See https://guides.rubygems.org/specification-reference/ for help
   Successfully built RubyGem
   Name: rspec-parameterized
   Version: 0.4.2
   File: rspec-parameterized-0.4.2.gem
/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-rspec-parameterized/usr/share/rubygems-integration/all /tmp/d20241006-262586-9ys9tn/rspec-parameterized-0.4.2.gem
Failed to load /dev/null because it doesn't contain valid YAML hash
/<<PKGBUILDDIR>>/debian/ruby-rspec-parameterized/usr/share/rubygems-integration/all/gems/rspec-parameterized-0.4.2/lib/rspec-parameterized.rb
/<<PKGBUILDDIR>>/debian/ruby-rspec-parameterized/usr/share/rubygems-integration/all/gems/rspec-parameterized-0.4.2/lib/rspec/parameterized.rb
/<<PKGBUILDDIR>>/debian/ruby-rspec-parameterized/usr/share/rubygems-integration/all/gems/rspec-parameterized-0.4.2/lib/rspec/parameterized/table.rb
/<<PKGBUILDDIR>>/debian/ruby-rspec-parameterized/usr/share/rubygems-integration/all/gems/rspec-parameterized-0.4.2/lib/rspec/parameterized/table_syntax.rb
/<<PKGBUILDDIR>>/debian/ruby-rspec-parameterized/usr/share/rubygems-integration/all/gems/rspec-parameterized-0.4.2/lib/rspec/parameterized/version.rb
Successfully installed rspec-parameterized-0.4.2
1 gem installed
cd debian/ruby-rspec-parameterized/usr/share/rubygems-integration/all
rm -rf bin
rm -rf build_info
rm -rf cache
rm -rf doc
rm -rf extensions
rmdir plugins
cd gems/rspec-parameterized-0.4.2
rm -f
chmod 644 lib/rspec/parameterized/table.rb lib/rspec/parameterized/table_syntax.rb lib/rspec/parameterized/version.rb lib/rspec/parameterized.rb lib/rspec-parameterized.rb
find lib/ -type d -empty -delete
cd -
cd -
dh_installchangelogs -pruby-rspec-parameterized /<<PKGBUILDDIR>>/CHANGELOG.md upstream
/usr/bin/ruby3.1 /usr/bin/gem2deb-test-runner

┌──────────────────────────────────────────────────────────────────────────────┐
│ Checking Rubygems dependency resolution on ruby3.1                           │
└──────────────────────────────────────────────────────────────────────────────┘

RUBYLIB=. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-rspec-parameterized/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0 ruby3.1 -e gem\ \"rspec-parameterized\"

┌──────────────────────────────────────────────────────────────────────────────┐
│ Run tests for ruby3.1 from debian/ruby-tests.rake                            │
└──────────────────────────────────────────────────────────────────────────────┘

RUBYLIB=. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-rspec-parameterized/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0 ruby3.1 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake
/usr/bin/ruby3.1 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation
warning: parser/current is loading parser/ruby31, which recognizes 3.1.6-compliant syntax, but you are running 3.1.2.
Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.

An error occurred while loading ./spec/parametarized_spec.rb.
Failure/Error: require 'unparser'

NameError:
   uninitialized constant Parser::Lexer::ESCAPES

           pairs = Parser::Lexer::ESCAPES.invert.map do |key, value|
                                ^^^^^^^^^
# /usr/share/rubygems-integration/all/gems/unparser-0.4.7/lib/unparser/emitter/literal/dynamic_body.rb:60:in `<class:DynamicBody>'
# /usr/share/rubygems-integration/all/gems/unparser-0.4.7/lib/unparser/emitter/literal/dynamic_body.rb:8:in `<class:Literal>'
# /usr/share/rubygems-integration/all/gems/unparser-0.4.7/lib/unparser/emitter/literal/dynamic_body.rb:5:in `<class:Emitter>'
# /usr/share/rubygems-integration/all/gems/unparser-0.4.7/lib/unparser/emitter/literal/dynamic_body.rb:4:in `<module:Unparser>'
# /usr/share/rubygems-integration/all/gems/unparser-0.4.7/lib/unparser/emitter/literal/dynamic_body.rb:3:in `<top (required)>'
# /usr/share/rubygems-integration/all/gems/unparser-0.4.7/lib/unparser.rb:112:in `<top (required)>'
# ./lib/rspec/parameterized.rb:3:in `<top (required)>'
# ./lib/rspec-parameterized.rb:1:in `<top (required)>'
# ./spec/spec_helper.rb:1:in `<top (required)>'
# ./spec/parametarized_spec.rb:1:in `<top (required)>'
# ------------------
# --- Caused by: ---
# LoadError:
#   cannot load such file -- unparser
#   ./lib/rspec/parameterized.rb:3:in `<top (required)>'
No examples found.

Finished in 0.00003 seconds (files took 0.15245 seconds to load)
0 examples, 0 failures, 1 error occurred outside of examples

/usr/bin/ruby3.1 -I/usr/share/rubygems-integration/all/gems/rspec-support-3.13.1/lib:/usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/lib /usr/share/rubygems-integration/all/gems/rspec-core-3.13.0/exe/rspec --pattern ./spec/\*\*/\*_spec.rb --format documentation failed
ERROR: Test "ruby3.1" failed. Exiting.
dh_auto_install: error: dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-rspec-parameterized returned exit code 1
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202410/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.



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