[DRE-maint] Bug#1015338: ruby-xmlhash: FTBFS with ruby3.1: Tried to load unspecified class: Gem::Specification (Psych::DisallowedClass)

Antonio Terceiro terceiro at debian.org
Tue Jul 19 15:24:27 BST 2022


Source: ruby-xmlhash
Version: 1.3.6-2
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 ruby-xmlhash with ruby3.1 enabled, the build failed.

Relevant part of the build log (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>/ext/xmlhash'
> /bin/mkdir -p . ./.gem.20220718-1873236-47kz5k/xmlhash
> exit > .sitearchdir.-.xmlhash.time
> /usr/bin/install -c -m 0755 xmlhash.so ./.gem.20220718-1873236-47kz5k/xmlhash
> make[1]: Leaving directory '/<<PKGBUILDDIR>>/ext/xmlhash'
> current directory: /<<PKGBUILDDIR>>/ext/xmlhash
> /usr/bin/ruby3.0 -I /usr/lib/ruby/vendor_ruby -r ./siteconf20220718-1873236-mnjzla.rb extconf.rb
> current directory: /<<PKGBUILDDIR>>/ext/xmlhash
> make V\=1 CC\=gcc\ -fdebug-prefix-map\=/<<PKGBUILDDIR>>\=. CXX\=g++\ -fdebug-prefix-map\=/<<PKGBUILDDIR>>\=. DESTDIR\= clean
> current directory: /<<PKGBUILDDIR>>/ext/xmlhash
> make V\=1 CC\=gcc\ -fdebug-prefix-map\=/<<PKGBUILDDIR>>\=. CXX\=g++\ -fdebug-prefix-map\=/<<PKGBUILDDIR>>\=. DESTDIR\=
> current directory: /<<PKGBUILDDIR>>/ext/xmlhash
> make V\=1 CC\=gcc\ -fdebug-prefix-map\=/<<PKGBUILDDIR>>\=. CXX\=g++\ -fdebug-prefix-map\=/<<PKGBUILDDIR>>\=. DESTDIR\= install
> rm -f /<<PKGBUILDDIR>>/debian/ruby-xmlhash/usr/lib/x86_64-linux-gnu/ruby/vendor_ruby/3.0.0/mkmf.log
> 
> ┌──────────────────────────────────────────────────────────────────────────────┐
> │ Build native extensions for ruby3.1                                          │
> └──────────────────────────────────────────────────────────────────────────────┘
> 
> /usr/bin/ruby3.1 /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb /<<PKGBUILDDIR>> debian/ruby-xmlhash
> /usr/lib/ruby/3.1.0/psych/class_loader.rb:99:in `find': Tried to load unspecified class: Gem::Specification (Psych::DisallowedClass)
> 	from /usr/lib/ruby/3.1.0/psych/class_loader.rb:28:in `load'
> 	from /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:424:in `resolve_class'
> 	from /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:213:in `visit_Psych_Nodes_Mapping'
> 	from /usr/lib/ruby/3.1.0/psych/visitors/visitor.rb:30:in `visit'
> 	from /usr/lib/ruby/3.1.0/psych/visitors/visitor.rb:6:in `accept'
> 	from /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:35:in `accept'
> 	from /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:318:in `visit_Psych_Nodes_Document'
> 	from /usr/lib/ruby/3.1.0/psych/visitors/visitor.rb:30:in `visit'
> 	from /usr/lib/ruby/3.1.0/psych/visitors/visitor.rb:6:in `accept'
> 	from /usr/lib/ruby/3.1.0/psych/visitors/to_ruby.rb:35:in `accept'
> 	from /usr/lib/ruby/3.1.0/psych.rb:335:in `safe_load'
> 	from /usr/lib/ruby/3.1.0/psych.rb:370:in `load'
> 	from /usr/lib/ruby/3.1.0/psych.rb:671:in `block in load_file'
> 	from /usr/lib/ruby/3.1.0/psych.rb:670:in `open'
> 	from /usr/lib/ruby/3.1.0/psych.rb:670:in `load_file'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/metadata.rb:123:in `load_gemspec'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/metadata.rb:36:in `block in initialize'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/metadata.rb:35:in `chdir'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/metadata.rb:35:in `initialize'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:120:in `new'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:120:in `all_extensions'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:112:in `build_all_extensions'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb:128:in `<main>'
> /usr/lib/ruby/vendor_ruby/gem2deb.rb:54:in `run': /usr/bin/ruby3.1 /usr/lib/ruby/vendor_ruby/gem2deb/extension_builder.rb /<<PKGBUILDDIR>> debian/ruby-xmlhash (Gem2Deb::CommandFailed)
> 	from /usr/lib/ruby/vendor_ruby/gem2deb.rb:65:in `run_ruby'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:54:in `block in install_files_and_build_extensions'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:51:in `each'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:51:in `install_files_and_build_extensions'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:28:in `install'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:86:in `block in install'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:84:in `each'
> 	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:84:in `install'
> 	from /usr/bin/dh_ruby:89:in `<main>'
> dh_auto_install: error: dh_ruby --install /<<PKGBUILDDIR>>/debian/tmp returned exit code 1
> make: *** [debian/rules:15: binary] Error 25


The full build log is available from:
https://people.debian.org/~terceiro/ruby3.1/ruby-xmlhash_1.3.6-2+rebuild1658134763_amd64.log

To reproduce this, you need to install ruby-all-dev >= 1:3.0+2 (in experimental).
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/20220719/7f3e900f/attachment-0001.sig>


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