Package: ruby1.8
Version: 1.8.6-2
Severity: normal
Tags: patch,upstream

Please apply upstream patch #11680 [0], without it functionaility of
Sync class is severely limited.

[0] 
http://rubyforge.org/tracker/index.php?func=detail&aid=11680&group_id=426&atid=1700


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (50, 'testing'), (50, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core)
Locale: LANG=be_BY.UTF-8, LC_CTYPE=be_BY.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages ruby1.8 depends on:
ii  libc6                         2.5-11     GNU C Library: Shared libraries
ii  libruby1.8                    1.8.6-2    Libraries necessary to run Ruby 1.

ruby1.8 recommends no packages.

-- no debconf information

-- 
Dmitry Borodaenko
--- sync.rb.dpkg-dist	2007-05-08 23:35:15.000000000 +0100
+++ sync.rb	2007-05-09 01:04:37.000000000 +0100
@@ -54,6 +54,7 @@
   # exceptions
   class Err < StandardError
     def Err.Fail(*opt)
+      Thread.critical = false
       fail self, sprintf(self::Message, *opt)
     end
     
@@ -129,10 +130,10 @@
   
   # locking methods.
   def sync_try_lock(mode = EX)
-    return unlock if sync_mode == UN
+    return unlock if mode == UN
     
     Thread.critical = true
-    ret = sync_try_lock_sub(sync_mode)
+    ret = sync_try_lock_sub(mode)
     Thread.critical = false
     ret
   end

Reply via email to