nodejs: add 0.8.18
RFC PATCH v2 1/1 nodejs: add 0.8.18
The hardfp patch is a forward port from the 0.6.x version in meta-oe, the upstream version doesn't work. I don't know why __SOFTFP__ isn't getting defined, but checking for the PCS version of VFP is a lot safer and actually works.
Runtime tested on armv7a/angstrom
--- ...uiltin-define-to-denote-hard-abi-when-in-.patch | 60 ++++++++++++++++++++ ...0003-Resolve-bad-rpath-issue-when-linking.patch | 29 ++++++++++ meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb | 64 ++++++++++++++++++++++ 3 files changed, 153 insertions(+) create mode 100644 meta-oe/recipes-devtools/nodejs/nodejs/0001-gcc-has-a-builtin-define-to-denote-hard-abi-when-in-.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
meta-oe/recipes-devtools/nodejs/nodejs/0001-gcc-has-a-builtin-define-to-denote-hard-abi-when-in-.patch new file +60 -0
@@ -0,0 +1,60 @@ +From bf701e7cb3616631a354ed9ecbed6dd16f60c60d Mon Sep 17 00:00:00 2001 +From: Koen Kooi <[email protected]> +Date: Wed, 30 Jan 2013 10:43:47 +0100 +Subject: [PATCH] gcc has a builtin define to denote hard abi when in use, e.g. + when using -mfloat-abi=hard it will define __ARM_PCS_VFP to 1 and therefore + we should check that to determine which calling convention is in use and not + __VFP_FP__ which merely indicates presence of VFP unit + +The fix has been provided by Khem Raj <[email protected]> + +Upstream-Status: Forwarded + +Signed-off-by: Koen Kooi <[email protected]> +--- + deps/v8/src/arm/assembler-arm.cc | 4 ++-- + deps/v8/src/platform-linux.cc | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/deps/v8/src/arm/assembler-arm.cc b/deps/v8/src/arm/assembler-arm.cc +index 1787d15..c64ef58 100644 +--- a/deps/v8/src/arm/assembler-arm.cc ++++ b/deps/v8/src/arm/assembler-arm.cc +@@ -71,10 +71,10 @@ static unsigned CpuFeaturesImpliedByCompiler() { + // If the compiler is allowed to use VFP then we can use VFP too in our code + // generation even when generating snapshots. ARMv7 and hardware floating + // point support implies VFPv3, see ARM DDI 0406B, page A1-6. +-#if defined(CAN_USE_ARMV7_INSTRUCTIONS) && defined(__VFP_FP__) \ ++#if defined(CAN_USE_ARMV7_INSTRUCTIONS) && defined(__ARM_PCS_VFP) \ + && !defined(__SOFTFP__) + answer |= 1u << VFP3 | 1u << ARMv7 | 1u << VFP2; +-#endif // defined(CAN_USE_ARMV7_INSTRUCTIONS) && defined(__VFP_FP__) ++#endif // defined(CAN_USE_ARMV7_INSTRUCTIONS) && defined(__ARM_PCS_VFP) + // && !defined(__SOFTFP__) + #endif // _arm__ + +diff --git a/deps/v8/src/platform-linux.cc b/deps/v8/src/platform-linux.cc +index ed9eb79..10d1879 100644 +--- a/deps/v8/src/platform-linux.cc ++++ b/deps/v8/src/platform-linux.cc +@@ -170,7 +170,7 @@ bool OS::ArmCpuHasFeature(CpuFeature feature) { + // calling this will return 1.0 and otherwise 0.0. + static void ArmUsingHardFloatHelper() { + asm("mov r0, #0":::"r0"); +-#if defined(__VFP_FP__) && !defined(__SOFTFP__) ++#if defined(__ARM_PCS_VFP) && !defined(__SOFTFP__) + // Load 0x3ff00000 into r1 using instructions available in both ARM + // and Thumb mode. + asm("mov r1, #3":::"r1"); +@@ -195,7 +195,7 @@ static void ArmUsingHardFloatHelper() { + #else + asm("vmov d0, r0, r1"); + #endif // __thumb__ +-#endif // defined(__VFP_FP__) && !defined(__SOFTFP__) ++#endif // defined(__ARM_PCS_VFP) && !defined(__SOFTFP__) + asm("mov r1, #0":::"r1"); + } + +-- +1.8.1 +
meta-oe/recipes-devtools/nodejs/nodejs/0003-Resolve-bad-rpath-issue-when-linking.patch new file +29 -0
@@ -0,0 +1,29 @@ +From aaf38f17911941d979074e4d5f8475f4ad5595a8 Mon Sep 17 00:00:00 2001 +From: Nathan Rajlich <[email protected]> +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 <[email protected]> +--- + 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 +
meta-oe/recipes-devtools/nodejs/nodejs_0.8.18.bb new file +64 -0
64 lines not on this page · raw message
Signature · 1 line
1.8.1
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Op 30-01-13 10:50, Koen Kooi schreef:
Quoted 6 lines
The hardfp patch is a forward port from the 0.6.x version in meta-oe, the upstream version doesn't work. I don't know why
__SOFTFP__isn't getting defined, but checking for the PCS version of VFP is a lot safer and actually works.Runtime tested on armv7a/angstrom
Should node also drag in dependencies that npm *might* need for some packages? I've come across npm packages that need 'git' and 'python-compiler', should I add those to RRECOMMENDS_${PN}?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org
iD8DBQFRCSZiMkyGM64RGpERAotmAJ0WeNvsakI9gE4ftDE4sUnumRBzIwCgr6PS R/2Uo7V+JOAItM1a9kTaIUc=
=mMcU
-----END PGP SIGNATURE-----
Quoted 9 lines · Koen Kooi
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Op 30-01-13 10:50, Koen Kooi schreef:
Quoted 5 lines
The hardfp patch is a forward port from the 0.6.x version in meta-oe, the upstream version doesn't work. I don't know why
__SOFTFP__isn't getting defined, but checking for the PCS version of VFP is a lot safer and actually works.
Quoted 5 lines
Quoted 1 line
Runtime tested on armv7a/angstrom
Should node also drag in dependencies that npm *might* need for some packages? I've come across npm packages that need 'git' and 'python-compiler', should I add those to RRECOMMENDS_${PN}?
You may add a new npn-runtime package which rdepends on those. What do you think?
--
Otavio Salvador O.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br