[packages/ruby] - asm fix for x32
baggins
baggins at pld-linux.org
Fri Jan 2 15:00:53 CET 2015
commit ea1548ae9e1220e81b3ad12d4bc78f91f9c11a4a
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Jan 2 14:00:37 2015 +0000
- asm fix for x32
ruby.spec | 2 ++
x32-asm.patch | 16 ++++++++++++++++
2 files changed, 18 insertions(+)
---
diff --git a/ruby.spec b/ruby.spec
index a79ad6e..bfc9a2d 100644
--- a/ruby.spec
+++ b/ruby.spec
@@ -72,6 +72,7 @@ Patch7: empty-ruby-version.patch
Patch8: rubygems-2.0.0-binary-extensions.patch
Patch9: custom-rubygems-location.patch
Patch10: %{oname}-posixsh.patch
+Patch11: x32-asm.patch
URL: http://www.ruby-lang.org/
BuildRequires: autoconf >= 2.60
BuildRequires: automake
@@ -435,6 +436,7 @@ Biblioteka JSON dla języka Ruby.
%patch8 -p1
%patch9 -p1
%patch10 -p1
+%patch11 -p1
# must be regenerated with new bison
%{__rm} parse.{c,h}
diff --git a/x32-asm.patch b/x32-asm.patch
new file mode 100644
index 0000000..9fb8e87
--- /dev/null
+++ b/x32-asm.patch
@@ -0,0 +1,16 @@
+Index: ruby1.9.1-1.9.3.484/gc.h
+===================================================================
+--- ruby1.9.1-1.9.3.484.orig/gc.h 2014-03-08 07:14:10.672333559 -0800
++++ ruby1.9.1-1.9.3.484/gc.h 2014-03-08 07:17:00.820079593 -0800
+@@ -3,7 +3,11 @@
+ #define RUBY_GC_H 1
+
+ #if defined(__x86_64__) && defined(__GNUC__) && !defined(__native_client__)
++#ifdef __ILP32__
++#define SET_MACHINE_STACK_END(p) __asm__ volatile ("movl\t%%esp, %0" : "=r" (*(p)))
++#else
+ #define SET_MACHINE_STACK_END(p) __asm__ volatile ("movq\t%%rsp, %0" : "=r" (*(p)))
++#endif
+ #elif defined(__i386) && defined(__GNUC__) && !defined(__native_client__)
+ #define SET_MACHINE_STACK_END(p) __asm__ volatile ("movl\t%%esp, %0" : "=r" (*(p)))
+ #else
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby.git/commitdiff/ea1548ae9e1220e81b3ad12d4bc78f91f9c11a4a
More information about the pld-cvs-commit
mailing list