Debian Bug report logs - #529663
rubygems1.8: Gem::Ext::RakeBuilder uses the wrong executable name for rake

version graph

Package: rubygems1.8; Maintainer for rubygems1.8 is Daigo Moriwaki <>; Source for rubygems1.8 is src:rubygems.

Reported by: Ken Bloom <>

Date: Wed, 20 May 2009 20:33:02 UTC

Severity: important

Found in version libgems-ruby/1.3.2-1

Fixed in version 1.8.24-1+rm

Done: Debian FTP Masters <>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox

Report forwarded to, Daigo Moriwaki <>:
Bug#529663; Package rubygems1.8. (Wed, 20 May 2009 20:33:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ken Bloom <>:
New Bug report received and forwarded. Copy sent to Daigo Moriwaki <>. (Wed, 20 May 2009 20:33:05 GMT) Full text and rfc822 format available.

Message #5 received at (full text, mbox):

From: Ken Bloom <>
To: Debian Bug Tracking System <>
Subject: rubygems1.8: Gem::Ext::RakeBuilder uses the wrong executable name for rake
Date: Wed, 20 May 2009 15:31:38 -0500
Package: rubygems1.8
Version: 1.3.2-1
Severity: important


Trying to install the ffi gem in Debian's ruby 1.8, I get the
following error:

[bloom@cat-in-the-hat ~]$ gem install ffi
Building native extensions.  This could take a while...
ERROR:  Error installing ffi:
	ERROR: Failed to build gem native extension.

rake1.8 RUBYARCHDIR=/home/bloom/.gem/ruby/1.8/gems/ffi-0.3.5/lib RUBYLIBDIR=/home/bloom/.gem/ruby/1.8/gems/ffi-0.3.5/lib
sh: rake1.8: command not found

I have rake installed from Debian's rake package, and the binary to
run rake is /usr/bin/rake (so no rake 1.8 exists).
ii  rake                     0.8.4-1                  a ruby build program


Ultimately, this is a rubygems problem in
Rubygems determines the rake command to run by executing:

cmd = ENV['rake'] || Gem.bin_path('rake') rescue Gem.default_exec_format % 'rake'

So let's check:

  --> not set (though this will give me a workaround in the meantime)
  --> rake isn't installed from a gem -- it's from the debian package
Gem.default_exec_format % 'rake'
  --> Gem.default_exec_format is "%s1.8", so when formatting "rake"
      with that, we get rake1.8, a binary that doesn't exist.

$ rake=/usr/bin/rake gem install ffi

In the short term, add a check to see if /usr/bin/rake is installed,
and if so then use that.

In the longer term, it would help to create some sort of equivalence
mechanism so that Ruby can identify debian packages as being
equivalent to gems.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages rubygems1.8 depends on:
ii  rdoc1.8            Generate documentation from Ruby s
ii  ruby1.8            Interpreter of object-oriented scr

rubygems1.8 recommends no packages.

Versions of packages rubygems1.8 suggests:
ii  build-essential             11.4         Informational list of build-essent
ii  ruby1.8-dev        Header files for compiling extensi
pn  rubygems-doc                <none>       (no description available)

-- no debconf information

Reply sent to Debian FTP Masters <>:
You have taken responsibility. (Fri, 31 Jan 2014 19:30:50 GMT) Full text and rfc822 format available.

Notification sent to Ken Bloom <>:
Bug acknowledged by developer. (Fri, 31 Jan 2014 19:30:50 GMT) Full text and rfc822 format available.

Message #10 received at (full text, mbox):

From: Debian FTP Masters <>
Subject: Bug#736762: Removed package(s) from unstable
Date: Fri, 31 Jan 2014 19:19:18 +0000
Version: 1.8.24-1+rm

Dear submitter,

as the package rubygems has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see

The version of this package that was in Debian prior to this removal
can still be found using

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing

Debian distribution maintenance software
Ansgar Burchardt (the ftpmaster behind the curtain)

Bug archived. Request was from Debbugs Internal Request <> to (Sat, 01 Mar 2014 07:35:47 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.

Debian bug tracking system administrator <>. Last modified: Fri Apr 18 13:42:06 2014; Machine Name:

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.