Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 657156 - www-apps/redmine-3.4.5 incorrect dependencies
Summary: www-apps/redmine-3.4.5 incorrect dependencies
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: 2018-06-02 19:05 UTC by sebaFlame
Modified: 2019-12-08 08:41 UTC (History)
3 users (show)

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


Attachments
redmine-3.4.5 patch (redmine-3.4.5.patch,1.35 KB, text/plain)
2018-06-05 16:25 UTC, sebaFlame
Details
Gemfile for fastcgi (Gemfile.local,11 bytes, text/plain)
2018-06-05 16:25 UTC, sebaFlame
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sebaFlame 2018-06-02 19:05:49 UTC
It installs (update from redmine-3.3.7) correctly

output of `emerge --config "=www-apps/redmine-3.4.5"`
---
Configuring pkg...

 *
 * Upgrading database.
 *
 * Generating secret token.
Could not find rake-12.3.1 in any of the sources
Run `bundle install` to install missing gems.
---

when checking the Gemfile you can see which dependencies are incorrect

output of `equery u redmine`:
---
 * Found these USE flags for www-apps/redmine-3.4.5:
 U I
 + + fastcgi             : Add support for the FastCGI interface
 + + imagemagick         : Enable optional support for the ImageMagick or GraphicsMagick image converter
 - - ldap                : Add LDAP support (Lightweight Directory Access Protocol)
 - - markdown            : Enable support for Markdown
 + + mysql               : Add mySQL Database support
 - - passenger           : Enable support for www-apache/passenger
 - - postgres            : Add support for the postgresql database
 + + ruby_targets_ruby23 : Build with MRI Ruby 2.3.x
 - - ruby_targets_ruby24 : Build with MRI Ruby 2.4.x
 - - sqlite              : Add support for sqlite - embedded sql database
 - - test                : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in make.conf/package.use anymore
---
Comment 1 sebaFlame 2018-06-05 16:23:45 UTC
The previous comment was a remnant from a manual install.
The actual error message is as follows:
---
Configuring pkg...

 *
 * Initializing database.
 *
 * Generating a session store secret.
Could not find gem 'mime-types (~> 3.0)' in any of the gem sources listed in your Gemfile or available on this machine.
Run `bundle install` to install missing gems.
---

and a few other dependencies
I attached a patch with the correct dependencies and a fix for fastcgi
Comment 2 sebaFlame 2018-06-05 16:25:06 UTC
Created attachment 534976 [details]
redmine-3.4.5 patch
Comment 3 sebaFlame 2018-06-05 16:25:29 UTC
Created attachment 534978 [details]
Gemfile for fastcgi
Comment 4 Pavel Goran 2019-08-06 07:30:05 UTC
There are other similar problems with ebuild dependencies.

As of now, the portage tree has versions of some packages that are *greater* than those expected by redmine. Here are the packages that I had to *downgrade* to get it working:

dev-ruby/roadie-rails from 1.3.0 to 1.2.1 (ebuild dependencies are >=dev-ruby/roadie-rails-1.1.0, Gemfile wants ~>1.2.1, so ebuild dependencies should be >=dev-ruby/roadie-rails-1.2.1 and <dev-ruby/roadie-rails-1.3)

dev-ruby/nokogiri from 1.10.3 to 1.8.4 (ebuild dependencies are >=dev-ruby/nokogiri-1.6.8, Gemfile wants ~>1.8.1, so ebuild dependencies should be >=dev-ruby/nokogiri-1.8.1 and <dev-ruby/nokogiri-1.9)

dev-ruby/sqlite3 from 1.4.1 to 1.3.13 (ebuild dependencies are dev-ruby/sqlite3, Gemfile wants ~>1.3.12, so ebuild dependencies should be >=dev-ruby/sqlite3-1.3.12 and <dev-ruby/sqlite3-1.4)
Comment 5 Larry the Git Cow gentoo-dev 2019-12-08 08:41:27 UTC
The bug has been closed via the following commit(s):

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

commit e163dc22eecc5f00721fa11ee1645b0079031301
Author:     Azamat H. Hackimov <azamat.hackimov@gmail.com>
AuthorDate: 2019-08-28 17:53:46 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2019-12-08 08:41:05 +0000

    www-apps/redmine: update to 4.0.5
    
    Implementing GLEP81, fixes #677986 and #692890.
    
    Fixes strict dependencies and adds additional fcgi gem (#657156), fixes
    error with /var/log/redmine permission changes. Clear Gemfile.lock in
    config phase to clean up and update dependencies (#660252).
    
    Closes: https://bugs.gentoo.org/677986
    Closes: https://bugs.gentoo.org/692890
    Closes: https://bugs.gentoo.org/657156
    Closes: https://bugs.gentoo.org/660252
    Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
    Package-Manager: Portage-2.3.69, Repoman-2.3.16
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-apps/redmine/Manifest                          |   1 +
 .../files/redmine-4.0.5_gemfile_versions.patch     |  76 +++++++
 www-apps/redmine/redmine-4.0.5.ebuild              | 224 +++++++++++++++++++++
 3 files changed, 301 insertions(+)