Project

General

Profile

Bug #462

Foreman .DEB package fails on Debian Linux 5.0 (Lenny)

Added by Jochen Schalanda over 8 years ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Category:
Packaging
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

The installation of the Foreman .DEB package fails on Debian Linux 5.0 (Lenny) due to an old version of rake.

The package tree for Debian Linux 5.0 contains rake 0.8.1. /usr/share/foreman/extras/dbmigrate, which is being run by the package postinst script, fails due to the old rake version:

$ su - foreman -s /bin/sh -c /usr/share/foreman/extras/dbmigrate
(in /usr/share/foreman)
rake aborted!
undefined method `reenable' for <Rake::Task db:schema:dump => [environment]>:Rake::Task

Installing a more recent version of rake through RubyGems and linking the binary to /usr/local/bin/rake fixes the problem.

Reference: HowTo update rake 0.8.1 -> 0.8.4 on debian

History

#1 Updated by Jochen Schalanda over 8 years ago

Related patch:

Remove absolute paths from ./extras/dbmigrate and rely on a correct $PATH environment variable instead of using absolute paths which will fail if rake is not located at /usr/bin/rake (e. g. when using RubyGems rather than the distribution packages).

#2 Updated by Jochen Schalanda over 8 years ago

The package now depends on rake >= 0.8.4. Users of Debian Linux 5.0 (Lenny) will have to use the rake package from lenny-backports or install rake through RubyGems.

#3 Updated by Ohad Levy over 8 years ago

  • Target version set to 0.2

#4 Updated by Ohad Levy over 8 years ago

  • Status changed from New to Closed

implemented at 467f037

#5 Updated by Tomer Brisker 9 months ago

  • Category changed from 21 to Packaging

Also available in: Atom PDF