[DRE-maint] Bug#587767: libactivesupport-ruby1.8: Missing import of 'thread' when rubygems not installed

Jakob Kemi jakob.kemi at gmail.com
Thu Jul 1 13:51:17 UTC 2010


Package: libactivesupport-ruby1.8
Version: 2.3.5-1
Severity: important
Tags: patch


Loading module 'active_support' fails when rubygems (not required by this package)  is not installed. (see below)
This is due to 'thread' not being loaded, without rubygems installed.
A proposed fix is attached. (note that I'm not very used to ruby, or rails, so a better solution might be available)

ruby -e "require 'active_support'"
/usr/lib/ruby/1.8/active_support/dependencies.rb:55: uninitialized constant ActiveSupport::Dependencies::Mutex (NameError)
	from /usr/lib/ruby/1.8/active_support.rb:56:in `require'
	from /usr/lib/ruby/1.8/active_support.rb:56
	from -e:1:in `require'
	from -e:1


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (800, 'testing'), (200, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-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/dash

Versions of packages libactivesupport-ruby1.8 depends on:
ii  libbuilder-ruby1.8           2.1.2-2     Ruby library to facilitate program
ii  libi18n-ruby1.8              0.3.6-1     I18n and localization solution (Ru
ii  libmemcache-client-ruby1.8   1.7.8-1     Ruby client library for memcached 
ii  librack-ruby                 1.1.0-3     A modular Ruby webserver interface
ii  libruby1.8                   1.8.7.249-3 Libraries necessary to run Ruby 1.
ii  libtzinfo-ruby1.8            0.3.19-1    Ruby library for transformations b

libactivesupport-ruby1.8 recommends no packages.

libactivesupport-ruby1.8 suggests no packages.

-- no debconf information

*** /usr/local/source/rails-2.3.5/debian/patches/01-missing-Mutex
diff -urN activesupport.orig/lib/active_support/vendor.rb activesupport/lib/active_support/vendor.rb
--- activesupport.orig/lib/active_support/vendor.rb	2010-07-01 15:09:51.000000000 +0200
+++ activesupport/lib/active_support/vendor.rb	2010-07-01 15:20:09.851457558 +0200
@@ -29,6 +29,7 @@
 require 'i18n'
 
 rescue LoadError # No rubygems
+  require 'thread'
   require 'builder'
   $:.unshift "#{File.dirname(__FILE__)}/vendor/memcache-client-1.7.4"
   $:.unshift "#{File.dirname(__FILE__)}/vendor/tzinfo-0.3.12"






More information about the Pkg-ruby-extras-maintainers mailing list