#1126256 vagrant-librarian-puppet: FTBFS: dh_auto_install: error: dh_ruby --install /<<PKGBUILDDIR>>/debian/vagrant-librarian-puppet returned exit code 1

#1126256#5
Date:
2026-01-23 11:39:05 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

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

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 cannot 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 add an affects on src:vagrant-librarian-puppet, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=ruby --with ruby
   dh_auto_clean -O--buildsystem=ruby
	dh_ruby --clean
W: XS-Ruby-Versions is deprecated, and will be ignored
   dh_autoreconf_clean -O--buildsystem=ruby
   dh_clean -O--buildsystem=ruby
 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
   debian/rules override_dh_auto_install
make[1]: Entering directory '/<<PKGBUILDDIR>>'
dh_auto_install
	dh_ruby --install /<<PKGBUILDDIR>>/debian/vagrant-librarian-puppet

┌──────────────────────────────────────────────────────────────────────────────┐
│ vagrant-librarian-puppet: Install files                                      │
└──────────────────────────────────────────────────────────────────────────────┘

install -d /<<PKGBUILDDIR>>/debian/vagrant-librarian-puppet/usr/lib/ruby/vendor_ruby
install -D -m644 /<<PKGBUILDDIR>>/lib/vagrant-librarian-puppet/action/librarian_puppet.rb /<<PKGBUILDDIR>>/debian/vagrant-librarian-puppet/usr/lib/ruby/vendor_ruby/vagrant-librarian-puppet/action/librarian_puppet.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/vagrant-librarian-puppet/config.rb /<<PKGBUILDDIR>>/debian/vagrant-librarian-puppet/usr/lib/ruby/vendor_ruby/vagrant-librarian-puppet/config.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/vagrant-librarian-puppet/plugin.rb /<<PKGBUILDDIR>>/debian/vagrant-librarian-puppet/usr/lib/ruby/vendor_ruby/vagrant-librarian-puppet/plugin.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/vagrant-librarian-puppet/version.rb /<<PKGBUILDDIR>>/debian/vagrant-librarian-puppet/usr/lib/ruby/vendor_ruby/vagrant-librarian-puppet/version.rb
install -D -m644 /<<PKGBUILDDIR>>/lib/vagrant-librarian-puppet.rb /<<PKGBUILDDIR>>/debian/vagrant-librarian-puppet/usr/lib/ruby/vendor_ruby/vagrant-librarian-puppet.rb

┌──────────────────────────────────────────────────────────────────────────────┐
│ vagrant-librarian-puppet: Install Rubygems integration metadata              │
└──────────────────────────────────────────────────────────────────────────────┘

generating gemspec at /<<PKGBUILDDIR>>/debian/vagrant-librarian-puppet/usr/share/rubygems-integration/all/specifications/vagrant-librarian-puppet-0.9.2.gemspec
dh_installchangelogs -pvagrant-librarian-puppet /<<PKGBUILDDIR>>/CHANGELOG.md upstream
/usr/bin/ruby3.3 /usr/bin/gem2deb-test-runner

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

RUBYLIB=/<<PKGBUILDDIR>>/debian/vagrant-librarian-puppet/usr/lib/ruby/vendor_ruby:. GEM_PATH=/<<PKGBUILDDIR>>/debian/vagrant-librarian-puppet/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.3.0:/var/lib/gems/3.3.0:/usr/local/lib/ruby/gems/3.3.0:/usr/lib/ruby/gems/3.3.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.3.0:/usr/share/rubygems-integration/3.3.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0 ruby3.3 -e gem\ \"vagrant-librarian-puppet\"
/usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1421:in `block in activate_dependencies': Could not find 'librarian-puppet' (~> 5.0.0) among 153 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/<<PKGBUILDDIR>>/debian/vagrant-librarian-puppet/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.3.0:/var/lib/gems/3.3.0:/usr/local/lib/ruby/gems/3.3.0:/usr/lib/ruby/gems/3.3.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.3.0:/usr/share/rubygems-integration/3.3.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.3.0' at: /<<PKGBUILDDIR>>/debian/vagrant-librarian-puppet/usr/share/rubygems-integration/all/specifications/vagrant-librarian-puppet-0.9.2.gemspec, execute `gem env` for more information
	from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1407:in `each'
	from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1407:in `activate_dependencies'
	from /usr/lib/ruby/vendor_ruby/rubygems/specification.rb:1389:in `activate'
	from /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_gem.rb:62:in `block in gem'
	from /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_gem.rb:62:in `synchronize'
	from /usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_gem.rb:62:in `gem'
	from -e:1:in `<main>'
abbrev (default: 0.1.2)
archive-tar-minitar (1.1.0)
base64 (0.3.0, default: 0.2.0)
bcrypt_pbkdf (1.1.2)
benchmark (default: 0.3.0)
bigdecimal (default: 3.1.5)
bundler (default: 2.5.22)
cgi (default: 0.4.2)
childprocess (5.1.0)
concurrent-ruby (1.3.5)
concurrent-ruby-edge (0.7.2)
csv (3.3.4, default: 3.2.8)
date (default: 3.3.4)
debug (1.9.2)
deep_merge (1.2.2)
delegate (default: 0.3.1)
did_you_mean (1.6.3)
digest (default: 3.1.1)
drb (default: 2.2.0)
ed25519 (1.4.0)
english (default: 0.8.0)
erb (default: 4.0.3)
error_highlight (default: 0.6.0)
erubi (1.13.1)
etc (default: 1.4.3)
excon (1.3.1)
facter (4.10.0)
faraday (2.14.0)
faraday-follow_redirects (0.4.0)
faraday-net_http (3.0.2)
fast_gettext (4.1.1)
fcntl (default: 1.1.0)
ffi (1.17.2)
fiddle (default: 1.1.2)
fileutils (default: 1.7.2)
find (default: 0.2.0)
forwardable (default: 1.3.3)
getoptlong (default: 0.2.1)
google-protobuf (3.21.12)
googleapis-common-protos-types (1.14.0)
grpc (1.51.1)
hashie (5.0.0)
hocon (1.4.0)
i18n (1.14.7)
io-console (default: 0.7.1)
io-nonblock (default: 0.3.0)
io-wait (default: 0.3.1)
ipaddr (1.2.7, default: 1.2.6)
irb (default: 1.13.1)
json (2.15.2, default: 2.7.2)
jwt (3.1.2)
librarian-puppet (6.0.0)
librarianp (1.1.2)
listen (3.9.0)
locale (2.1.4)
log4r (1.1.10)
logger (default: 1.6.0)
matrix (0.4.2)
mime-types (3.6.0)
mime-types-data (3.2025.0924)
minitar (1.1.0)
minitest (5.26.1, 5.20.0)
multi_json (1.15.0)
multi_xml (0.7.2)
mutex_m (default: 0.2.0)
net-ftp (0.3.4)
net-http (default: 0.4.1)
net-imap (0.4.19)
net-pop (0.1.2)
net-protocol (default: 0.2.2)
net-scp (4.1.0)
net-sftp (4.0.0)
net-smtp (0.5.1)
net-ssh (7.3.0)
net-telnet (0.2.0)
nkf (default: 0.1.3)
oauth2 (2.0.17)
observer (default: 0.1.2)
open-uri (default: 0.4.1)
open3 (default: 0.2.1)
openssl (default: 3.2.0)
optparse (default: 0.4.0)
ostruct (default: 0.6.0)
pathname (default: 0.3.0)
power_assert (2.0.5, 2.0.3)
pp (default: 0.5.0)
prettyprint (default: 0.2.0)
prime (0.1.2)
prism (default: 0.19.0)
pstore (default: 0.1.3)
psych (default: 5.1.2)
puppet (8.10.0)
puppet-resource_api (1.9.0)
puppet_forge (6.0.0)
racc (1.7.3)
rack (3.1.18)
rake (13.2.1, 13.1.0)
rb-inotify (0.10.1)
rbs (3.4.0)
rdoc (default: 6.6.3.1)
readline (default: 0.0.4)
reline (default: 0.5.10)
resolv (default: 0.3.0)
resolv-replace (default: 0.1.1)
rexml (3.3.9)
rinda (default: 0.2.0)
rss (0.3.1)
rsync (1.0.9)
ruby-augeas (0.5.0)
ruby-shadow (2.5.1)
ruby2_keywords (0.0.5)
rubygems-update (3.6.7)
rubyzip (3.2.2)
scanf (1.0.0)
securerandom (default: 0.3.1)
semantic_puppet (1.1.0)
set (default: 1.1.0)
shellwords (default: 0.2.0)
singleton (default: 0.2.0)
snaky_hash (2.0.3)
stringio (default: 3.1.1)
strscan (default: 3.0.9)
syntax_suggest (default: 2.0.1)
syslog (default: 0.1.2)
tempfile (default: 0.2.1)
test-unit (3.6.2, 3.6.1)
thor (1.4.0)
time (default: 0.3.0)
timeout (default: 0.4.1)
tmpdir (default: 0.2.0)
tsort (default: 0.2.0)
typeprof (0.21.9)
un (default: 0.3.0)
uri (default: 0.13.2)
vagrant (2.3.8.dev)
vagrant_cloud (3.1.3)
version_gem (1.1.9)
weakref (default: 0.1.3)
webrick (1.9.1)
xmlrpc (0.3.3)
yaml (default: 0.3.0)
zlib (default: 3.1.1)

┌──────────────────────────────────────────────────────────────────────────────┐
│ Run tests for ruby3.3: no test suite!                                        │
└──────────────────────────────────────────────────────────────────────────────┘

/usr/lib/ruby/vendor_ruby/gem2deb.rb:52:in `run': /usr/bin/ruby3.3 /usr/bin/gem2deb-test-runner (Gem2Deb::CommandFailed)
	from /usr/lib/ruby/vendor_ruby/gem2deb.rb:64:in `block in run_ruby'
	from /usr/lib/ruby/vendor_ruby/gem2deb.rb:87:in `maybe_crossbuild'
	from /usr/lib/ruby/vendor_ruby/gem2deb.rb:63:in `run_ruby'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:189:in `run_tests_for_version'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:176:in `block in run_tests'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:175:in `each'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:175:in `run_tests'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:71:in `run_tests'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:57:in `install'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:163:in `install'
	from /usr/bin/dh_ruby:89:in `<main>'
dh_auto_install: error: dh_ruby --install /<<PKGBUILDDIR>>/debian/vagrant-librarian-puppet returned exit code 1
make[1]: *** [debian/rules:9: override_dh_auto_install] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:6: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1126256#10
Date:
2026-09-08 22:31:52 UTC
From:
To:
Oops! I forgot to mark my commit for automatically closing this issue.

I've pushed a fix to this issue in commit
403a215aa976fd121864e5b99eead4687e791436 in salsa.

I've also sent a new revision, 0.9.2-4 to the debian archive that
contains that fix, so I believe that this should be corrected.


The issue was that there was a patch being applied to modify the gem
dependencies in order to push up some gem versions, but they were set to
some versions of gems present in the debian unstable archive at that
time. I've modified the patch so that it lets us install those
dependencies with any future versions.

I'll ensure that the packages builds successfully and gets accepted to
unstable before closing the issue manually