Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 724464 - www-apps/redmine-4.1.1 breaks after upgrade to dev-ruby/rails-5.2.4.3
Summary: www-apps/redmine-4.1.1 breaks after upgrade to dev-ruby/rails-5.2.4.3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Azamat H. Hackimov
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-05-21 16:12 UTC by Adam Purkrt
Modified: 2020-06-15 10:57 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,5.22 KB, text/plain)
2020-05-21 16:13 UTC, Adam Purkrt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Purkrt 2020-05-21 16:12:49 UTC
After recent world update, which brought the update dev-ruby/rails-5.2.4.2 -> 5.2.4.3, redmine (4.1.1) no longer works.

To investigate, I have enabled "PassengerLogLevel 1" in /etc/apache2/modules.d/30_mod_passenger.conf

looking into /var/log/apache2/error_log after apache2 restart and attempt to access redmine reveals:

[ E 2020-05-21 18:04:50.2349 4328/To age/Cor/App/Implementation.cpp:221 ]: Could not spawn process for application /var/lib/redmine: The application encountered the following error: Could not find gem 'rails (= 5.2.4.2)' in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound)


So redmine requires rails of the exact version 5.2.4.2. But is should not - on https://www.redmine.org/projects/redmine/wiki/RedmineInstall, there is just generic version 5.2 mentioned.

I've tried to delete /var/lib/redmine/Gemfile.lock, to no avail.

I then edited /var/lib/redmine/Gemfile, changed
gem 'rails', '5.2.4.2'
to
gem 'rails', '5.2.4.3'

and redmine immediately began to work. But editing Gemfile is not what is one expected to do, or yes?

Reproducible: Always
Comment 1 Adam Purkrt 2020-05-21 16:13:37 UTC
Created attachment 640744 [details]
emerge-info.txt
Comment 2 Adam Purkrt 2020-05-21 19:56:15 UTC
this change in /var/lib/redmine/Gemfile is probably better:

6c6
< gem 'rails', '5.2.4.2'
---
> gem 'rails', '>= 5.2.4.2'

After that change, removing Gemfile.lock and restarting apache2 (which recreates the Gemfile.lock), redmine works fine with dev-ruby/rails-5.2.4.3

(all of the other gems in Gemfile (except rails) are specified using ">=" operator, not by fixed version...)
Comment 3 Hans de Graaff gentoo-dev Security 2020-05-23 17:47:47 UTC
(In reply to Adam Purkrt from comment #2)
> this change in /var/lib/redmine/Gemfile is probably better:
> 
> 6c6
> < gem 'rails', '5.2.4.2'
> ---
> > gem 'rails', '>= 5.2.4.2'
> 
> After that change, removing Gemfile.lock and restarting apache2 (which
> recreates the Gemfile.lock), redmine works fine with dev-ruby/rails-5.2.4.3
> 
> (all of the other gems in Gemfile (except rails) are specified using ">="
> operator, not by fixed version...)

This would be better (since rails 6.0 is not fully backward compatible).

gem 'rails', '~> 5.2.4'
Comment 4 Larry the Git Cow gentoo-dev 2020-06-15 10:57:26 UTC
The bug has been closed via the following commit(s):

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

commit f41bc627b6b7c6a5618fd62d1f4e6075965d23e0
Author:     Azamat H. Hackimov <azamat.hackimov@gmail.com>
AuthorDate: 2020-06-15 10:54:43 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-06-15 10:57:15 +0000

    www-apps/redmine: fixing bugs
    
    Fixed bugs based on reports from Bugzilla:
    
    * #724384 - changed file permissions for config.ru to redmine:redmine
    * #724388 - updated Apache2's 10_redmine_vhost.conf to comply 2.4 syntax
    * #724464 - relaxing rails version to ~>5.2.4
    
    Closes: https://bugs.gentoo.org/724384
    Closes: https://bugs.gentoo.org/724388
    Closes: https://bugs.gentoo.org/724464
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-apps/redmine/files/10_redmine_vhost.conf |   3 +-
 www-apps/redmine/redmine-4.1.1-r1.ebuild     | 231 +++++++++++++++++++++++++++
 2 files changed, 232 insertions(+), 2 deletions(-)