On Tue, Oct 26, 2021 at 06:34:06PM -0300, Antonio Terceiro wrote: > > rb=debian/tmp`/usr/bin/ruby3.0 -rrbconfig -e 'puts > > RbConfig::CONFIG["vendorlibdir"]'`/xapian.rb; \ > > for v in 2.7; do \ > > if [ "$v" != "3.0" ] ; then \ > > set -e; \ > > rb_old=debian/tmp`/usr/bin/ruby$v -rrbconfig -e 'puts > > RbConfig::CONFIG["vendorlibdir"]'`/xapian.rb; \ > > diff "$rb_old" "$rb"; \ > > rm -rf "$rb_old" debian/tmp/usr/share/doc/xapian-bindings-ruby$v; \ > > fi; \ > > done; \ > > mv "$rb" debian/tmp/usr/lib/ruby/vendor_ruby > > diff: debian/tmp/usr/lib/ruby/vendor_ruby/3.0.0/xapian.rb: No such file or > > directory > > make[1]: *** [debian/rules:359: override_dh_auto_install] Error 2
I strongly suspect (but haven't yet tested) that the problem is simply this hard-coded reference to the Ruby version starting `2.` in debian/rules: RUBY_VERSIONS := $(shell ruby -rruby_debian_dev -e 'print RubyDebianDev::RUBY_CONFIG_VERSION.values.grep(/^2\.[1-9]/).join(" ")') I'll test the obvious fix there when I get a chance, but I know the upstream code builds and works with Ruby 3.0, so please don't let xapian-bindings hold up starting the transition. Cheers, Olly