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 <daigo@debian.org>; Source for rubygems1.8 is src:rubygems.

Reported by: Ken Bloom <kbloom@gmail.com>

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 <ftpmaster@ftp-master.debian.org>

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 debian-bugs-dist@lists.debian.org, Daigo Moriwaki <daigo@debian.org>:
Bug#529663; Package rubygems1.8. (Wed, 20 May 2009 20:33:04 GMT) Full text and rfc822 format available.

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

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Ken Bloom <kbloom@gmail.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
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

SYMPTOMS:
=========

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

CAUSE:
======

Ultimately, this is a rubygems problem in
/usr/lib/ruby/1.8/rubygems/ext/rake_builder.rb
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:

ENV['rake']
  --> not set (though this will give me a workaround in the meantime)
Gem.bin_path('rake')
  --> 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.


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

PROPOSED SOLUTION:
==================
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                     1.8.7.72-3.1 Generate documentation from Ruby s
ii  ruby1.8                     1.8.7.72-3.1 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                 1.8.7.72-3.1 Header files for compiling extensi
pn  rubygems-doc                <none>       (no description available)

-- no debconf information




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

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

Message #10 received at 529663-done@bugs.debian.org (full text, mbox):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 495320-done@bugs.debian.org,529663-done@bugs.debian.org,533304-done@bugs.debian.org,533334-done@bugs.debian.org,576113-done@bugs.debian.org,585838-done@bugs.debian.org,595168-done@bugs.debian.org,637914-done@bugs.debian.org,645230-done@bugs.debian.org,689069-done@bugs.debian.org,691737-done@bugs.debian.org,709412-done@bugs.debian.org,713165-done@bugs.debian.org,722361-done@bugs.debian.org,733985-done@bugs.debian.org,735576-done@bugs.debian.org,
Cc: rubygems@packages.debian.org, rubygems@packages.qa.debian.org
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 https://bugs.debian.org/736762

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

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



Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (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 <owner@bugs.debian.org>. Last modified: Fri Apr 18 13:42:06 2014; Machine Name: beach.debian.org

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