[DRE-maint] Bug#1084369: ruby-rugged: FTBFS: libgit2 version is not compatible, expected ~> 1.7.0

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


Package: src:ruby-rugged
Version: 1.7.2+ds-1
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-rugged/ -O--buildsystem=ruby
	dh_ruby --install /<<BUILDDIR>>/ruby-rugged-1.7.2\+ds/debian/ruby-rugged
/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241006-77416-7ijis2/gemspec
Failed to load /dev/null because it doesn't contain valid YAML hash
WARNING:  open-ended dependency on rake-compiler (>= 0.9.0, development) is not recommended
   if rake-compiler is semantically versioned, use:
     add_development_dependency 'rake-compiler', '~> 0.9', '>= 0.9.0'
WARNING:  open-ended dependency on pry (>= 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: rugged
   Version: 1.7.2
   File: rugged-1.7.2.gem
/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0 /tmp/d20241006-77416-7ijis2/rugged-1.7.2.gem
Failed to load /dev/null because it doesn't contain valid YAML hash
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/extconf.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged.h
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_allocator.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_backend.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_blame.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_blob.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_branch.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_branch_collection.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_commit.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_config.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_cred.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_diff.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_diff_delta.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_diff_hunk.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_diff_line.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_index.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_note.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_object.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_patch.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_rebase.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_reference.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_reference_collection.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_remote.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_remote_collection.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_repo.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_revwalk.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_settings.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_signature.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_submodule.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_submodule_collection.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_tag.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_tag_collection.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged/rugged_tree.c
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/attributes.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/blob.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/branch.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/commit.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/console.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/credentials.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/diff.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/diff/delta.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/diff/hunk.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/diff/line.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/index.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/object.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/patch.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/reference.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/remote.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/repository.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/submodule_collection.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/tag.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/tree.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/version.rb
/<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/lib/rugged/walker.rb
Building native extensions. This could take a while...
current directory: /<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged
["/usr/bin/ruby3.1", "-I/usr/lib/ruby/vendor_ruby", "extconf.rb"]
ERROR:  Error installing /tmp/d20241006-77416-7ijis2/rugged-1.7.2.gem:
	ERROR: Failed to build gem native extension.

     current directory: /<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2/ext/rugged
/usr/bin/ruby3.1 -I/usr/lib/ruby/vendor_ruby extconf.rb
Building has failed. See above output for more information on the failure.
To see why this extension failed to compile, please check the mkmf.log which can be found here:

   /<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/extensions/x86_64-linux/3.1.0/rugged-1.7.2/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/gems/rugged-1.7.2 for inspection.
Results logged to /<<PKGBUILDDIR>>/debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0/extensions/x86_64-linux/3.1.0/rugged-1.7.2/gem_make.out
checking for gmake... yes
Building Rugged using system libraries.
libgit2 version is not compatible, expected ~> 1.7.0
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
	--with-opt-dir
	--without-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/usr/bin/$(RUBY_BASE_NAME)3.1
	--with-sha1dc
	--without-sha1dc
	--with-ssh
	--without-ssh
	--use-system-libraries=true
	--with-git2-dir
	--without-git2-dir
	--with-git2-include
	--without-git2-include=${git2-dir}/include
	--with-git2-lib
	--without-git2-lib=${git2-dir}/lib
	--with-libgit2-dir
	--without-libgit2-dir
	--with-libgit2-include
	--without-libgit2-include=${libgit2-dir}/include
	--with-libgit2-lib
	--without-libgit2-lib=${libgit2-dir}/lib
	--with-libgit2-config
	--without-libgit2-config
	--with-pkg-config
	--without-pkg-config
/usr/lib/ruby/vendor_ruby/gem2deb.rb:52:in `run': /usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-rugged/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0 /tmp/d20241006-77416-7ijis2/rugged-1.7.2.gem (Gem2Deb::CommandFailed)
	from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:213:in `block in run_gem'
	from /usr/lib/ruby/vendor_ruby/gem2deb.rb:87:in `maybe_crossbuild'
	from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:212:in `run_gem'
	from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:121:in `block in install_files_and_build_extensions'
	from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:69:in `each'
	from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:69:in `install_files_and_build_extensions'
	from /usr/lib/ruby/vendor_ruby/gem2deb/installer.rb:28:in `build'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:54:in `block in install'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:52:in `each'
	from /usr/lib/ruby/vendor_ruby/gem2deb/dh_ruby.rb:52: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 /<<BUILDDIR>>/ruby-rugged-1.7.2\+ds/debian/ruby-rugged returned exit code 1
make: *** [debian/rules:8: 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