[DRE-maint] Bug#997533: ruby-ruby-magic-static: FTBFS: /usr/lib/ruby/2.7.0/psych.rb:577:in `initialize': No such file or directory @ rb_sysopen - /<<PKGBUILDDIR>>/debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/ruby-magic-0.4.0/dependencies.yml (Errno::ENOENT)
Lucas Nussbaum
lucas at debian.org
Sat Oct 23 21:57:13 BST 2021
Source: ruby-ruby-magic-static
Version: 0.4.0-4
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20211023 ftbfs-bookworm
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> dpkg-buildpackage
> -----------------
>
> Command: dpkg-buildpackage -us -uc -sa -rfakeroot
> dpkg-buildpackage: info: source package ruby-ruby-magic-static
> dpkg-buildpackage: info: source version 0.4.0-4
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Pirate Praveen <praveen at debian.org>
> dpkg-source --before-build .
> dpkg-buildpackage: info: host architecture amd64
> debian/rules clean
> dh clean --buildsystem=ruby --with ruby
> dh_auto_clean -O--buildsystem=ruby
> dh_ruby --clean
> dh_ruby --clean
> dh_autoreconf_clean -O--buildsystem=ruby
> dh_clean -O--buildsystem=ruby
> dpkg-source -b .
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building ruby-ruby-magic-static using existing ./ruby-ruby-magic-static_0.4.0.orig.tar.gz
> dpkg-source: info: using patch list from debian/patches/series
> dpkg-source: warning: ignoring deletion of file ruby-magic.gemspec, use --include-removal to override
> dpkg-source: info: building ruby-ruby-magic-static in ruby-ruby-magic-static_0.4.0-4.debian.tar.xz
> dpkg-source: info: building ruby-ruby-magic-static in ruby-ruby-magic-static_0.4.0-4.dsc
> 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_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-ruby-magic-static/ -O--buildsystem=ruby
> dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-ruby-magic-static
> dh_ruby --install
> /usr/bin/ruby2.7 -S gem build --config-file /dev/null --verbose /tmp/d20211023-22897-1mq1k3c/gemspec
> Failed to load /dev/null because it doesn't contain valid YAML hash
> Successfully built RubyGem
> Name: ruby-magic
> Version: 0.4.0
> File: ruby-magic-0.4.0.gem
> /usr/bin/ruby2.7 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0 /tmp/d20211023-22897-1mq1k3c/ruby-magic-0.4.0.gem
> Failed to load /dev/null because it doesn't contain valid YAML hash
> /<<PKGBUILDDIR>>/debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/ruby-magic-0.4.0/ext/magic/common.h
> /<<PKGBUILDDIR>>/debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/ruby-magic-0.4.0/ext/magic/extconf.rb
> /<<PKGBUILDDIR>>/debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/ruby-magic-0.4.0/ext/magic/functions.c
> /<<PKGBUILDDIR>>/debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/ruby-magic-0.4.0/ext/magic/functions.h
> /<<PKGBUILDDIR>>/debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/ruby-magic-0.4.0/ext/magic/ruby-magic.c
> /<<PKGBUILDDIR>>/debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/ruby-magic-0.4.0/ext/magic/ruby-magic.h
> /<<PKGBUILDDIR>>/debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/ruby-magic-0.4.0/lib/magic.rb
> /<<PKGBUILDDIR>>/debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/ruby-magic-0.4.0/lib/magic/core/file.rb
> /<<PKGBUILDDIR>>/debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/ruby-magic-0.4.0/lib/magic/core/string.rb
> /<<PKGBUILDDIR>>/debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/ruby-magic-0.4.0/lib/magic/version.rb
> /<<PKGBUILDDIR>>/debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/ruby-magic-0.4.0/patches/libmagic/0001-Don-t-attempt-to-build-tests-documentation-and-Python-bindings.patch
> /<<PKGBUILDDIR>>/debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/ruby-magic-0.4.0/ports/archives/file-5.39.tar.gz
> Building native extensions. This could take a while...
> current directory: /<<PKGBUILDDIR>>/debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/ruby-magic-0.4.0/ext/magic
> ["/usr/bin/ruby2.7", "-I", "/usr/lib/ruby/vendor_ruby", "-r", "./siteconf20211023-22900-9fq556.rb", "extconf.rb"]
> ERROR: Error installing /tmp/d20211023-22897-1mq1k3c/ruby-magic-0.4.0.gem:
> ERROR: Failed to build gem native extension.
>
> current directory: /<<PKGBUILDDIR>>/debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/ruby-magic-0.4.0/ext/magic
> /usr/bin/ruby2.7 -I /usr/lib/ruby/vendor_ruby -r ./siteconf20211023-22900-9fq556.rb 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-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/extensions/x86_64-linux/2.7.0/ruby-magic-0.4.0/mkmf.log
>
> extconf failed, exit code 1
>
> Gem files will remain installed in /<<PKGBUILDDIR>>/debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/ruby-magic-0.4.0 for inspection.
> Results logged to /<<PKGBUILDDIR>>/debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/extensions/x86_64-linux/2.7.0/ruby-magic-0.4.0/gem_make.out
> checking for whether -g is accepted as CFLAGS... yes
> checking for whether -O2 is accepted as CFLAGS... yes
> checking for whether -ffile-prefix-map=/<<PKGBUILDDIR>>=. is accepted as CFLAGS... yes
> checking for whether -fstack-protector-strong is accepted as CFLAGS... yes
> checking for whether -Wformat is accepted as CFLAGS... yes
> checking for whether -Werror=format-security is accepted as CFLAGS... yes
> checking for whether -Wdate-time is accepted as CPPFLAGS... yes
> checking for whether -D_FORTIFY_SOURCE=2 is accepted as CPPFLAGS... yes
> checking for whether -Wl,-z,relro is accepted as LDFLAGS... yes
> Building ruby-magic using packaged libraries.
> *** 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)2.7
> --help
> --clean
> --enable-system-libraries
> --disable-system-libraries
> --use-system-libraries
> /usr/lib/ruby/2.7.0/psych.rb:577:in `initialize': No such file or directory @ rb_sysopen - /<<PKGBUILDDIR>>/debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0/gems/ruby-magic-0.4.0/dependencies.yml (Errno::ENOENT)
> from /usr/lib/ruby/2.7.0/psych.rb:577:in `open'
> from /usr/lib/ruby/2.7.0/psych.rb:577:in `load_file'
> from extconf.rb:280:in `<main>'
> /usr/lib/ruby/vendor_ruby/gem2deb.rb:54:in `run': /usr/bin/ruby2.7 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-ruby-magic-static/usr/lib/x86_64-linux-gnu/rubygems-integration/2.7.0 /tmp/d20211023-22897-1mq1k3c/ruby-magic-0.4.0.gem (Gem2Deb::CommandFailed)
> from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:212:in `run_gem'
> from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:120:in `block in install_files_and_build_extensions'
> from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:68:in `each'
> from /usr/lib/ruby/vendor_ruby/gem2deb/gem_installer.rb:68: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/ruby-ruby-magic-static returned exit code 1
> make: *** [debian/rules:9: binary] Error 25
The full build log is available from:
http://qa-logs.debian.net/2021/10/23/ruby-ruby-magic-static_0.4.0-4_unstable.log
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
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.
More information about the Pkg-ruby-extras-maintainers
mailing list