Bug#677650: proposed fix for this bug

Cédric Boutillier cedric.boutillier at gmail.com
Tue Dec 4 12:34:12 UTC 2012


Control: tag -1 patch

Hi!

Since this tool is working fine with Ruby 1.8, a solution would be to
change the shebang to /usr/bin/ruby1.8 and depend on ruby1.8 instead of
ruby. This would be worfing at least for Wheezy, since ruby1.8 belongs
to the repository, and will give time to upstream to adapt unhide.rb for
Ruby 1.9 or higher.

Attached is a proposed patch to fix this issue. If there is no
objection, I am considering updloading it in a couple of days.

Cheers,

Cédric
-------------- next part --------------
diff -Nru unhide.rb-13/debian/changelog unhide.rb-13/debian/changelog
--- unhide.rb-13/debian/changelog	2011-07-08 07:50:26.000000000 +0200
+++ unhide.rb-13/debian/changelog	2012-12-04 13:22:41.000000000 +0100
@@ -1,3 +1,14 @@
+unhide.rb (13-1.1) unstable; urgency=high
+
+  * Non-maintainer upload.
+  * Set urgency to high, as a RC bug is fixed.
+  * Use Ruby 1.8 instead of default Ruby 1.9 version. (Closes: #677650)
+    + add debian/patches/use_ruby18.patch, changing the shebang of unhide.rb
+      to /usr/bin/ruby1.8 as it contains code not compatible with Ruby 1.9,
+    + Depends on ruby1.8 instead of ruby.
+
+ -- Cédric Boutillier <boutil at debian.org>  Tue, 04 Dec 2012 12:58:03 +0100
+
 unhide.rb (13-1) unstable; urgency=low
 
   * New upstream snapshot:
diff -Nru unhide.rb-13/debian/control unhide.rb-13/debian/control
--- unhide.rb-13/debian/control	2011-07-08 07:50:26.000000000 +0200
+++ unhide.rb-13/debian/control	2012-12-04 13:15:40.000000000 +0100
@@ -11,7 +11,7 @@
 
 Package: unhide.rb
 Architecture: all
-Depends: ruby, ${misc:Depends}
+Depends: ruby1.8, ${misc:Depends}
 Suggests: rkhunter
 Description: Forensic tool to find processes hidden by rootkits
  Unhide.rb is a reimplementation of unhide in Ruby.
diff -Nru unhide.rb-13/debian/patches/series unhide.rb-13/debian/patches/series
--- unhide.rb-13/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ unhide.rb-13/debian/patches/series	2012-12-04 12:56:49.000000000 +0100
@@ -0,0 +1 @@
+use_ruby18.patch
diff -Nru unhide.rb-13/debian/patches/use_ruby18.patch unhide.rb-13/debian/patches/use_ruby18.patch
--- unhide.rb-13/debian/patches/use_ruby18.patch	1970-01-01 01:00:00.000000000 +0100
+++ unhide.rb-13/debian/patches/use_ruby18.patch	2012-12-04 13:15:23.000000000 +0100
@@ -0,0 +1,17 @@
+Description: change shebang to use Ruby1.8 instead of default Ruby1.9
+ Wheezy ships Ruby1.9 as the default Ruby version. The script unhide.rb
+ contains code specific for Ruby1.8 (use of DL::Importable module), and thus
+ should be run with the Ruby1.8 interpreter.
+Author: Cédric Boutillier <boutil at debian.org>
+Bug: https://bugs.launchpad.net/unhide.rb/+bug/1077573
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677650
+Last-Update: 2012-12-04
+
+--- a/unhide.rb
++++ b/unhide.rb
+@@ -1,4 +1,4 @@
+-#!/usr/bin/ruby -w
++#!/usr/bin/ruby1.8 -w
+ 
+ # Try to find running processes using different methods, and report
+ # processes found through some means but not through others.


More information about the forensics-devel mailing list