Project

General

Profile

Actions

Patch #30821

closed

Stay in RMagick 2.16.0 and don't update to 3.0.0

Added by Go MAEDA over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Gems support
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

RMagick 3.0.0 has been released on 2019-02-16 but the installation of Redmine fails due to the latest RMagick in some environments.

This is because RMagick 3.0.0 narrowed the supported ImageMagick version. Previous Rmagick 2.16.0 supports ImageMagick >= 6.4.9 but 3.0.0 supports only ImageMagick ImageMagick >= 6.8.9 (even RMagick 3.0.0 does not support ImageMagick 7 yet).

Some Linux distribution still bundles older ImageMagick. For example, CentOS 7 bundles ImageMagick 6.7.8. Rmagick 3.0.0 causes an error during the installation of Redmine in such environments.

There is no benefit for us to update to RMagick 3.0.0 for now, so we should pin the version of RMagick in the Gemfile.

Index: Gemfile
===================================================================
--- Gemfile    (revision 17874)
+++ Gemfile    (working copy)
@@ -32,7 +32,7 @@
 platforms :mri, :mingw, :x64_mingw do
   # Optional gem for exporting the gantt to a PNG file, not supported with jruby
   group :rmagick do
-    gem "rmagick", ">= 2.14.0" 
+    gem "rmagick", "~> 2.16.0" 
   end

   # Optional Markdown support, not for JRuby

p.s.
RMagick sometimes causes such build errors while installing Redmine. We can escape from such troubles by switching to MiniMagick that is written in pure-Ruby. We already have the patch to remove RMagick (#30492).


Related issues

Related to Redmine - Feature #30492: Replace RMagick with MiniMagickClosedGo MAEDA

Actions
Actions #1

Updated by Go MAEDA over 5 years ago

Actions #2

Updated by Go MAEDA over 5 years ago

  • Tracker changed from Defect to Patch
Actions #3

Updated by Ivan Cenov over 5 years ago

Good news.

Actions #4

Updated by Go MAEDA over 5 years ago

  • Subject changed from Don't use RMagick 3.0.0 to Stay in RMagick 2.16.0 and don't update to 3.0.0
  • Status changed from New to Resolved
  • Assignee set to Go MAEDA

Committed.

Actions #5

Updated by Go MAEDA over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF