[rubygem-ruby-debug-base19] add patches
Mamoru Tasaka
mtasaka at fedoraproject.org
Thu Oct 25 05:25:36 UTC 2012
commit 2d846c1997b80938d9cb09044fe79677dbdd0260
Author: TASAKA Mamoru <mtasaka at localhost.localdomain>
Date: Thu Oct 25 14:25:32 2012 +0900
add patches
...-base19-0.11.26-dont_use_ruby_core_source.patch | 20 ++++++++++++++++++++
...g-base19-0.11.26-gcc47-undefined-behavior.patch | 11 +++++++++++
2 files changed, 31 insertions(+), 0 deletions(-)
---
diff --git a/rubygem-ruby-debug-base19-0.11.26-dont_use_ruby_core_source.patch b/rubygem-ruby-debug-base19-0.11.26-dont_use_ruby_core_source.patch
new file mode 100644
index 0000000..971238e
--- /dev/null
+++ b/rubygem-ruby-debug-base19-0.11.26-dont_use_ruby_core_source.patch
@@ -0,0 +1,20 @@
+--- ./ext/ruby_debug/extconf.rb.debug 1970-01-01 09:00:00.000000000 +0900
++++ ./ext/ruby_debug/extconf.rb 2012-04-30 22:21:21.000000000 +0900
+@@ -1,5 +1,4 @@
+ require "mkmf"
+-require "ruby_core_source"
+
+ if RUBY_VERSION < "1.9"
+ STDERR.print("Ruby version is too old\n")
+@@ -29,7 +28,10 @@
+ }
+
+ dir_config("ruby")
+-if !Ruby_core_source::create_makefile_with_core(hdrs, "ruby_debug")
++#if !Ruby_core_source::create_makefile_with_core(hdrs, "ruby_debug")
++if hdrs.call
++ create_makefile("ruby_debug")
++else
+ STDERR.print("Makefile creation failed\n")
+ STDERR.print("*************************************************************\n\n")
+ STDERR.print(" NOTE: For Ruby 1.9 installation instructions, please see:\n\n")
diff --git a/rubygem-ruby-debug-base19-0.11.26-gcc47-undefined-behavior.patch b/rubygem-ruby-debug-base19-0.11.26-gcc47-undefined-behavior.patch
new file mode 100644
index 0000000..c9e357e
--- /dev/null
+++ b/rubygem-ruby-debug-base19-0.11.26-gcc47-undefined-behavior.patch
@@ -0,0 +1,11 @@
+--- ./ext/ruby_debug/ruby_debug.c.gcc47 1970-01-01 09:00:00.000000000 +0900
++++ ./ext/ruby_debug/ruby_debug.c 2012-05-03 12:35:31.000000000 +0900
+@@ -490,7 +490,7 @@
+ if(frame_n >= debug_context->stack_len)
+ {
+ debug_context->stack_len += STACK_SIZE_INCREMENT;
+- debug_context->frames = REALLOC_N(debug_context->frames, debug_frame_t, debug_context->stack_len);
++ REALLOC_N(debug_context->frames, debug_frame_t, debug_context->stack_len);
+ }
+ debug_frame = &debug_context->frames[frame_n];
+ debug_frame->file = file;
More information about the scm-commits
mailing list