* [PATCH 1/2] json: Don't compile extensions
2015-01-28 2:03 [PATCH 0/2] Don't compile extensions Qian Lei
@ 2015-01-28 2:03 ` Qian Lei
2015-01-28 2:03 ` [PATCH 2/2] yajl-ruby: " Qian Lei
2015-01-30 5:20 ` [PATCH 0/2] " Bruce Ashfield
2 siblings, 0 replies; 5+ messages in thread
From: Qian Lei @ 2015-01-28 2:03 UTC (permalink / raw)
To: meta-virtualization
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 <qianl.fnst@cn.fujitsu.com>
---
.../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 <qianl.fnst@cn.fujitsu.com>
+Date: Tue, 27 Jan 2015 19:34:26 +0800
+Subject: [PATCH] Dont compile extensions
+
+Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com>
+---
+ 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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] yajl-ruby: Don't compile extensions
2015-01-28 2:03 [PATCH 0/2] Don't compile extensions Qian Lei
2015-01-28 2:03 ` [PATCH 1/2] json: " Qian Lei
@ 2015-01-28 2:03 ` Qian Lei
2015-01-30 5:20 ` [PATCH 0/2] " Bruce Ashfield
2 siblings, 0 replies; 5+ messages in thread
From: Qian Lei @ 2015-01-28 2:03 UTC (permalink / raw)
To: meta-virtualization
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 <qianl.fnst@cn.fujitsu.com>
---
.../yajl-ruby/0001-Don-t-compile-extensions.patch | 20 ++++++++++++++++++++
.../recipes-devtools/ruby/yajl-ruby_git.bb | 1 +
2 files changed, 21 insertions(+)
create mode 100644 meta-openstack/recipes-devtools/ruby/yajl-ruby/0001-Don-t-compile-extensions.patch
diff --git a/meta-openstack/recipes-devtools/ruby/yajl-ruby/0001-Don-t-compile-extensions.patch b/meta-openstack/recipes-devtools/ruby/yajl-ruby/0001-Don-t-compile-extensions.patch
new file mode 100644
index 0000000..8ebd35d
--- /dev/null
+++ b/meta-openstack/recipes-devtools/ruby/yajl-ruby/0001-Don-t-compile-extensions.patch
@@ -0,0 +1,20 @@
+From 8aec601d3531e7e0ba40df9d712e3754c5404f1a Mon Sep 17 00:00:00 2001
+From: Qian Lei <qianl.fnst@cn.fujitsu.com>
+Date: Tue, 27 Jan 2015 19:13:16 +0800
+Subject: [PATCH] Don't compile extensions.
+
+Signed-off-by: Qian Lei <qianl.fnst@cn.fujitsu.com>
+---
+ yajl-ruby.gemspec | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/yajl-ruby.gemspec b/yajl-ruby.gemspec
+index f601263..ecfeacf 100644
+--- a/yajl-ruby.gemspec
++++ b/yajl-ruby.gemspec
+@@ -9 +9 @@ Gem::Specification.new do |s|
+- s.extensions = ["ext/yajl/extconf.rb"]
++# s.extensions = ["ext/yajl/extconf.rb"]
+--
+1.8.3.1
+
diff --git a/meta-openstack/recipes-devtools/ruby/yajl-ruby_git.bb b/meta-openstack/recipes-devtools/ruby/yajl-ruby_git.bb
index 2bdd218..ecc8d43 100644
--- a/meta-openstack/recipes-devtools/ruby/yajl-ruby_git.bb
+++ b/meta-openstack/recipes-devtools/ruby/yajl-ruby_git.bb
@@ -20,0 +21 @@ SRC_URI = " \
+ file://0001-Don-t-compile-extensions.patch \
--
1.8.3.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] Don't compile extensions
2015-01-28 2:03 [PATCH 0/2] Don't compile extensions Qian Lei
2015-01-28 2:03 ` [PATCH 1/2] json: " Qian Lei
2015-01-28 2:03 ` [PATCH 2/2] yajl-ruby: " Qian Lei
@ 2015-01-30 5:20 ` Bruce Ashfield
2015-01-30 6:34 ` Qian Lei
2 siblings, 1 reply; 5+ messages in thread
From: Bruce Ashfield @ 2015-01-30 5:20 UTC (permalink / raw)
To: Qian Lei; +Cc: meta-virtualization@yoctoproject.org
On Tue, Jan 27, 2015 at 9:03 PM, Qian Lei <qianl.fnst@cn.fujitsu.com> wrote:
> Ruby module mkmf is used in these extensions. But mkmf use native
> libraries instead of target libraries. so we don't compile them.
Thanks for the fixes. They look fine to me, and I've merged them to the master
branch.
Cheers,
Bruce
>
> Qian Lei (2):
> json: Don't compile extensions
> yajl-ruby: Don't compile extensions
>
> .../ruby/json/0001-Dont-compile-extensions.patch | 20 ++++++++++++++++++++
> meta-openstack/recipes-devtools/ruby/json_git.bb | 1 +
> .../yajl-ruby/0001-Don-t-compile-extensions.patch | 20 ++++++++++++++++++++
> .../recipes-devtools/ruby/yajl-ruby_git.bb | 1 +
> 4 files changed, 42 insertions(+)
> create mode 100644 meta-openstack/recipes-devtools/ruby/json/0001-Dont-compile-extensions.patch
> create mode 100644 meta-openstack/recipes-devtools/ruby/yajl-ruby/0001-Don-t-compile-extensions.patch
>
> --
> 1.8.3.1
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
--
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] Don't compile extensions
2015-01-30 5:20 ` [PATCH 0/2] " Bruce Ashfield
@ 2015-01-30 6:34 ` Qian Lei
0 siblings, 0 replies; 5+ messages in thread
From: Qian Lei @ 2015-01-30 6:34 UTC (permalink / raw)
To: Bruce Ashfield; +Cc: meta-virtualization@yoctoproject.org
On Fri, 30 Jan 2015 00:20:28 -0500
Bruce Ashfield <bruce.ashfield@gmail.com> wrote:
> On Tue, Jan 27, 2015 at 9:03 PM, Qian Lei <qianl.fnst@cn.fujitsu.com> wrote:
> > Ruby module mkmf is used in these extensions. But mkmf use native
> > libraries instead of target libraries. so we don't compile them.
>
> Thanks for the fixes. They look fine to me, and I've merged them to the master
> branch.
I think they work fine if the host and target is the same architecture. You may
need to built them for other target. My target is qemu-x86 while my
host is x86-64.
> Cheers,
>
> Bruce
>
> >
> > Qian Lei (2):
> > json: Don't compile extensions
> > yajl-ruby: Don't compile extensions
> >
> > .../ruby/json/0001-Dont-compile-extensions.patch | 20
> > ++++++++++++++++++++ meta-openstack/recipes-devtools/ruby/json_git.bb
> > | 1 + .../yajl-ruby/0001-Don-t-compile-extensions.patch | 20
> > ++++++++++++++++++++ .../recipes-devtools/ruby/yajl-ruby_git.bb
> > | 1 + 4 files changed, 42 insertions(+)
> > create mode 100644
> > meta-openstack/recipes-devtools/ruby/json/0001-Dont-compile-extensions.patch
> > create mode 100644
> > meta-openstack/recipes-devtools/ruby/yajl-ruby/0001-Don-t-compile-extensions.patch
> >
> > --
> > 1.8.3.1
> >
> > --
> > _______________________________________________
> > meta-virtualization mailing list
> > meta-virtualization@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/meta-virtualization
>
>
>
--
Qian Lei
^ permalink raw reply [flat|nested] 5+ messages in thread