Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 720202 - dev-ruby/rmagick-3.2.0 - fails test_write(Image3_UT), test_image(LibDrawUT)
Summary: dev-ruby/rmagick-3.2.0 - fails test_write(Image3_UT), test_image(LibDrawUT)
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: Normal normal
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2020-04-30 23:26 UTC by ernsteiswuerfel
Modified: 2021-10-02 20:33 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (file_720202.txt,6.17 KB, text/plain)
2020-04-30 23:26 UTC, ernsteiswuerfel
Details
build.log (rmagick-3.2.0:20200430-144047.log,120.87 KB, text/plain)
2020-04-30 23:27 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ernsteiswuerfel archtester 2020-04-30 23:26:58 UTC
Created attachment 635384 [details]
emerge --info

[...]
............/var/tmp/portage/dev-ruby/rmagick-3.2.0/work/ruby25/rmagick-3.2.0/test/Image3.rb:1017: warning: Image#white_threshold requires a named argument for 'alpha' and now expects an alpha value instead of an opacity value.
.Decoded /var/tmp/portage/dev-ruby/rmagick-3.2.0/temp/magick-32AKyO2efCcQHE. Dimensions: 20 x 20 . Format: lossy. Now saving...
Saved file /var/tmp/portage/dev-ruby/rmagick-3.2.0/temp/magick-32WShgE64Cxa8C
F
===============================================================================
     1069: 
     1070:     @img.write('test.webp')
     1071:     img = Magick::Image.read('test.webp')
  => 1072:     assert_equal('WEBP', img.first.format)
     1073:     FileUtils.rm('test.webp') rescue nil # Avoid failure on AppVeyor
     1074: 
     1075:     f = File.new('test.0', 'w')
/var/tmp/portage/dev-ruby/rmagick-3.2.0/work/ruby25/rmagick-3.2.0/test/Image3.rb:1072:in `test_write'
<"WEBP">(UTF-8) expected but was
<"PAM">(ASCII-8BIT)

diff:
? WEBPAM
  
? Encoding: UTF  -8   
?           ASCII  BIT
Failure: test_write(Image3_UT)
===============================================================================
[...]
../var/tmp/portage/dev-ruby/rmagick-3.2.0/work/ruby25/rmagick-3.2.0/test/KernelInfo.rb:27: warning: KernelInfo#zero_nans is deprecated
......................./var/tmp/portage/dev-ruby/rmagick-3.2.0/work/ruby25/rmagick-3.2.0/test/lib/internal/Draw.rb:332: warning: constant Magick::StaticGravity is deprecated
.F
===============================================================================
/var/tmp/portage/dev-ruby/rmagick-3.2.0/work/ruby25/rmagick-3.2.0/test/lib/internal/Draw.rb:344:in `test_image'
/var/tmp/portage/dev-ruby/rmagick-3.2.0/work/ruby25/rmagick-3.2.0/test/lib/internal/Draw.rb:344:in `values'
     346: 
     347:       draw = Magick::Draw.new
     348:       draw.image(composite, 10, 10, 200, 100, "#{IMAGES_DIR}/Flower_Hat.jpg")
  => 349:       assert_nothing_raised { draw.draw(@img) }
     350:     end
     351: 
     352:     assert_raise(ArgumentError) { @draw.image('xxx', 10, 10, 200, 100, "#{IMAGES_DIR}/Flower_Hat.jpg") }
/var/tmp/portage/dev-ruby/rmagick-3.2.0/work/ruby25/rmagick-3.2.0/test/lib/internal/Draw.rb:349:in `block in test_image'
Failure: test_image(LibDrawUT):
  Exception raised:
  Magick::ImageMagickError(<non-conforming drawing primitive definition `image' @ error/draw.c/RenderMVGContent/4371>)
===============================================================================
[...]
-------------------------------------------------------------------------------
601 tests, 12008 assertions, 2 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
99.6672% passed
-------------------------------------------------------------------------------
12.57 tests/s, 251.08 assertions/s
rake aborted!
Command failed with status (1)

Tasks: TOP => test
(See full trace by running task with --trace)
Comment 1 ernsteiswuerfel archtester 2020-04-30 23:27:59 UTC
Created attachment 635386 [details]
build.log
Comment 2 Larry the Git Cow gentoo-dev 2020-05-02 06:53:55 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=701a3eed6fc94f54d6d7dd9f86e1e051705e36c7

commit 701a3eed6fc94f54d6d7dd9f86e1e051705e36c7
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2020-05-02 06:53:38 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2020-05-02 06:53:47 +0000

    dev-ruby/rmagick: require webp for tests
    
    The tests require imagemagick to be build with webp support.
    
    Bug: https://bugs.gentoo.org/720202
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-ruby/rmagick/rmagick-3.2.0.ebuild | 4 ++--
 dev-ruby/rmagick/rmagick-4.1.2.ebuild | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-10-02 20:33:46 UTC
I don't seem to hit these on PPC now so let's call it OBSOLETE, thanks!