[DRE-maint] Bug#1084363: ruby-proc-to-ast: FTBFS: NameError: uninitialized constant Parser::Lexer::ESCAPES

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


Package: src:ruby-proc-to-ast
Version: 0.1.0-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-proc-to-ast/ -O--buildsystem=ruby
	dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-proc-to-ast
/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241006-1851294-tazogj/gemspec
Failed to load /dev/null because it doesn't contain valid YAML hash
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 coderay (>= 0) is not recommended
   use a bounded requirement, such as '~> x.y'
WARNING:  open-ended dependency on bundler (>= 1.5, development) is not recommended
   if bundler is semantically versioned, use:
     add_development_dependency 'bundler', '~> 1.5'
WARNING:  open-ended dependency on rake (>= 0, development) is not recommended
   use a bounded requirement, such as '~> x.y'
WARNING:  open-ended dependency on rspec (>= 0, development) is not recommended
   use a bounded requirement, such as '~> x.y'
WARNING:  See https://guides.rubygems.org/specification-reference/ for help
   Successfully built RubyGem
   Name: proc_to_ast
   Version: 0.1.0
   File: proc_to_ast-0.1.0.gem
/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-proc-to-ast/usr/share/rubygems-integration/all /tmp/d20241006-1851294-tazogj/proc_to_ast-0.1.0.gem
Failed to load /dev/null because it doesn't contain valid YAML hash
/<<PKGBUILDDIR>>/debian/ruby-proc-to-ast/usr/share/rubygems-integration/all/gems/proc_to_ast-0.1.0/lib/proc_to_ast.rb
/<<PKGBUILDDIR>>/debian/ruby-proc-to-ast/usr/share/rubygems-integration/all/gems/proc_to_ast-0.1.0/lib/proc_to_ast/version.rb
Successfully installed proc_to_ast-0.1.0
1 gem installed
cd debian/ruby-proc-to-ast/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/proc_to_ast-0.1.0
rm -f
chmod 644 lib/proc_to_ast/version.rb lib/proc_to_ast.rb
find lib/ -type d -empty -delete
cd -
cd -
/usr/bin/ruby3.1 /usr/bin/gem2deb-test-runner

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

RUBYLIB=. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-proc-to-ast/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\ \"proc_to_ast\"

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

RUBYLIB=. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-proc-to-ast/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/proc_to_ast_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/proc_to_ast.rb:4:in `<top (required)>'
# ./spec/spec_helper.rb:2:in `<top (required)>'
# ./spec/proc_to_ast_spec.rb:1:in `<top (required)>'
# ------------------
# --- Caused by: ---
# LoadError:
#   cannot load such file -- unparser
#   ./lib/proc_to_ast.rb:4:in `<top (required)>'
No examples found.

Finished in 0.00004 seconds (files took 0.16981 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-proc-to-ast 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