All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe] [PATCH] nodejs needs python-native
@ 2014-05-20 19:03 Amy Fong
  2014-05-20 19:28 ` Khem Raj
  2014-05-27 16:54 ` [meta-oe] [PATCH] [v2] nodejs needs python-native (Was: Re: [meta-oe] [PATCH] nodejs needs python-native) Amy Fong
  0 siblings, 2 replies; 4+ messages in thread
From: Amy Fong @ 2014-05-20 19:03 UTC (permalink / raw)
  To: openembedded-devel

From c13975829fde23138a35d63f2b641fad0fde8c72 Mon Sep 17 00:00:00 2001
From: Amy Fong <amy.fong@windriver.com>
Date: Tue, 20 May 2014 14:58:54 -0400
Subject: [PATCH] nodejs needs python-native

nodejs should use python from python-native package. On some hosts, the
default python is missing bz2 support.

Signed-off-by: Amy Fong <amy.fong@windriver.com>
---
 meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb b/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb
index 996d68e..75a9ca4 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb
+++ b/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "http://nodejs.org"
 LICENSE = "MIT & BSD"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=95a589a3257ab7dfe37d8a8379e3c72d"
 
-DEPENDS = "openssl"
+DEPENDS = "openssl python-native"
 
 SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz \
            file://0001-gcc-has-a-builtin-define-to-denote-hard-abi-when-in-.patch \
@@ -28,6 +28,7 @@ do_configure () {
 
 do_compile () {
     export LD="${CXX}"
+    export PATH=${STAGING_BINDIR_NATIVE}/python-native:$PATH
     make BUILDTYPE=Release
 }
 
@@ -40,3 +41,5 @@ RDEPENDS_${PN}_class-native = ""
 
 FILES_${PN} += "${libdir}/node/wafadmin ${libdir}/node_modules ${libdir}/dtrace"
 BBCLASSEXTEND = "native"
+
+FILES_${PN} += "/usr/lib/*"
-- 
2.0.0.rc0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [meta-oe] [PATCH] nodejs needs python-native
  2014-05-20 19:03 [meta-oe] [PATCH] nodejs needs python-native Amy Fong
@ 2014-05-20 19:28 ` Khem Raj
  2014-05-20 19:56   ` Gary Thomas
  2014-05-27 16:54 ` [meta-oe] [PATCH] [v2] nodejs needs python-native (Was: Re: [meta-oe] [PATCH] nodejs needs python-native) Amy Fong
  1 sibling, 1 reply; 4+ messages in thread
From: Khem Raj @ 2014-05-20 19:28 UTC (permalink / raw)
  To: openembeded-devel

On Tue, May 20, 2014 at 12:03 PM, Amy Fong <amy.fong@windriver.com> wrote:
> -DEPENDS = "openssl"
> +DEPENDS = "openssl python-native"
>

may be it should inherit pythonnative

>  SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz \
>             file://0001-gcc-has-a-builtin-define-to-denote-hard-abi-when-in-.patch \
> @@ -28,6 +28,7 @@ do_configure () {
>
>  do_compile () {
>      export LD="${CXX}"
> +    export PATH=${STAGING_BINDIR_NATIVE}/python-native:$PATH
>      make BUILDTYPE=Release
>  }
>
> @@ -40,3 +41,5 @@ RDEPENDS_${PN}_class-native = ""
>
>  FILES_${PN} += "${libdir}/node/wafadmin ${libdir}/node_modules ${libdir}/dtrace"
>  BBCLASSEXTEND = "native"
> +
> +FILES_${PN} += "/usr/lib/*"

make it ${libdir}/* here


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [meta-oe] [PATCH] nodejs needs python-native
  2014-05-20 19:28 ` Khem Raj
@ 2014-05-20 19:56   ` Gary Thomas
  0 siblings, 0 replies; 4+ messages in thread
From: Gary Thomas @ 2014-05-20 19:56 UTC (permalink / raw)
  To: openembedded-devel

On 2014-05-20 13:28, Khem Raj wrote:
> On Tue, May 20, 2014 at 12:03 PM, Amy Fong <amy.fong@windriver.com> wrote:
>> -DEPENDS = "openssl"
>> +DEPENDS = "openssl python-native"
>>
>
> may be it should inherit pythonnative
>
>>   SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz \
>>              file://0001-gcc-has-a-builtin-define-to-denote-hard-abi-when-in-.patch \
>> @@ -28,6 +28,7 @@ do_configure () {
>>
>>   do_compile () {
>>       export LD="${CXX}"
>> +    export PATH=${STAGING_BINDIR_NATIVE}/python-native:$PATH

If you inherit pythonnative, this 'export PATH...' is also not necessary

>>       make BUILDTYPE=Release
>>   }
>>
>> @@ -40,3 +41,5 @@ RDEPENDS_${PN}_class-native = ""
>>
>>   FILES_${PN} += "${libdir}/node/wafadmin ${libdir}/node_modules ${libdir}/dtrace"
>>   BBCLASSEXTEND = "native"
>> +
>> +FILES_${PN} += "/usr/lib/*"
>
> make it ${libdir}/* here
>

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [meta-oe] [PATCH] [v2] nodejs needs python-native (Was: Re: [meta-oe] [PATCH] nodejs needs python-native)
  2014-05-20 19:03 [meta-oe] [PATCH] nodejs needs python-native Amy Fong
  2014-05-20 19:28 ` Khem Raj
@ 2014-05-27 16:54 ` Amy Fong
  1 sibling, 0 replies; 4+ messages in thread
From: Amy Fong @ 2014-05-27 16:54 UTC (permalink / raw)
  To: openembedded-devel

From 1f1029bff98bd52a52a5bf81f4f36ca86d28f8cd Mon Sep 17 00:00:00 2001
From: Amy Fong <amy.fong@windriver.com>
Date: Tue, 27 May 2014 12:52:00 -0400
Subject: [PATCH] nodejs needs python-native

nodejs should use python from python-native package. On some hosts, the
default python is missing bz2 support.

Signed-off-by: Amy Fong <amy.fong@windriver.com>
---
 meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb b/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb
index 996d68e..28cf0d6 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb
+++ b/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb
@@ -5,6 +5,8 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=95a589a3257ab7dfe37d8a8379e3c72d"
 
 DEPENDS = "openssl"
 
+inherit pythonnative
+
 SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz \
            file://0001-gcc-has-a-builtin-define-to-denote-hard-abi-when-in-.patch \
 "
@@ -40,3 +42,6 @@ RDEPENDS_${PN}_class-native = ""
 
 FILES_${PN} += "${libdir}/node/wafadmin ${libdir}/node_modules ${libdir}/dtrace"
 BBCLASSEXTEND = "native"
+
+FILES_${PN} += "${libdir}/*"
+
-- 
2.0.0.rc0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-27 16:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-20 19:03 [meta-oe] [PATCH] nodejs needs python-native Amy Fong
2014-05-20 19:28 ` Khem Raj
2014-05-20 19:56   ` Gary Thomas
2014-05-27 16:54 ` [meta-oe] [PATCH] [v2] nodejs needs python-native (Was: Re: [meta-oe] [PATCH] nodejs needs python-native) Amy Fong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.