All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][[RFC][PATCH] nodejs: add 0.8.18
@ 2013-01-30  8:02 Koen Kooi
  2013-01-30  8:45 ` Koen Kooi
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Koen Kooi @ 2013-01-30  8:02 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Koen Kooi

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
---
 .../nodejs/nodejs/0002-Enable-NEON.patch           | 27 ++++++++++
 ...0003-Resolve-bad-rpath-issue-when-linking.patch | 29 ++++++++++
 meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb   | 61 ++++++++++++++++++++++
 3 files changed, 117 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0002-Enable-NEON.patch
 create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0003-Resolve-bad-rpath-issue-when-linking.patch
 create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb

diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0002-Enable-NEON.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0002-Enable-NEON.patch
new file mode 100644
index 0000000..2b83ff8
--- /dev/null
+++ b/meta-oe/recipes-devtools/nodejs/nodejs/0002-Enable-NEON.patch
@@ -0,0 +1,27 @@
+From 8891cb4cae57a6b7db54edb33a43743c4b09c53a Mon Sep 17 00:00:00 2001
+From: Jason Kridner <jdk@ti.com>
+Date: Wed, 7 Nov 2012 14:43:55 -0500
+Subject: [PATCH] Enable NEON
+
+Read this was necessary on a blog.
+
+http://www.code-with-passion.com/2012/11/07/cross-compiling-nodejs-and-node-modules-for-armbeaglebone/
+---
+ deps/v8/build/common.gypi |    1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/deps/v8/build/common.gypi b/deps/v8/build/common.gypi
+index 7a780cc..237f53f 100644
+--- a/deps/v8/build/common.gypi
++++ b/deps/v8/build/common.gypi
+@@ -29,6 +29,7 @@
+ 
+ {
+   'variables': {
++    'arm_neon%': 1,
+     'use_system_v8%': 0,
+     'msvs_use_common_release': 0,
+     'gcc_version%': 'unknown',
+-- 
+1.7.9.5
+
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0003-Resolve-bad-rpath-issue-when-linking.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0003-Resolve-bad-rpath-issue-when-linking.patch
new file mode 100644
index 0000000..b7e8b6c
--- /dev/null
+++ b/meta-oe/recipes-devtools/nodejs/nodejs/0003-Resolve-bad-rpath-issue-when-linking.patch
@@ -0,0 +1,29 @@
+From aaf38f17911941d979074e4d5f8475f4ad5595a8 Mon Sep 17 00:00:00 2001
+From: Nathan Rajlich <nathan@tootallnate.net>
+Date: Tue, 9 Oct 2012 09:49:00 -0700
+Subject: [PATCH] Resolve bad rpath issue when linking
+
+See http://piscisaureus.no.de/libuv/2012-10-09#16:42:44.577 to
+understand the issue.
+
+Added to OE by Jason Kridner <jdk@ti.com>
+---
+ common.gypi |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/common.gypi b/common.gypi
+index b26d2f3..8ae671b 100644
+--- a/common.gypi
++++ b/common.gypi
+@@ -163,7 +163,7 @@
+       [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
+         'cflags': [ '-Wall', '-pthread', ],
+         'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ],
+-        'ldflags': [ '-pthread', '-rdynamic' ],
++        'ldflags': [ '-pthread' ],
+         'conditions': [
+           [ 'target_arch=="ia32"', {
+             'cflags': [ '-m32' ],
+-- 
+1.7.9.5
+
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb b/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb
new file mode 100644
index 0000000..4670ae9
--- /dev/null
+++ b/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb
@@ -0,0 +1,61 @@
+DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript"
+HOMEPAGE = "http://nodejs.org"
+LICENSE = "MIT & BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=95a589a3257ab7dfe37d8a8379e3c72d"
+
+DEPENDS = "openssl"
+
+SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz \
+           file://0002-Enable-NEON.patch \
+           file://0003-Resolve-bad-rpath-issue-when-linking.patch \
+"
+SRC_URI[md5sum] = "25ed6aa5710ac46b867ff3f17a4da1d6"
+SRC_URI[sha256sum] = "1d63dd42f9bd22f087585ddf80a881c6acbe1664891b1dda3b71306fe9ae00f9"
+
+S = "${WORKDIR}/node-v${PV}"
+
+# v8 errors out if you have set CCACHE
+CCACHE = ""
+
+# Node is way too cool to use proper autotools, so we install two wrappers to forcefully inject proper arch cflags to workaround gypi
+do_configure () {
+  echo '#!/bin/sh' > ${WORKDIR}/gcc
+  echo '${CC} $@' >> ${WORKDIR}/gcc
+
+  echo '#!/bin/sh' > ${WORKDIR}/g++
+  echo '${CXX} $@'>> ${WORKDIR}/g++
+
+  echo '#!/bin/sh' > ${WORKDIR}/ld
+  echo '${CXX} $@'>> ${WORKDIR}/ld
+
+  chmod +x ${WORKDIR}/gcc ${WORKDIR}/g++ ${WORKDIR}/ld
+
+  export PATH=${WORKDIR}:${PATH}
+  export CC=gcc
+  export CXX=g++
+  export LD=ld
+
+  ./configure --prefix=${prefix} --without-snapshot
+}
+
+do_compile_virtclass-native () {
+  make BUILDTYPE=Release
+}
+
+do_compile () {
+  export PATH=${WORKDIR}:${PATH}
+  export CC=gcc
+  export CXX=g++
+  export LD=ld
+  make BUILDTYPE=Release
+}
+
+do_install () {
+  DESTDIR=${D} oe_runmake install
+}
+
+RDEPENDS_${PN} = "curl python-shell python-datetime python-subprocess python-crypt python-textutils python-netclient "
+RDEPENDS_${PN}_virtclass-native = "curl-native python-native"
+
+FILES_${PN} += "${libdir}/node/wafadmin ${libdir}/node_modules ${libdir}/dtrace"
+BBCLASSEXTEND = "native"
-- 
1.8.1




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

* Re: [meta-oe][[RFC][PATCH] nodejs: add 0.8.18
  2013-01-30  8:02 [meta-oe][[RFC][PATCH] nodejs: add 0.8.18 Koen Kooi
@ 2013-01-30  8:45 ` Koen Kooi
  2013-01-30  8:51 ` Eric Bénard
  2013-01-31 16:56 ` Martin Jansa
  2 siblings, 0 replies; 10+ messages in thread
From: Koen Kooi @ 2013-01-30  8:45 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 30-01-13 09:02, Koen Kooi schreef:
> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> --- 
> .../nodejs/nodejs/0002-Enable-NEON.patch           | 27 ++++++++++ 
> ...0003-Resolve-bad-rpath-issue-when-linking.patch | 29 ++++++++++ 
> meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb   | 61
> ++++++++++++++++++++++ 3 files changed, 117 insertions(+) create mode
> 100644 meta-oe/recipes-devtools/nodejs/nodejs/0002-Enable-NEON.patch 
> create mode 100644
> meta-oe/recipes-devtools/nodejs/nodejs/0003-Resolve-bad-rpath-issue-when-linking.patch
>
> 
create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb

Ignore this one, it fails at runtime.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFRCN2mMkyGM64RGpERAk/OAJ4kLEF//o1hXuaWEIPGr05hTiRqMgCbBGdu
Oe/xAyE11B/LWqRoqvO4s5Y=
=GPs+
-----END PGP SIGNATURE-----




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

* Re: [meta-oe][[RFC][PATCH] nodejs: add 0.8.18
  2013-01-30  8:02 [meta-oe][[RFC][PATCH] nodejs: add 0.8.18 Koen Kooi
  2013-01-30  8:45 ` Koen Kooi
@ 2013-01-30  8:51 ` Eric Bénard
  2013-01-30  9:03   ` Koen Kooi
  2013-01-31 16:56 ` Martin Jansa
  2 siblings, 1 reply; 10+ messages in thread
From: Eric Bénard @ 2013-01-30  8:51 UTC (permalink / raw)
  To: koen; +Cc: openembedded-devel

Hi Koen,

Le Wed, 30 Jan 2013 09:02:35 +0100,
Koen Kooi <koen@dominion.thruhere.net> a écrit :
> +++ b/meta-oe/recipes-devtools/nodejs/nodejs/0002-Enable-NEON.patch
> @@ -0,0 +1,27 @@
> +From 8891cb4cae57a6b7db54edb33a43743c4b09c53a Mon Sep 17 00:00:00 2001
> +From: Jason Kridner <jdk@ti.com>
> +Date: Wed, 7 Nov 2012 14:43:55 -0500
> +Subject: [PATCH] Enable NEON
> +
> +Read this was necessary on a blog.
> +
> +http://www.code-with-passion.com/2012/11/07/cross-compiling-nodejs-and-node-modules-for-armbeaglebone/
> +---
> + deps/v8/build/common.gypi |    1 +
> + 1 file changed, 1 insertion(+)
> +
> +diff --git a/deps/v8/build/common.gypi b/deps/v8/build/common.gypi
> +index 7a780cc..237f53f 100644
> +--- a/deps/v8/build/common.gypi
> ++++ b/deps/v8/build/common.gypi
> +@@ -29,6 +29,7 @@
> + 
> + {
> +   'variables': {
> ++    'arm_neon%': 1,
> +     'use_system_v8%': 0,
> +     'msvs_use_common_release': 0,
> +     'gcc_version%': 'unknown',
> +-- 

How will that behave on CPU without neon (armv5 for example) ?
Did you test it on qemu for example ?

Eric



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

* Re: [meta-oe][[RFC][PATCH] nodejs: add 0.8.18
  2013-01-30  8:51 ` Eric Bénard
@ 2013-01-30  9:03   ` Koen Kooi
  2013-01-30  9:06     ` Marcin Juszkiewicz
  0 siblings, 1 reply; 10+ messages in thread
From: Koen Kooi @ 2013-01-30  9:03 UTC (permalink / raw)
  To: Eric Bénard; +Cc: openembedded-devel


Op 30 jan. 2013, om 09:51 heeft Eric Bénard <eric@eukrea.com> het volgende geschreven:

> Hi Koen,
> 
> Le Wed, 30 Jan 2013 09:02:35 +0100,
> Koen Kooi <koen@dominion.thruhere.net> a écrit :
>> +++ b/meta-oe/recipes-devtools/nodejs/nodejs/0002-Enable-NEON.patch
>> @@ -0,0 +1,27 @@
>> +From 8891cb4cae57a6b7db54edb33a43743c4b09c53a Mon Sep 17 00:00:00 2001
>> +From: Jason Kridner <jdk@ti.com>
>> +Date: Wed, 7 Nov 2012 14:43:55 -0500
>> +Subject: [PATCH] Enable NEON
>> +
>> +Read this was necessary on a blog.
>> +
>> +http://www.code-with-passion.com/2012/11/07/cross-compiling-nodejs-and-node-modules-for-armbeaglebone/
>> +---
>> + deps/v8/build/common.gypi |    1 +
>> + 1 file changed, 1 insertion(+)
>> +
>> +diff --git a/deps/v8/build/common.gypi b/deps/v8/build/common.gypi
>> +index 7a780cc..237f53f 100644
>> +--- a/deps/v8/build/common.gypi
>> ++++ b/deps/v8/build/common.gypi
>> +@@ -29,6 +29,7 @@
>> + 
>> + {
>> +   'variables': {
>> ++    'arm_neon%': 1,
>> +     'use_system_v8%': 0,
>> +     'msvs_use_common_release': 0,
>> +     'gcc_version%': 'unknown',
>> +-- 
> 
> How will that behave on CPU without neon (armv5 for example) ?
> Did you test it on qemu for example ?

Same as on armv7a as it turns out, a noop :) Dropping the patch. I should learn to never trust blogposts from people running ubuntu on arm.


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

* Re: [meta-oe][[RFC][PATCH] nodejs: add 0.8.18
  2013-01-30  9:03   ` Koen Kooi
@ 2013-01-30  9:06     ` Marcin Juszkiewicz
  0 siblings, 0 replies; 10+ messages in thread
From: Marcin Juszkiewicz @ 2013-01-30  9:06 UTC (permalink / raw)
  To: openembedded-devel

W dniu 30.01.2013 10:03, Koen Kooi pisze:

> I should learn to never trust blogposts from people running ubuntu
> on arm.

And you still read my blog? :D



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

* Re: [meta-oe][[RFC][PATCH] nodejs: add 0.8.18
  2013-01-30  8:02 [meta-oe][[RFC][PATCH] nodejs: add 0.8.18 Koen Kooi
  2013-01-30  8:45 ` Koen Kooi
  2013-01-30  8:51 ` Eric Bénard
@ 2013-01-31 16:56 ` Martin Jansa
  2013-01-31 17:07   ` Koen Kooi
  2 siblings, 1 reply; 10+ messages in thread
From: Martin Jansa @ 2013-01-31 16:56 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Koen Kooi

[-- Attachment #1: Type: text/plain, Size: 7631 bytes --]

On Wed, Jan 30, 2013 at 09:02:35AM +0100, Koen Kooi wrote:
> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
> ---
>  .../nodejs/nodejs/0002-Enable-NEON.patch           | 27 ++++++++++
>  ...0003-Resolve-bad-rpath-issue-when-linking.patch | 29 ++++++++++
>  meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb   | 61 ++++++++++++++++++++++
>  3 files changed, 117 insertions(+)
>  create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0002-Enable-NEON.patch
>  create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0003-Resolve-bad-rpath-issue-when-linking.patch
>  create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb

FWIW: 0.6.21 fails exactly the same as 0.6.20 but I've merged it as it's
not worse.

I've tried 0.8.18 today and it fails:
ERROR: Function failed: do_configure (see /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/temp/log.do_configure.30923 for further information)
ERROR: Logfile of failure stored in: /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/temp/log.do_configure.30923
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function do_configure
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc: 2: /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc: Cannot fork
| /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc: 2: /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc: Cannot fork
| Traceback (most recent call last):
|   File "./configure", line 473, in <module>
|     configure_node(output)
|   File "./configure", line 371, in configure_node
|     cc_version, is_clang = compiler_version()
|   File "./configure", line 331, in compiler_version
|     version = tuple(map(int, proc.communicate()[0].split('.')))
| ValueError: invalid literal for int() with base 10: ''
| ERROR: Function failed: do_configure (see /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/temp/log.do_configure.30923 for further information)
NOTE: recipe nodejs-native-0.8.18-r0: task do_configure: Failed
ERROR: Task 22884 (virtual:native:/home/jenkins/oe/shr-core-branches/shr-core/meta-openembedded/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb, do_configure) failed with exit code '1'

Any idea?

> diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0002-Enable-NEON.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0002-Enable-NEON.patch
> new file mode 100644
> index 0000000..2b83ff8
> --- /dev/null
> +++ b/meta-oe/recipes-devtools/nodejs/nodejs/0002-Enable-NEON.patch
> @@ -0,0 +1,27 @@
> +From 8891cb4cae57a6b7db54edb33a43743c4b09c53a Mon Sep 17 00:00:00 2001
> +From: Jason Kridner <jdk@ti.com>
> +Date: Wed, 7 Nov 2012 14:43:55 -0500
> +Subject: [PATCH] Enable NEON
> +
> +Read this was necessary on a blog.
> +
> +http://www.code-with-passion.com/2012/11/07/cross-compiling-nodejs-and-node-modules-for-armbeaglebone/
> +---
> + deps/v8/build/common.gypi |    1 +
> + 1 file changed, 1 insertion(+)
> +
> +diff --git a/deps/v8/build/common.gypi b/deps/v8/build/common.gypi
> +index 7a780cc..237f53f 100644
> +--- a/deps/v8/build/common.gypi
> ++++ b/deps/v8/build/common.gypi
> +@@ -29,6 +29,7 @@
> + 
> + {
> +   'variables': {
> ++    'arm_neon%': 1,
> +     'use_system_v8%': 0,
> +     'msvs_use_common_release': 0,
> +     'gcc_version%': 'unknown',
> +-- 
> +1.7.9.5
> +
> diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0003-Resolve-bad-rpath-issue-when-linking.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0003-Resolve-bad-rpath-issue-when-linking.patch
> new file mode 100644
> index 0000000..b7e8b6c
> --- /dev/null
> +++ b/meta-oe/recipes-devtools/nodejs/nodejs/0003-Resolve-bad-rpath-issue-when-linking.patch
> @@ -0,0 +1,29 @@
> +From aaf38f17911941d979074e4d5f8475f4ad5595a8 Mon Sep 17 00:00:00 2001
> +From: Nathan Rajlich <nathan@tootallnate.net>
> +Date: Tue, 9 Oct 2012 09:49:00 -0700
> +Subject: [PATCH] Resolve bad rpath issue when linking
> +
> +See http://piscisaureus.no.de/libuv/2012-10-09#16:42:44.577 to
> +understand the issue.
> +
> +Added to OE by Jason Kridner <jdk@ti.com>
> +---
> + common.gypi |    2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/common.gypi b/common.gypi
> +index b26d2f3..8ae671b 100644
> +--- a/common.gypi
> ++++ b/common.gypi
> +@@ -163,7 +163,7 @@
> +       [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
> +         'cflags': [ '-Wall', '-pthread', ],
> +         'cflags_cc': [ '-fno-rtti', '-fno-exceptions' ],
> +-        'ldflags': [ '-pthread', '-rdynamic' ],
> ++        'ldflags': [ '-pthread' ],
> +         'conditions': [
> +           [ 'target_arch=="ia32"', {
> +             'cflags': [ '-m32' ],
> +-- 
> +1.7.9.5
> +
> diff --git a/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb b/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb
> new file mode 100644
> index 0000000..4670ae9
> --- /dev/null
> +++ b/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb
> @@ -0,0 +1,61 @@
> +DESCRIPTION = "nodeJS Evented I/O for V8 JavaScript"
> +HOMEPAGE = "http://nodejs.org"
> +LICENSE = "MIT & BSD"
> +LIC_FILES_CHKSUM = "file://LICENSE;md5=95a589a3257ab7dfe37d8a8379e3c72d"
> +
> +DEPENDS = "openssl"
> +
> +SRC_URI = "http://nodejs.org/dist/v${PV}/node-v${PV}.tar.gz \
> +           file://0002-Enable-NEON.patch \
> +           file://0003-Resolve-bad-rpath-issue-when-linking.patch \
> +"
> +SRC_URI[md5sum] = "25ed6aa5710ac46b867ff3f17a4da1d6"
> +SRC_URI[sha256sum] = "1d63dd42f9bd22f087585ddf80a881c6acbe1664891b1dda3b71306fe9ae00f9"
> +
> +S = "${WORKDIR}/node-v${PV}"
> +
> +# v8 errors out if you have set CCACHE
> +CCACHE = ""
> +
> +# Node is way too cool to use proper autotools, so we install two wrappers to forcefully inject proper arch cflags to workaround gypi
> +do_configure () {
> +  echo '#!/bin/sh' > ${WORKDIR}/gcc
> +  echo '${CC} $@' >> ${WORKDIR}/gcc
> +
> +  echo '#!/bin/sh' > ${WORKDIR}/g++
> +  echo '${CXX} $@'>> ${WORKDIR}/g++
> +
> +  echo '#!/bin/sh' > ${WORKDIR}/ld
> +  echo '${CXX} $@'>> ${WORKDIR}/ld
> +
> +  chmod +x ${WORKDIR}/gcc ${WORKDIR}/g++ ${WORKDIR}/ld
> +
> +  export PATH=${WORKDIR}:${PATH}
> +  export CC=gcc
> +  export CXX=g++
> +  export LD=ld
> +
> +  ./configure --prefix=${prefix} --without-snapshot
> +}
> +
> +do_compile_virtclass-native () {
> +  make BUILDTYPE=Release
> +}
> +
> +do_compile () {
> +  export PATH=${WORKDIR}:${PATH}
> +  export CC=gcc
> +  export CXX=g++
> +  export LD=ld
> +  make BUILDTYPE=Release
> +}
> +
> +do_install () {
> +  DESTDIR=${D} oe_runmake install
> +}
> +
> +RDEPENDS_${PN} = "curl python-shell python-datetime python-subprocess python-crypt python-textutils python-netclient "
> +RDEPENDS_${PN}_virtclass-native = "curl-native python-native"
> +
> +FILES_${PN} += "${libdir}/node/wafadmin ${libdir}/node_modules ${libdir}/dtrace"
> +BBCLASSEXTEND = "native"
> -- 
> 1.8.1
> 
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

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

* Re: [meta-oe][[RFC][PATCH] nodejs: add 0.8.18
  2013-01-31 16:56 ` Martin Jansa
@ 2013-01-31 17:07   ` Koen Kooi
  2013-01-31 18:00     ` Martin Jansa
  0 siblings, 1 reply; 10+ messages in thread
From: Koen Kooi @ 2013-01-31 17:07 UTC (permalink / raw)
  To: Martin Jansa; +Cc: openembedded-devel


Op 31 jan. 2013, om 17:56 heeft Martin Jansa <martin.jansa@gmail.com> het volgende geschreven:

> On Wed, Jan 30, 2013 at 09:02:35AM +0100, Koen Kooi wrote:
>> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
>> ---
>> .../nodejs/nodejs/0002-Enable-NEON.patch           | 27 ++++++++++
>> ...0003-Resolve-bad-rpath-issue-when-linking.patch | 29 ++++++++++
>> meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb   | 61 ++++++++++++++++++++++
>> 3 files changed, 117 insertions(+)
>> create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0002-Enable-NEON.patch
>> create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0003-Resolve-bad-rpath-issue-when-linking.patch
>> create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb
> 
> FWIW: 0.6.21 fails exactly the same as 0.6.20 but I've merged it as it's
> not worse.
> 
> I've tried 0.8.18 today and it fails:
> ERROR: Function failed: do_configure (see /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/temp/log.do_configure.30923 for further information)
> ERROR: Logfile of failure stored in: /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/temp/log.do_configure.30923
> Log data follows:
> | DEBUG: Executing python function sysroot_cleansstate
> | DEBUG: Python function sysroot_cleansstate finished
> | DEBUG: Executing shell function do_configure
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc: 2: /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc: Cannot fork
> | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc: 2: /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc: Cannot fork
> | Traceback (most recent call last):
> |   File "./configure", line 473, in <module>
> |     configure_node(output)
> |   File "./configure", line 371, in configure_node
> |     cc_version, is_clang = compiler_version()
> |   File "./configure", line 331, in compiler_version
> |     version = tuple(map(int, proc.communicate()[0].split('.')))
> | ValueError: invalid literal for int() with base 10: ''
> | ERROR: Function failed: do_configure (see /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/temp/log.do_configure.30923 for further information)
> NOTE: recipe nodejs-native-0.8.18-r0: task do_configure: Failed
> ERROR: Task 22884 (virtual:native:/home/jenkins/oe/shr-core-branches/shr-core/meta-openembedded/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb, do_configure) failed with exit code '1'
> 
> Any idea?

That's likely the gcc wrapper script I added maybe it doesn't like your native gcc. FWIW I only tested it on fedora 18


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

* Re: [meta-oe][[RFC][PATCH] nodejs: add 0.8.18
  2013-01-31 17:07   ` Koen Kooi
@ 2013-01-31 18:00     ` Martin Jansa
  2013-01-31 21:03       ` Koen Kooi
  0 siblings, 1 reply; 10+ messages in thread
From: Martin Jansa @ 2013-01-31 18:00 UTC (permalink / raw)
  To: Koen Kooi; +Cc: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 3321 bytes --]

On Thu, Jan 31, 2013 at 06:07:37PM +0100, Koen Kooi wrote:
> 
> Op 31 jan. 2013, om 17:56 heeft Martin Jansa <martin.jansa@gmail.com> het volgende geschreven:
> 
> > On Wed, Jan 30, 2013 at 09:02:35AM +0100, Koen Kooi wrote:
> >> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
> >> ---
> >> .../nodejs/nodejs/0002-Enable-NEON.patch           | 27 ++++++++++
> >> ...0003-Resolve-bad-rpath-issue-when-linking.patch | 29 ++++++++++
> >> meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb   | 61 ++++++++++++++++++++++
> >> 3 files changed, 117 insertions(+)
> >> create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0002-Enable-NEON.patch
> >> create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0003-Resolve-bad-rpath-issue-when-linking.patch
> >> create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb
> > 
> > FWIW: 0.6.21 fails exactly the same as 0.6.20 but I've merged it as it's
> > not worse.
> > 
> > I've tried 0.8.18 today and it fails:
> > ERROR: Function failed: do_configure (see /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/temp/log.do_configure.30923 for further information)
> > ERROR: Logfile of failure stored in: /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/temp/log.do_configure.30923
> > Log data follows:
> > | DEBUG: Executing python function sysroot_cleansstate
> > | DEBUG: Python function sysroot_cleansstate finished
> > | DEBUG: Executing shell function do_configure
> > | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc: 2: /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc: Cannot fork
> > | /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc: 2: /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc: Cannot fork
> > | Traceback (most recent call last):
> > |   File "./configure", line 473, in <module>
> > |     configure_node(output)
> > |   File "./configure", line 371, in configure_node
> > |     cc_version, is_clang = compiler_version()
> > |   File "./configure", line 331, in compiler_version
> > |     version = tuple(map(int, proc.communicate()[0].split('.')))
> > | ValueError: invalid literal for int() with base 10: ''
> > | ERROR: Function failed: do_configure (see /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/temp/log.do_configure.30923 for further information)
> > NOTE: recipe nodejs-native-0.8.18-r0: task do_configure: Failed
> > ERROR: Task 22884 (virtual:native:/home/jenkins/oe/shr-core-branches/shr-core/meta-openembedded/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb, do_configure) failed with exit code '1'
> > 
> > Any idea?
> 
> That's likely the gcc wrapper script I added maybe it doesn't like your native gcc. FWIW I only tested it on fedora 18

Here it's on Ubuntu 12.04

but wrapper is in $WORKDIR and PATH contains WORKDIR, so I guess that
those wrappers are fork bombing poor jenkins.. (at least here because
CC/CXX variables are just gcc/g++)

Regards,
-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

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

* Re: [meta-oe][[RFC][PATCH] nodejs: add 0.8.18
  2013-01-31 18:00     ` Martin Jansa
@ 2013-01-31 21:03       ` Koen Kooi
  2013-02-08  8:50         ` Kevin Baker
  0 siblings, 1 reply; 10+ messages in thread
From: Koen Kooi @ 2013-01-31 21:03 UTC (permalink / raw)
  To: openembedded-devel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 31-01-13 19:00, Martin Jansa schreef:
> On Thu, Jan 31, 2013 at 06:07:37PM +0100, Koen Kooi wrote:
>> 
>> Op 31 jan. 2013, om 17:56 heeft Martin Jansa <martin.jansa@gmail.com>
>> het volgende geschreven:
>> 
>>> On Wed, Jan 30, 2013 at 09:02:35AM +0100, Koen Kooi wrote:
>>>> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> --- 
>>>> .../nodejs/nodejs/0002-Enable-NEON.patch           | 27 ++++++++++ 
>>>> ...0003-Resolve-bad-rpath-issue-when-linking.patch | 29 ++++++++++ 
>>>> meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb   | 61
>>>> ++++++++++++++++++++++ 3 files changed, 117 insertions(+) create
>>>> mode 100644
>>>> meta-oe/recipes-devtools/nodejs/nodejs/0002-Enable-NEON.patch 
>>>> create mode 100644
>>>> meta-oe/recipes-devtools/nodejs/nodejs/0003-Resolve-bad-rpath-issue-when-linking.patch
>>>>
>>>> 
create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb
>>> 
>>> FWIW: 0.6.21 fails exactly the same as 0.6.20 but I've merged it as
>>> it's not worse.
>>> 
>>> I've tried 0.8.18 today and it fails: ERROR: Function failed:
>>> do_configure (see
>>> /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/temp/log.do_configure.30923
>>> for further information) ERROR: Logfile of failure stored in:
>>> /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/temp/log.do_configure.30923
>>>
>>> 
Log data follows:
>>> | DEBUG: Executing python function sysroot_cleansstate | DEBUG:
>>> Python function sysroot_cleansstate finished | DEBUG: Executing shell
>>> function do_configure |
>>> /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc:
>>> 2:
>>> /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc:
>>> Cannot fork |
>>> /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc:
>>> 2:
>>> /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc:
>>> Cannot fork | Traceback (most recent call last): |   File
>>> "./configure", line 473, in <module> |     configure_node(output) |
>>> File "./configure", line 371, in configure_node |     cc_version,
>>> is_clang = compiler_version() |   File "./configure", line 331, in
>>> compiler_version |     version = tuple(map(int,
>>> proc.communicate()[0].split('.'))) | ValueError: invalid literal for
>>> int() with base 10: '' | ERROR: Function failed: do_configure (see
>>> /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/temp/log.do_configure.30923
>>> for further information) NOTE: recipe nodejs-native-0.8.18-r0: task
>>> do_configure: Failed ERROR: Task 22884
>>> (virtual:native:/home/jenkins/oe/shr-core-branches/shr-core/meta-openembedded/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb,
>>> do_configure) failed with exit code '1'
>>> 
>>> Any idea?
>> 
>> That's likely the gcc wrapper script I added maybe it doesn't like your
>> native gcc. FWIW I only tested it on fedora 18
> 
> Here it's on Ubuntu 12.04
> 
> but wrapper is in $WORKDIR and PATH contains WORKDIR, so I guess that 
> those wrappers are fork bombing poor jenkins.. (at least here because 
> CC/CXX variables are just gcc/g++)

I've hear people report this issue before, but I've never managed to
reproduce or debug it :(

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFRCtw/MkyGM64RGpERAqXDAJ9m7dGMDMVuFg/XdYw+QGN3uzpaWQCePtbG
OoLxGkT94IuoEehKUqJG7Qs=
=ax5F
-----END PGP SIGNATURE-----




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

* Re: [meta-oe][[RFC][PATCH] nodejs: add 0.8.18
  2013-01-31 21:03       ` Koen Kooi
@ 2013-02-08  8:50         ` Kevin Baker
  0 siblings, 0 replies; 10+ messages in thread
From: Kevin Baker @ 2013-02-08  8:50 UTC (permalink / raw)
  To: openembedded-devel

On Thu, Jan 31, 2013 at 3:03 PM, Koen Kooi <koen@dominion.thruhere.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Op 31-01-13 19:00, Martin Jansa schreef:
>> On Thu, Jan 31, 2013 at 06:07:37PM +0100, Koen Kooi wrote:
>>>
>>> Op 31 jan. 2013, om 17:56 heeft Martin Jansa <martin.jansa@gmail.com>
>>> het volgende geschreven:
>>>
>>>> On Wed, Jan 30, 2013 at 09:02:35AM +0100, Koen Kooi wrote:
>>>>> Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> ---
>>>>> .../nodejs/nodejs/0002-Enable-NEON.patch           | 27 ++++++++++
>>>>> ...0003-Resolve-bad-rpath-issue-when-linking.patch | 29 ++++++++++
>>>>> meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb   | 61
>>>>> ++++++++++++++++++++++ 3 files changed, 117 insertions(+) create
>>>>> mode 100644
>>>>> meta-oe/recipes-devtools/nodejs/nodejs/0002-Enable-NEON.patch
>>>>> create mode 100644
>>>>> meta-oe/recipes-devtools/nodejs/nodejs/0003-Resolve-bad-rpath-issue-when-linking.patch
>>>>>
>>>>>
> create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb
>>>>
>>>> FWIW: 0.6.21 fails exactly the same as 0.6.20 but I've merged it as
>>>> it's not worse.
>>>>
>>>> I've tried 0.8.18 today and it fails: ERROR: Function failed:
>>>> do_configure (see
>>>> /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/temp/log.do_configure.30923
>>>> for further information) ERROR: Logfile of failure stored in:
>>>> /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/temp/log.do_configure.30923
>>>>
>>>>
> Log data follows:
>>>> | DEBUG: Executing python function sysroot_cleansstate | DEBUG:
>>>> Python function sysroot_cleansstate finished | DEBUG: Executing shell
>>>> function do_configure |
>>>> /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc:
>>>> 2:
>>>> /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc:
>>>> Cannot fork |
>>>> /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc:
>>>> 2:
>>>> /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/gcc:
>>>> Cannot fork | Traceback (most recent call last): |   File
>>>> "./configure", line 473, in <module> |     configure_node(output) |
>>>> File "./configure", line 371, in configure_node |     cc_version,
>>>> is_clang = compiler_version() |   File "./configure", line 331, in
>>>> compiler_version |     version = tuple(map(int,
>>>> proc.communicate()[0].split('.'))) | ValueError: invalid literal for
>>>> int() with base 10: '' | ERROR: Function failed: do_configure (see
>>>> /home/jenkins/oe/shr-core-branches/shr-core/tmp-eglibc/work/x86_64-linux/nodejs-native/0.8.18-r0/temp/log.do_configure.30923
>>>> for further information) NOTE: recipe nodejs-native-0.8.18-r0: task
>>>> do_configure: Failed ERROR: Task 22884
>>>> (virtual:native:/home/jenkins/oe/shr-core-branches/shr-core/meta-openembedded/meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb,
>>>> do_configure) failed with exit code '1'
>>>>
>>>> Any idea?
>>>
>>> That's likely the gcc wrapper script I added maybe it doesn't like your
>>> native gcc. FWIW I only tested it on fedora 18
>>
>> Here it's on Ubuntu 12.04
>>
>> but wrapper is in $WORKDIR and PATH contains WORKDIR, so I guess that
>> those wrappers are fork bombing poor jenkins.. (at least here because
>> CC/CXX variables are just gcc/g++)
>
> I've hear people report this issue before, but I've never managed to
> reproduce or debug it :(
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (Darwin)
> Comment: GPGTools - http://gpgtools.org
>
> iD8DBQFRCtw/MkyGM64RGpERAqXDAJ9m7dGMDMVuFg/XdYw+QGN3uzpaWQCePtbG
> OoLxGkT94IuoEehKUqJG7Qs=
> =ax5F
> -----END PGP SIGNATURE-----
>
Hello,

Unfortunately I didn't see this patchset before doing some work on the
nodejs recipe...

I was trying to get an environment setup for building native packages
with nodejs's included node-gyp and a -native package. There are some
additional steps to do with node-gyp to make it figure out how to
build native recipes. I did get it setup and building finally...
node-gyp needs a bit of work though to work well in a cross-compile
environment, as there is some host-environment contamination (using
$HOME while running node-gyp), and some other issues with running in a
sysroot. I also couldn't get gcc through gyp to find the
<sysroot>/usr/include/node/*.h files when compiling, so opted instead
to manually symlink them to <sysroot>/usr/include/*.h which worked for
now.

some more discussion:
https://groups.google.com/d/topic/nodejs/88mcwGCnCro/discussion

I have posted what I have been working on to
https://github.com/ventureresearch/meta-venture-external/tree/master/recipes-devtools/nodejs
. Note my recipes are somewhat different and do not follow from any
recent patches, so just for reference. But the resulting binary does
run and work on armv7a; additionally the natively built sqlite3 binary
runs (but I know I'm installing it to the wrong location on the target
FS, so don't use it.)

BTW, You can remove the patch
file://0003-Resolve-bad-rpath-issue-when-linking.patch as using the
CXX with LD as Martin has posted fixes the initial issue. Also, with
this patch enabled native modules fail to link at runtime (see
https://github.com/joyent/node/issues/3623)

Thanks!
Kevin



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

end of thread, other threads:[~2013-02-08  9:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-30  8:02 [meta-oe][[RFC][PATCH] nodejs: add 0.8.18 Koen Kooi
2013-01-30  8:45 ` Koen Kooi
2013-01-30  8:51 ` Eric Bénard
2013-01-30  9:03   ` Koen Kooi
2013-01-30  9:06     ` Marcin Juszkiewicz
2013-01-31 16:56 ` Martin Jansa
2013-01-31 17:07   ` Koen Kooi
2013-01-31 18:00     ` Martin Jansa
2013-01-31 21:03       ` Koen Kooi
2013-02-08  8:50         ` Kevin Baker

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.