Module mkmf is used to generate Makefile, but it uses native libraries
instead of target libraries. To avoid arch problem, we don't compile
the extension.

Signed-off-by: Qian Lei <[email protected]>
---
 .../ruby/json/0001-Dont-compile-extensions.patch     | 20 ++++++++++++++++++++
 meta-openstack/recipes-devtools/ruby/json_git.bb     |  1 +
 2 files changed, 21 insertions(+)
 create mode 100644 
meta-openstack/recipes-devtools/ruby/json/0001-Dont-compile-extensions.patch

diff --git 
a/meta-openstack/recipes-devtools/ruby/json/0001-Dont-compile-extensions.patch 
b/meta-openstack/recipes-devtools/ruby/json/0001-Dont-compile-extensions.patch
new file mode 100644
index 0000000..0c2f513
--- /dev/null
+++ 
b/meta-openstack/recipes-devtools/ruby/json/0001-Dont-compile-extensions.patch
@@ -0,0 +1,20 @@
+From 8c6e4b688cc7feade17caa832f9304262025fd17 Mon Sep 17 00:00:00 2001
+From: Qian Lei <[email protected]>
+Date: Tue, 27 Jan 2015 19:34:26 +0800
+Subject: [PATCH] Dont compile extensions
+
+Signed-off-by: Qian Lei <[email protected]>
+---
+ json.gemspec | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/json.gemspec b/json.gemspec
+index 75926b1..af7e9ca 100644
+--- a/json.gemspec
++++ b/json.gemspec
+@@ -13 +13 @@ Gem::Specification.new do |s|
+-  s.extensions = ["ext/json/ext/generator/extconf.rb", 
"ext/json/ext/parser/extconf.rb"]
++#  s.extensions = ["ext/json/ext/generator/extconf.rb", 
"ext/json/ext/parser/extconf.rb"]
+-- 
+1.8.3.1
+
diff --git a/meta-openstack/recipes-devtools/ruby/json_git.bb 
b/meta-openstack/recipes-devtools/ruby/json_git.bb
index d3431c7..f738ece 100644
--- a/meta-openstack/recipes-devtools/ruby/json_git.bb
+++ b/meta-openstack/recipes-devtools/ruby/json_git.bb
@@ -19,0 +20 @@ SRC_URI = " \
+    file://0001-Dont-compile-extensions.patch \
-- 
1.8.3.1

-- 
_______________________________________________
meta-virtualization mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-virtualization

Reply via email to