Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Can we update NodeJS package to 0.12.*
@ 2015-04-13 16:05 George Chen
  2015-04-13 19:19 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: George Chen @ 2015-04-13 16:05 UTC (permalink / raw)
  To: buildroot

Current 2015.03 buildroot contains NodeJS 0.10.36

Is there a way to customly configure the package to 0.11.* or 0.12.*?

The reason for the newer NodeJS version is that IPv6 is not fully supported in 0.10.*



I tried to change Config.mk

- NODEJS_VERSION = 0.10.36 
+ NODEJS_VERSION = 0.12.0


And then I changed nodejs-remove-python-bz2-dependency.patch

Index: b/deps/v8/tools/js2c.py
===================================================================
--- a/deps/v8/tools/js2c.py
+++ b/deps/v8/tools/js2c.py
@@ -34,7 +34,6 @@
 import os, re, sys, string
 import optparse
 import jsmin
-import bz2
 import textwrap
 
 
@@ -492,6 +491,7 @@
   if compression_type == "off":
     return sources_bytes
   elif compression_type == "bz2":
+    import bz2
     return bz2.compress(sources_bytes)
   else:
     raise Error("Unknown compression type %s." % compression_type)


However, I am getting the make error:

../deps/v8/src/base/atomicops_internals_arm_gcc.h:258:4: error: #error "Your CPU's ARM architecture is not supported yet"


Is there an easy way to update the NodeJS package?
Is my only option to add NodeJS 0.12.0 as a custom package?

Thanks!

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

* [Buildroot] Can we update NodeJS package to 0.12.*
  2015-04-13 16:05 [Buildroot] Can we update NodeJS package to 0.12.* George Chen
@ 2015-04-13 19:19 ` Thomas Petazzoni
  2015-04-15  8:02   ` Jörg Krause
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2015-04-13 19:19 UTC (permalink / raw)
  To: buildroot

Dear George Chen,

On Mon, 13 Apr 2015 16:05:59 +0000, George Chen wrote:
> Current 2015.03 buildroot contains NodeJS 0.10.36
> 
> Is there a way to customly configure the package to 0.11.* or 0.12.*?

Well, just adjust nodejs.mk. And then, send a patch to the Buildroot
mailing list, so that we can integrate this update in the official
Buildroot.

> The reason for the newer NodeJS version is that IPv6 is not fully supported in 0.10.*
> 
> I tried to change Config.mk

I guess you meant nodejs.mk here.

> 
> - NODEJS_VERSION = 0.10.36 
> + NODEJS_VERSION = 0.12.0
> 
> However, I am getting the make error:
> 
> ../deps/v8/src/base/atomicops_internals_arm_gcc.h:258:4: error: #error "Your CPU's ARM architecture is not supported yet"

For which ARM target are you trying to build?

> Is my only option to add NodeJS 0.12.0 as a custom package?

Why would you want to add another package? Just improve the existing
nodejs package.

Best regards,

Thomas Petazzoni
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

* [Buildroot] Can we update NodeJS package to 0.12.*
  2015-04-13 19:19 ` Thomas Petazzoni
@ 2015-04-15  8:02   ` Jörg Krause
  0 siblings, 0 replies; 3+ messages in thread
From: Jörg Krause @ 2015-04-15  8:02 UTC (permalink / raw)
  To: buildroot

Hello George, Thomas,

On Mo, 2015-04-13 at 21:19 +0200, Thomas Petazzoni wrote:
> Dear George Chen,
> 
> On Mon, 13 Apr 2015 16:05:59 +0000, George Chen wrote:
> > Current 2015.03 buildroot contains NodeJS 0.10.36
> > 
> > Is there a way to customly configure the package to 0.11.* or 
> > 0.12.*?
> 
> Well, just adjust nodejs.mk. And then, send a patch to the Buildroot
> mailing list, so that we can integrate this update in the official
> Buildroot.
> 
> > The reason for the newer NodeJS version is that IPv6 is not fully 
> > supported in 0.10.*
> > 
> > I tried to change Config.mk
> 
> I guess you meant nodejs.mk here.
> 
> > 
> > - NODEJS_VERSION = 0.10.36 
> > + NODEJS_VERSION = 0.12.0
> > 
> > However, I am getting the make error:
> > 
> > ../deps/v8/src/base/atomicops_internals_arm_gcc.h:258:4: error: 
> > #error "Your CPU's ARM architecture is not supported yet"
> 
> For which ARM target are you trying to build?

The V8 version used in Node.js dropped support for ARMv5. That's why I
stick to Node.js 0.10.

> > Is my only option to add NodeJS 0.12.0 as a custom package?
> 
> Why would you want to add another package? Just improve the existing
> nodejs package.

Maybe we can support v0.10 (Maintance) and v0.12 (Stable) in Buildroot?

Best regards
J?rg Krause

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

end of thread, other threads:[~2015-04-15  8:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-13 16:05 [Buildroot] Can we update NodeJS package to 0.12.* George Chen
2015-04-13 19:19 ` Thomas Petazzoni
2015-04-15  8:02   ` Jörg Krause

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox