Bug#683346: unblock: ruby-filesystem/0.5-5
Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: unblock
Please unblock package ruby-filesystem to fix RC bug #672763.
Here is diff to resolve.
diff -Nru ruby-filesystem-0.5/debian/changelog ruby-filesystem-0.5/debian/changelog
--- ruby-filesystem-0.5/debian/changelog 2012-05-03 00:18:30.000000000 +0900
+++ ruby-filesystem-0.5/debian/changelog 2012-06-05 18:40:18.000000000 +0900
@@ -1,3 +1,10 @@
+ruby-filesystem (0.5-5) unstable; urgency=low
+
+ * Fix segfault on 64bit environment (use NULL (!=0) for termination for
+ rb_struct_define) (Closes: #672763)
+
+ -- Tatsuki Sugiura <sugi@nemui.org> Tue, 05 Jun 2012 18:30:31 +0900
+
ruby-filesystem (0.5-4) unstable; urgency=low
* Package renamed to ruby-filesystem.
diff -Nru ruby-filesystem-0.5/debian/patches/fix-segv-with-rb_struct_define-on-64bit ruby-filesystem-0.5/debian/patches/fix-segv-with-rb_struct_define-on-64bit
--- ruby-filesystem-0.5/debian/patches/fix-segv-with-rb_struct_define-on-64bit 1970-01-01 09:00:00.000000000 +0900
+++ ruby-filesystem-0.5/debian/patches/fix-segv-with-rb_struct_define-on-64bit 2012-06-05 18:30:26.000000000 +0900
@@ -0,0 +1,29 @@
+--- a/filesystem.c
++++ b/filesystem.c
+@@ -113,7 +113,7 @@ static VALUE fs_stat(VALUE obj, VALUE di
+ INT2NUM(fs.f_favail),
+ INT2NUM(fs.f_flag),
+ INT2NUM(fs.f_namemax),
+- 0 );
++ NULL );
+ }
+
+ void Init_filesystem()
+@@ -124,7 +124,7 @@ void Init_filesystem()
+
+ sFSstat = rb_struct_define("FileSystemStat",
+ "path", "block_size", "blocks", "blocks_free", "blocks_avail",
+- "files", "files_free", "files_avail", "flags", "maxnamelen", 0);
++ "files", "files_free", "files_avail", "flags", "maxnamelen", NULL);
+ rb_global_variable(&sFSstat);
+
+ sFSmount = rb_struct_define("FileSystemMount",
+@@ -134,7 +134,7 @@ void Init_filesystem()
+ #else
+ "dump_interval", "check_pass",
+ #endif
+- 0);
++ NULL);
+ rb_global_variable(&sFSmount);
+
+
diff -Nru ruby-filesystem-0.5/debian/patches/series ruby-filesystem-0.5/debian/patches/series
--- ruby-filesystem-0.5/debian/patches/series 2012-04-30 11:09:29.000000000 +0900
+++ ruby-filesystem-0.5/debian/patches/series 2012-06-05 18:29:55.000000000 +0900
@@ -1 +1,2 @@
+fix-segv-with-rb_struct_define-on-64bit
1.9-support
unblock ruby-filesystem/0.5-5
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (x86_64)
Kernel: Linux 2.6.39-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf-8, LC_CTYPE=ja_JP.utf-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Reply to: