From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yann E. MORIN Date: Mon, 19 Oct 2015 18:34:36 +0200 Subject: [Buildroot] [PATCH 1/1] package/nodejs: Add node.js v4.1.2 In-Reply-To: <1444136239-22044-1-git-send-email-jaap@jcz.nl> References: <1444136239-22044-1-git-send-email-jaap@jcz.nl> Message-ID: <20151019163436.GB3651@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Jaap, All, On 2015-10-06 14:57 +0200, Jaap Crezee spake thusly: > Signed-off-by: Jaap Crezee I have an alternative patch in the works to bump nodejs: http://git.buildroot.org/~ymorin/git/buildroot/commit/?h=yem/node&id=d080958d76d5737c0cb300976659d708889daeed Compred to your patch: - it fixes a build failure for armv VFPv2 - it drops 0.12.x - it forward ports and cleans up more patches. >From what I understand from the htread, we may want to keep 0.12.x because of API changes. So I'll adapt my patch to not get rif of 0.12.x and submit shortly. Regards, Yann E. MORIN. > ...01-Remove-dependency-on-Python-bz2-module.patch | 31 ++++++++++++++++++++++ > package/nodejs/Config.in | 5 ++++ > package/nodejs/nodejs.hash | 3 +++ > 3 files changed, 39 insertions(+) > create mode 100644 package/nodejs/4.1.2/0001-Remove-dependency-on-Python-bz2-module.patch > > diff --git a/package/nodejs/4.1.2/0001-Remove-dependency-on-Python-bz2-module.patch b/package/nodejs/4.1.2/0001-Remove-dependency-on-Python-bz2-module.patch > new file mode 100644 > index 0000000..de83d44 > --- /dev/null > +++ b/package/nodejs/4.1.2/0001-Remove-dependency-on-Python-bz2-module.patch > @@ -0,0 +1,31 @@ > +From 3d4817c152d6f3afddcc699949c4d1664da91e2b Mon Sep 17 00:00:00 2001 > +From: Martin Bark > +Date: Tue, 30 Jun 2015 09:43:11 +0100 > +Subject: [PATCH 1/4] Remove dependency on Python bz2 module > + > +The Python bz2 module is only needed in certain cases, so only import > +it when needed. In the normal nodejs build, this allows to remove the > +dependency on this module. > + > +Signed-off-by: Thomas Petazzoni > +[Martin: adapt to 0.12.5] > +Signed-off-by: Martin Bark > +--- > + deps/v8/tools/js2c.py | 2 +- > + 1 file changed, 1 insertion(+), 1 deletion(-) > + > +diff --git a/deps/v8/tools/js2c.py b/deps/v8/tools/js2c.py > +index 77485f6..371caf5 100755 > +--- 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 > + > + > +-- > +2.1.4 > + > diff --git a/package/nodejs/Config.in b/package/nodejs/Config.in > index 329d270..b25375b 100644 > --- a/package/nodejs/Config.in > +++ b/package/nodejs/Config.in > @@ -40,12 +40,17 @@ config BR2_BR2_PACKAGE_NODEJS_0_12_X > bool "v0.12.7" > depends on !BR2_ARM_CPU_ARMV5 > > +config BR2_BR2_PACKAGE_NODEJS_4_1_X > + bool "v4.1.2" > + depends on !BR2_ARM_CPU_ARMV5 > + > endchoice > > config BR2_PACKAGE_NODEJS_VERSION_STRING > string > default "0.10.40" if BR2_BR2_PACKAGE_NODEJS_0_10_X > default "0.12.7" if BR2_BR2_PACKAGE_NODEJS_0_12_X > + default "4.1.2" if BR2_BR2_PACKAGE_NODEJS_4_1_X > > menu "Module Selection" > > diff --git a/package/nodejs/nodejs.hash b/package/nodejs/nodejs.hash > index 9be2806..9f75471 100644 > --- a/package/nodejs/nodejs.hash > +++ b/package/nodejs/nodejs.hash > @@ -3,3 +3,6 @@ sha256 bae79c2fd959aebe1629af36077bebbb760128db753da226d2344cd91499149f node-v0 > > # From upstream URL: http://nodejs.org/dist/v0.12.7/SHASUMS256.txt > sha256 b23d64df051c9c969b0c583f802d5d71de342e53067127a5061415be7e12f39d node-v0.12.7.tar.gz > + > +# From upstream URL: http://nodejs.org/dist/v4.1.2/SHASUMS256.txt > +sha256 febec3703a3fea9b64c46100a7b6a4408250027aa8259a2a815fd2275d502c49 node-v4.1.2.tar.gz > -- > 2.6.0 > > _______________________________________________ > buildroot mailing list > buildroot at busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'