Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 619684 - dev-ruby/rmagick-2.16.0 fails to emerge with imagemagick 7.0
Summary: dev-ruby/rmagick-2.16.0 fails to emerge with imagemagick 7.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Ruby Team
URL: https://github.com/rmagick/rmagick/is...
Whiteboard:
Keywords:
Depends on:
Blocks: imagemagick-7
  Show dependency tree
 
Reported: 2017-05-25 15:21 UTC by Steven Green
Modified: 2020-03-28 07:05 UTC (History)
3 users (show)

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


Attachments
Build Log (dev-ruby:rmagick-2.16.0:20170525-103721.log,4.07 KB, text/x-log)
2017-05-25 15:21 UTC, Steven Green
Details
emerge --info (emerge.info,20.02 KB, text/plain)
2017-05-25 15:30 UTC, Steven Green
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steven Green 2017-05-25 15:21:45 UTC
Created attachment 474288 [details]
Build Log

The configure phase fails when ImageMagick 7.0 is installed due to missing MagickWand API.  Possibly the ebuild needs to be dependant on imagemagick:0.6


>>> Configuring source in /var/tmp/portage/dev-ruby/rmagick-2.16.0/work ...
 * Running configure phase for ruby21 ...
checking for x86_64-pc-linux-gnu-gcc... yes
checking for Magick-config... no
checking for pkg-config... yes

Warning: Found a partial ImageMagick-6 installation. Your operating system likely has some built-in ImageMagick libraries but not all of ImageMagick. This will most likely cause problems at both compile and runtime.
Found partial installation at: /usr
checking for outdated ImageMagick version (<= 6.4.9)... no
checking for presence of MagickWand API (ImageMagick version >= 6.9.0)... no
checking for Ruby version >= 1.8.5... yes
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... no

Can't install RMagick 2.16.0. Can't find MagickWand.h.
*** extconf.rb failed ***
Comment 1 Steven Green 2017-05-25 15:30:26 UTC
Created attachment 474290 [details]
emerge --info
Comment 2 Jonas Stein gentoo-dev 2017-05-25 17:59:45 UTC
have you installed media-gfx/imagemagick?

you can search for files on http://www.portagefilelist.de
Comment 3 Steven Green 2017-05-25 19:34:23 UTC
Yes imagemagick is installed. After the recent update to version 7, an emerge @preserved-rebuild wants to rebuild this Ruby gem which is failing because imagemagick 7 must have changed some of its API, specifically MagickWand.
Comment 4 Hans de Graaff gentoo-dev Security 2017-05-26 07:16:15 UTC
I have locked rmagick to imagemagick-6* for now. Obviously not a long-term solution, but imagemagick-7 appears to require a fairly massive change in the rmagick code and it is not very actively maintained at the moment.
Comment 5 Fabio Rossi 2019-10-15 09:39:02 UTC
upstream is working on supporting imagemagick-7 from version 4.1.0, see also the related issue https://github.com/rmagick/rmagick/issues/256

In portage we have some packages like rmagick which still depends on imagemagick-6 and other software that support only imagemagick-7 (e.g. octave) so it's a mess for the final user. They already have a release candidate 4.1.0-rc2 which seems to work with imagemagick-7, what about adding that to portage?
Comment 6 Hans de Graaff gentoo-dev Security 2019-10-27 09:02:15 UTC
(In reply to Fabio Rossi from comment #5)
> upstream is working on supporting imagemagick-7 from version 4.1.0, see also
> the related issue https://github.com/rmagick/rmagick/issues/256
> 
> In portage we have some packages like rmagick which still depends on
> imagemagick-6 and other software that support only imagemagick-7 (e.g.
> octave) so it's a mess for the final user. They already have a release
> candidate 4.1.0-rc2 which seems to work with imagemagick-7, what about
> adding that to portage?

We try to avoid rc candidates from upstream in the ruby project. Given the overall progress of the porting effort I would expect the 4.1.0 release not to be very far off. Let's give it a few more weeks.
Comment 7 Fabio Rossi 2019-10-28 10:22:10 UTC
(In reply to Hans de Graaff from comment #6)

> We try to avoid rc candidates from upstream in the ruby project. Given the
> overall progress of the porting effort I would expect the 4.1.0 release not
> to be very far off. Let's give it a few more weeks.

ok, thanks. In the meantime I have tested installing rmagick 4.1.0_rc2 in my personal overlay and works with imagemagick-7 (at least for my needs where rmagick is used by redmine).
Comment 8 Larry the Git Cow gentoo-dev 2020-03-28 07:05:44 UTC
The bug has been closed via the following commit(s):

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

commit a5bc0c40e167e5a47b9291cb72045699e1e00330
Author:     Hans de Graaff <graaff@gentoo.org>
AuthorDate: 2020-03-28 07:05:09 +0000
Commit:     Hans de Graaff <graaff@gentoo.org>
CommitDate: 2020-03-28 07:05:35 +0000

    dev-ruby/rmagick: add 4.1.0
    
    Closes: https://bugs.gentoo.org/619684
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Hans de Graaff <graaff@gentoo.org>

 dev-ruby/rmagick/Manifest             |  1 +
 dev-ruby/rmagick/rmagick-4.1.0.ebuild | 64 +++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)