[DRE-maint] Bug#1086313: ruby-mojo-magick: FTBFS: Unable to find ImageMagick commandline error in the message
Santiago Vila
sanvila at debian.org
Tue Oct 29 20:05:23 GMT 2024
Package: src:ruby-mojo-magick
Version: 0.6.8-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-mojo-magick/ -O--buildsystem=ruby
dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-mojo-magick
/usr/bin/ruby3.1 -S gem build --config-file /dev/null --verbose /tmp/d20241029-1653601-r8vug2/gemspec
Failed to load /dev/null because it doesn't contain valid YAML hash
Successfully built RubyGem
Name: mojo_magick
Version: 0.6.8
File: mojo_magick-0.6.8.gem
/usr/bin/ruby3.1 -S gem install --config-file /dev/null --verbose --local --verbose --no-document --ignore-dependencies --install-dir debian/ruby-mojo-magick/usr/share/rubygems-integration/all /tmp/d20241029-1653601-r8vug2/mojo_magick-0.6.8.gem
Failed to load /dev/null because it doesn't contain valid YAML hash
/<<PKGBUILDDIR>>/debian/ruby-mojo-magick/usr/share/rubygems-integration/all/gems/mojo_magick-0.6.8/lib/image_magick/fonts.rb
/<<PKGBUILDDIR>>/debian/ruby-mojo-magick/usr/share/rubygems-integration/all/gems/mojo_magick-0.6.8/lib/mojo_magick.rb
/<<PKGBUILDDIR>>/debian/ruby-mojo-magick/usr/share/rubygems-integration/all/gems/mojo_magick-0.6.8/lib/mojo_magick/command_status.rb
/<<PKGBUILDDIR>>/debian/ruby-mojo-magick/usr/share/rubygems-integration/all/gems/mojo_magick-0.6.8/lib/mojo_magick/commands.rb
/<<PKGBUILDDIR>>/debian/ruby-mojo-magick/usr/share/rubygems-integration/all/gems/mojo_magick-0.6.8/lib/mojo_magick/errors.rb
/<<PKGBUILDDIR>>/debian/ruby-mojo-magick/usr/share/rubygems-integration/all/gems/mojo_magick-0.6.8/lib/mojo_magick/font.rb
/<<PKGBUILDDIR>>/debian/ruby-mojo-magick/usr/share/rubygems-integration/all/gems/mojo_magick-0.6.8/lib/mojo_magick/opt_builder.rb
/<<PKGBUILDDIR>>/debian/ruby-mojo-magick/usr/share/rubygems-integration/all/gems/mojo_magick-0.6.8/lib/mojo_magick/util/font_parser.rb
/<<PKGBUILDDIR>>/debian/ruby-mojo-magick/usr/share/rubygems-integration/all/gems/mojo_magick-0.6.8/lib/mojo_magick/util/parser.rb
/<<PKGBUILDDIR>>/debian/ruby-mojo-magick/usr/share/rubygems-integration/all/gems/mojo_magick-0.6.8/lib/mojo_magick/version.rb
Thanks for installing MojoMagick - keepin it simple!
*** To make this gem work, you need a few binaries!
Make sure you've got ImageMagick available. http://imagemagick.org
If you plan to build images with text (using the "label" method) you'll need freetype and ghostscript as well.
Check out http://www.freetype.org and http://ghostscript.com respectively for installation info.
Successfully installed mojo_magick-0.6.8
1 gem installed
cd debian/ruby-mojo-magick/usr/share/rubygems-integration/all
rm -rf bin
rm -rf build_info
rm -rf cache
rm -rf doc
rm -rf extensions
rmdir plugins
cd gems/mojo_magick-0.6.8
rm -f
chmod 644 lib/image_magick/fonts.rb lib/mojo_magick/command_status.rb lib/mojo_magick/commands.rb lib/mojo_magick/errors.rb lib/mojo_magick/font.rb lib/mojo_magick/opt_builder.rb lib/mojo_magick/util/font_parser.rb lib/mojo_magick/util/parser.rb lib/mojo_magick/version.rb lib/mojo_magick.rb
find lib/ -type d -empty -delete
cd -
cd -
/usr/bin/ruby3.1 /usr/bin/gem2deb-test-runner
┌──────────────────────────────────────────────────────────────────────────────┐
│ Checking Rubygems dependency resolution on ruby3.1 │
└──────────────────────────────────────────────────────────────────────────────┘
RUBYLIB=. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-mojo-magick/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0 ruby3.1 -e gem\ \"mojo_magick\"
mv Gemfile.lock ./.gem2deb.Gemfile.lock
mv ./.gem2deb.Gemfile.lock Gemfile.lock
┌──────────────────────────────────────────────────────────────────────────────┐
│ Run tests for ruby3.1 from debian/ruby-tests.rake │
└──────────────────────────────────────────────────────────────────────────────┘
RUBYLIB=. GEM_PATH=/<<PKGBUILDDIR>>/debian/ruby-mojo-magick/usr/share/rubygems-integration/all:/<<PKGBUILDDIR>>/debian/.debhelper/generated/_source/home/.local/share/gem/ruby/3.1.0:/var/lib/gems/3.1.0:/usr/local/lib/ruby/gems/3.1.0:/usr/lib/ruby/gems/3.1.0:/usr/lib/x86_64-linux-gnu/ruby/gems/3.1.0:/usr/share/rubygems-integration/3.1.0:/usr/share/rubygems-integration/all:/usr/lib/x86_64-linux-gnu/rubygems-integration/3.1.0 ruby3.1 -S rake --rakelibdir /gem2deb-nonexistent -f debian/ruby-tests.rake
mv Gemfile.lock ./.gem2deb.Gemfile.lock
/usr/bin/ruby3.1 -w -I"test" /usr/share/rubygems-integration/all/gems/rake-13.2.1/lib/rake/rake_test_loader.rb "test/font_parser_test.rb" "test/font_test.rb" "test/mojo_magick_test.rb" "test/opt_builder_test.rb" "test/test_helper.rb" -v
/<<PKGBUILDDIR>>/test/font_test.rb:3: warning: already initialized constant IDENTIFY_FONT_RESPONSE
/<<PKGBUILDDIR>>/test/font_parser_test.rb:3: warning: previous definition of IDENTIFY_FONT_RESPONSE was here
Run options: -v --seed 48897
# Running:
MojoMagickOptBuilderTest#test_opt_builder_blob_writes_data_to_temp_file = 0.00 s = .
MojoMagickOptBuilderTest#test_option_builder_with_blocks = 0.00 s = .
MojoMagickOptBuilderTest#test_annotate_with_multiple_args = 0.00 s = .
MojoMagickOptBuilderTest#test_opt_builder_comment = 0.00 s = .
MojoMagickOptBuilderTest#test_opt_builder_chaining_commands = 0.00 s = .
MojoMagickOptBuilderTest#test_annotate_with_full_array_args = 0.00 s = .
MojoMagickOptBuilderTest#test_opt_builder_complex_command_arg = 0.00 s = .
MojoMagickOptBuilderTest#test_opt_builder_pushing_raw_data = 0.00 s = .
MojoMagickOptBuilderTest#test_opt_builder_with_custom_commands_and_raw_data = 0.00 s = .
MojoMagickOptBuilderTest#test_option_builder_with_hex_colors = 0.00 s = .
MojoMagickOptBuilderTest#test_option_builder = 0.00 s = .
MojoMagickOptBuilderTest#test_opt_builder_comment_with_quoted_elements = 0.00 s = .
MojoMagickOptBuilderTest#test_opt_builder_multi_arg_command_quoting = 0.00 s = .
MojoMagickOptBuilderTest#test_opt_builder_interpreting_bang_suffix = 0.00 s = .
MojoMagickOptBuilderTest#test_annotate_with_escapeable_string = 0.00 s = .
MojoMagickOptBuilderTest#test_annotate_with_geometry_args = 0.00 s = .
MojoMagickOptBuilderTest#test_opt_builder_file_and_files = 0.00 s = .
MojoMagickOptBuilderTest#test_opt_builder_file_preserves_whitespace = 0.00 s = .
MojoMagickOptBuilderTest#test_opt_builder_label = 0.00 s = .
MojoMagickOptBuilderTest#test_annotate = 0.00 s = .
FontTest#test_font = 0.00 s = .
FontParserTest#test_parse_fonts = 0.00 s = .
MojoMagickTest#test_get_image_size = 0.01 s = .
MojoMagickTest#test_convert_crop_and_repage = 0.01 s = .
MojoMagickTest#test_resize_with_shrink_only_options = 0.02 s = .
MojoMagickTest#test_invalid_images = 0.02 s = .
MojoMagickTest#test_tempfile = 0.00 s = .
MojoMagickTest#test_resize_with_fill_and_crop = 0.02 s = .
MojoMagickTest#test_bad_command = 0.01 s = F
MojoMagickTest#test_label_with_quote = 0.12 s = .
MojoMagickTest#test_convert = 0.01 s = .
MojoMagickTest#test_expand = 0.05 s = .
MojoMagickTest#test_image_resize = 0.04 s = .
MojoMagickTest#test_shrink = 0.02 s = .
MojoMagickTest#test_available_fonts = 0.12 s = .
MojoMagickTest#test_label_with_apostrophe = 0.12 s = .
MojoMagickTest#test_image_resize_with_percentage = 0.03 s = .
MojoMagickTest#test_convert_rgb = 0.02 s = .
MojoMagickTest#test_label = 0.12 s = .
MojoMagickTest#test_label_with_quotes = 0.12 s = .
MojoMagickTest#test_mogrify = 0.02 s = .
MojoMagickTest#test_expand_with_small_dim = 0.02 s = .
MojoMagickTest#test_blob_rgb = 0.01 s = .
MojoMagickTest#test_resize_with_fill = 0.02 s = .
MojoMagickTest#test_convert_rgba = 0.01 s = .
MojoMagickTest#test_mogrify_with_shave_and_repage = 0.02 s = .
MojoMagickTest#test_shrink_with_big_dimensions = 0.02 s = .
Finished in 0.989899s, 47.4796 runs/s, 89.9082 assertions/s.
1) Failure:
MojoMagickTest#test_bad_command [/<<PKGBUILDDIR>>/test/mojo_magick_test.rb:191]:
Unable to find ImageMagick commandline error in the message
47 runs, 89 assertions, 1 failures, 0 errors, 0 skips
rake aborted!
Command failed with status (1): [ruby -w -I"test" /usr/share/rubygems-integration/all/gems/rake-13.2.1/lib/rake/rake_test_loader.rb "test/font_parser_test.rb" "test/font_test.rb" "test/mojo_magick_test.rb" "test/opt_builder_test.rb" "test/test_helper.rb" -v]
/usr/share/rubygems-integration/all/gems/rake-13.2.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => default
(See full trace by running task with --trace)
mv ./.gem2deb.Gemfile.lock Gemfile.lock
ERROR: Test "ruby3.1" failed. Exiting.
dh_auto_install: error: dh_ruby --install /<<PKGBUILDDIR>>/debian/ruby-mojo-magick returned exit code 1
make: *** [debian/rules:7: 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