Package: libinline-ruby
Version: 3.8.3-2
Severity: important
Tags: patch
--- Please enter the report below this line. ---
inline.rb uses Gem.ruby/Gem.bindir which of course doesn't work without
rubygems installed.
/usr/lib/ruby/1.8/inline.rb:76: uninitialized constant Inline::Gem (NameError)
from ./lib/parse_tree.rb:7:in `require'
from ./lib/parse_tree.rb:7
from ./test/test_parse_tree.rb:12:in `require'
from ./test/test_parse_tree.rb:12
from -e:1:in `require'
from -e:1
from -e:1:in `each'
from -e:1
The whole RAKE constant can safely be dropped. Please see the attached patch.
Tobias
--- System information. ---
Architecture: amd64
Kernel: Linux 2.6.30-1-amd64
Debian Release: squeeze/sid
500 testing security.debian.org
500 testing ftp.de.debian.org
--- Package information. ---
Depends (Version) | Installed
================================-+-===========
libinline-ruby1.8 | 3.8.3-2
Package's Recommends field is empty.
Package's Suggests field is empty.
dont require rubygems
Index: libinline-ruby-3.8.3/lib/inline.rb
===================================================================
--- libinline-ruby-3.8.3.orig/lib/inline.rb 2009-11-22 17:32:49.000000000 +0100
+++ libinline-ruby-3.8.3/lib/inline.rb 2009-11-22 17:49:40.000000000 +0100
@@ -50,9 +50,6 @@
require "rbconfig"
require "digest/md5"
require 'fileutils'
-require 'rubygems'
-
-require 'zentest_mapping'
$TESTING = false unless defined? $TESTING
@@ -71,13 +68,6 @@
RUBINIUS = defined? RUBY_ENGINE
DEV_NULL = (WINDOZE ? 'nul' : '/dev/null')
GEM = (WINDOZE ? 'gem.bat' : 'gem')
- RAKE = if WINDOZE then
- 'rake.bat'
- elsif RUBINIUS then
- File.join(Gem.bindir, 'rake')
- else
- "#{Gem.ruby} -S rake"
- end
warn "RubyInline v #{VERSION}" if $DEBUG
@@ -151,8 +141,6 @@
class C
- include ZenTestMapping
-
MAGIC_ARITY_THRESHOLD = 15
MAGIC_ARITY = -1
@@ -245,7 +233,7 @@
signature = parse_signature(src, !expand_types)
function_name = signature['name']
method_name = options[:method_name]
- method_name ||= test_to_normal function_name
+ method_name ||= function_name
return_type = signature['return']
arity = signature['arity']