#1146758 ruby-nokogiri: wrong path to extension on x32

Package:
ruby-nokogiri
Source:
ruby-nokogiri
Description:
HTML, XML, SAX, and Reader parser for Ruby
Submitter:
Nicholas Guriev
Date:
2026-09-05 12:57:02 UTC
Severity:
normal
Tags:
#1146758#5
Date:
2026-09-05 12:53:33 UTC
From:
To:
Dear Maintainer,

I had been investigating a build failure in my package on the x32 port and came
to the conclusion that it was caused by a nonfunctional nokogiri gem. It does
not work on x32 because of a broken path to the native extension nokogiri.so.

It is placed at:
/usr/lib/x86_64-linux-gnux32/rubygems-integration/3.3.0/extensions/x86_64-linux/3.3.0/nokogiri-1.19.4/nokogiri/nokogiri.so

instead of:
/usr/lib/x86_64-linux-gnux32/rubygems-integration/3.3.0/extensions/x86_64-linux-gnux32/3.3.0/nokogiri-1.19.4/nokogiri/nokogiri.so

The second triplet after the extensions directory is shortened for a
reason, and RubyGems cannot find the library. Unfortunately, I did not
understand how this bug appeared, but rebuilding your package may help.


$ nokogiri --help
/usr/lib/ruby/vendor_ruby/rubygems.rb:265:in `find_spec_for_exe': can't find gem nokogiri (>= 0.a) with executable nokogiri (Gem::GemNotFoundException)
        from /usr/lib/ruby/vendor_ruby/rubygems.rb:239:in `find_and_activate_spec_for_exe'
        from /usr/lib/ruby/vendor_ruby/rubygems.rb:320:in `activate_bin_path'
        from /usr/bin/nokogiri:25:in `<main>'