Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 710262 - www-apps/redmine-4.0.5-r1 - pkg_config(): Could not find gem 'rails (= 5.2.3)' in any of the gem sources listed in your Gemfile.
Summary: www-apps/redmine-4.0.5-r1 - pkg_config(): Could not find gem 'rails (= 5.2.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-02-19 22:26 UTC by Lars
Modified: 2020-05-13 13:17 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars 2020-02-19 22:26:39 UTC
After emerging www-apps/redmine-4.0.5-r1 configuring pkg fails.




Reproducible: Always

Steps to Reproduce:
1. emerge --config "=www-apps/redmine-4.0.5-r1"

Actual Results:  
Configuring pkg...

 *
 * Initializing database.
 *
 * Generating a session store secret.
Could not find gem 'rails (= 5.2.3)' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
 * ERROR: www-apps/redmine-4.0.5-r1::gentoo failed (config phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 125:  Called pkg_config
 *   environment, line 2398:  Called die
 * The specific snippet of code:
 *           ${RUBY} -S rake generate_secret_token || die;
 *
 * If you need support, post the output of `emerge --info '=www-apps/redmine-4.0.5-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-apps/redmine-4.0.5-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/www-apps/redmine-4.0.5-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-apps/redmine-4.0.5-r1/temp/environment'.
 * Working directory: '/var/lib/redmine'
 * S: '/var/tmp/portage/www-apps/redmine-4.0.5-r1/work/redmine-4.0.5'


Expected Results:  
`www-apps/redmine-4.0.5-r1` should either rdepend on `dev-ruby/rails-5.2.3` or `/var/lib/redmine/Gemfile` should not depend on `gem "rails", "5.2.3"`.

dev-ruby/rails-5.2.3 is not in tree any more. I have dev-ruby/rails-5.2.4.1 installed.

After editing `/var/lib/redmine/Gemfile` to match rails 5.2.4.1 pkg config fails with this error:

Configuring pkg...

 *
 * Initializing database.
 *
 * Generating a session store secret.
Could not find gem 'rails (= 5.2.3)' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
 * ERROR: www-apps/redmine-4.0.5-r1::gentoo failed (config phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 125:  Called pkg_config
 *   environment, line 2398:  Called die
 * The specific snippet of code:
 *           ${RUBY} -S rake generate_secret_token || die;
 *
 * If you need support, post the output of `emerge --info '=www-apps/redmine-4.0.5-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-apps/redmine-4.0.5-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/www-apps/redmine-4.0.5-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-apps/redmine-4.0.5-r1/temp/environment'.
 * Working directory: '/var/lib/redmine'
 * S: '/var/tmp/portage/www-apps/redmine-4.0.5-r1/work/redmine-4.0.5'


I had dev-ruby/pg-0.21.0 installed. Shouldn't www-apps/redmine-4.0.5-r1 rdepend on dev-ruby/pg-1.1.4?
Comment 1 Lars 2020-02-19 22:36:16 UTC
The last output of pkg config should have read:

Configuring pkg...

 *
 * Initializing database.
 *
 * Generating a session store secret.
Could not find gem 'pg (>= 1.1.4)' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
 * ERROR: www-apps/redmine-4.0.5-r1::gentoo failed (config phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 125:  Called pkg_config
 *   environment, line 2398:  Called die
 * The specific snippet of code:
 *           ${RUBY} -S rake generate_secret_token || die;
 *
 * If you need support, post the output of `emerge --info '=www-apps/redmine-4.0.5-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-apps/redmine-4.0.5-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/www-apps/redmine-4.0.5-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-apps/redmine-4.0.5-r1/temp/environment'.
 * Working directory: '/var/lib/redmine'
 * S: '/var/tmp/portage/www-apps/redmine-4.0.5-r1/work/redmine-4.0.5'
Comment 2 Lars 2020-02-19 22:43:37 UTC
After installing dev-ruby/pg-1.1.4:

Configuring pkg...

 *
 * Initializing database.
 *
 * Generating a session store secret.
Bundler could not find compatible versions for gem "roadie":
  In Gemfile:
    roadie-rails (>= 1.3.0) was resolved to 1.3.0, which depends on
      roadie (~> 3.1)

Could not find gem 'roadie (~> 3.1)', which is required by gem 'roadie-rails (>= 1.3.0)', in any of the sources.
 * ERROR: www-apps/redmine-4.0.5-r1::gentoo failed (config phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line 125:  Called pkg_config
 *   environment, line 2398:  Called die
 * The specific snippet of code:
 *           ${RUBY} -S rake generate_secret_token || die;
 *
 * If you need support, post the output of `emerge --info '=www-apps/redmine-4.0.5-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=www-apps/redmine-4.0.5-r1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/www-apps/redmine-4.0.5-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/www-apps/redmine-4.0.5-r1/temp/environment'.
 * Working directory: '/var/lib/redmine'
 * S: '/var/tmp/portage/www-apps/redmine-4.0.5-r1/work/redmine-4.0.5'




After installing dev-ruby/roadie-3.5.1 (was dev-ruby/roadie-4.0.0) pkg configure succeeds.
Comment 3 Larry the Git Cow gentoo-dev 2020-05-13 13:17:15 UTC
The bug has been closed via the following commit(s):

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

commit 92c5abf0c96deef57d16c4677b03437a49ad8628
Author:     Azamat H. Hackimov <azamat.hackimov@gmail.com>
AuthorDate: 2020-04-19 21:29:35 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-05-13 13:16:46 +0000

    www-apps/redmine: update to 4.1.1 (security fix)
    
    Updated dependencies and supported USE_RUBY targets
    Closes: https://bugs.gentoo.org/710262
    Closes: https://bugs.gentoo.org/717518
    Closes: https://bugs.gentoo.org/717604
    Bug: https://bugs.gentoo.org/717784
    Package-Manager: Portage-2.3.89, Repoman-2.3.20
    Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 www-apps/redmine/Manifest             |   1 +
 www-apps/redmine/redmine-4.1.1.ebuild | 229 ++++++++++++++++++++++++++++++++++
 2 files changed, 230 insertions(+)