Commit Graph

219 Commits

Author SHA1 Message Date
Khem Raj
a10f894a8e nodejs: Update to 12.19.0
This perhaps is last release in 12.x LTS

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-02 09:00:52 -08:00
Khem Raj
45a2dfdd0f nodejs: Fix arm32/thumb builds with clang
Backport a patch from upstream to take care of build failure e.g.

| ../deps/v8/src/codegen/arm/cpu-arm.cc:38:16: error: write to reserved register 'R7'
|   asm volatile("svc 0\n"
|                ^
| 1 error generated.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-11-02 09:00:52 -08:00
Khem Raj
bda3ee6276 nodejs: Upgrade to 12.18.3
Drop already upstreamed patches
use builtin uv, it does not build without it

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-08-13 22:37:48 -07:00
Khem Raj
7910f2b645 nodejs: Fix build with icu 67.1
Remove soon-to-be removed getAllFieldPositions

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Andrej Valek <andrej.valek@siemens.com>
2020-05-06 23:20:29 -07:00
Khem Raj
db0075f503 nodejs: Fix -Wc++11-narrowing on mips
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-15 23:10:02 -07:00
Khem Raj
1f457c22c8 node: Enable cross-compiling options and disable dtrace and etw
dtrace and etw are hardly used for embedded usecase

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-20 07:44:29 -07:00
Jaga
e331ce08e4 nodejs: install gen-regexp-special-case only when icu is enabled
Fixes install errors when icu packageconfig is disabled

Signed-off-by: Jaga <jagadheesan_duraisamy@comcast.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-12 09:58:05 -07:00
André Draszik
b3b81507b7 nodejs: allow use of system brotli (and make default)
Use system brotli via PACKAGECONFIG by default. So far,
nodejs had been built using its embedded copy of brotli,
which we generally try to avoid, for the known reasons
(independent updates, cve & license checks, etc).

The nodejs patches to enable this have been submitted.
brotli is in meta-oe, so enabling this by default should
not be a problem.

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-03 11:40:40 -08:00
André Draszik
754b54699b nodejs: drop 'gyp' PACKAGECONFIG
During the python3 / nodejs update, the dependencies weren't updated, so
using system-gyp ends up trying to use the python2 version of system-
gyp, which will of course fail.
Fixing this to depend on the python3 version of gyp still doesn't
doesn't make things work, though:
    ERROR: nodejs-native-12.14.1-r0 do_configure: Execution of '.../nodejs-native/12.14.1-r0/temp/run.do_configure.26054' failed with exit code 1:
    gyp: Error importing pymod_do_mainmodule (ForEachFormat): No module named 'ForEachFormat' while loading dependencies of .../nodejs-native/12.14.1-r0/node-v12.14.1/node.gyp while trying to load .../nodejs-native/12.14.1-r0/node-v12.14.1/node.gyp
    Error running GYP

The reason is commit fff922afee6e ("deps,build: compute torque_outputs in v8.gyp")
in NodeJS v12, where they modified their bundled version of gyp to
become incompatible with the upstream version of gyp by adding extra /
unusual search paths to gyp.

Since I'm not sure how to deal with that when using system-gyp, and because
the original intention for using system-gyp was to make the previous nodejs
version compatible with python3 by ultimately switching to the python3 version
of system-gyp which isn't necessary anymore, and given nobody else seems to
be using this PACKAGECONFIG, just drop it.

Signed-off-by: André Draszik <andre.draszik@jci.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-03 11:40:40 -08:00
Khem Raj
354bedc9ab nodejs: Fix build on big-endian targets
Fixes
../deps/v8/src/runtime/runtime-utils.h:129:11: error: base operand of '->' has non-pointer type 'v8::internal::Object'
  129 |   return y->ptr() | (static_cast<ObjectPair>(x->ptr()) << 32);
      |           ^~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Martin Jansa <Martin.Jansa@gmail.com>
Cc: Guillaume Burel <guillaume.burel@stormshield.eu>
2020-01-23 14:16:25 -08:00
Martin Jansa
50d550aa4e nodejs: upgrade to 12.14.1
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-23 14:16:25 -08:00
Martin Jansa
eaf9cfb018 nodejs: use python3native
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-23 14:16:25 -08:00
Guillaume Burel
feeb172d1a nodejs: 10.17.0 -> 12.14.0
- update Node.js to active 12.x LTS release 12.14.0.
- remove compatibility with gcc 4.8 (has been removed upstream)

Signed-off-by: Guillaume Burel <guillaume.burel@stormshield.eu>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-23 14:16:25 -08:00
Khem Raj
e4a2593a21 recipes: Replace using BBPATH with BBFILE_COLLECTIONS for meta-python2 check
BBPATH check actually does not work

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-22 19:21:39 -08:00
Khem Raj
8c0c7f0a37 recipes: Turn inherit classes from meta-py2 to conditional constructs
helps parsing without meta-py2 in mix

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-22 14:20:35 -08:00
Khem Raj
0a4faceed6 nodejs: Build only when meta-py2 is included
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-22 09:56:35 -08:00
Khem Raj
5057746583 meta-oe: Remove using python2
This change makes the parsing go though, we still might have build
issues, which will be reported in world builds seprately

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-01-22 09:56:34 -08:00
Andreas Müller
f0f6c0174d nodejs: Add PACKAGECONFIG share to allow other projects to use node as library
There are so many useful modules written for node.js I would like to use in
C++/Qt projects.

Run-tested both variants by installing node-red with npm and running it.

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-12-01 22:29:59 -08:00
Khem Raj
86d4131dfa nodejs: libatomic patch should be target specific
host usually are using gcc/x86_64/aarch64 and all of them have gcc which
can support atomic intrinsics, but not all of them install libatomic by
default e.g. centos-7, so asking for libatomic unconditionally may not
work always

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Andreas Müller <schnitzeltony@gmail.com>
Acked-by: Tim Orling <timothy.t.orling@linux.intel.com>
2019-11-21 17:52:26 -08:00
André Draszik
5734546728 nodejs: support long directory names for ${B} / ${S}
Part of the NodeJS build builds V8, which at some stage tries to call
ar with all objects with *absolute* paths (and printf the command line
first).

This will fail if the build path is too long:
    make[1]: execvp: printf: Argument list too long
when trying to create Release/obj.target/deps/v8/gypfiles/libv8_base.a
via below gyp-generated out/Makefile rule:
    cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^)
i.e. something like
    printf rm -f Release/obj.target/deps/v8/gypfiles/libv8_base.a && arm-poky-linux-musleabi-gcc-ar crsT Release/obj.target/deps/v8/gypfiles/libv8_base.a ...

The above failure happened on a build-directory S with 204 characters
on a Jenkins machine.

While one could probably increase the ulimit on that specific machine,
that would be a pretty specific build machine fix which would need to
be applied everywhere, or switch to non-verbose builds / compilation,
but fortunately we can change all object references to be relative to
the build directory itself by setting the builddir_name make variable
and thus avoid the other two possible work-arounds.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-13 07:17:03 -08:00
André Draszik
c174217540 nodejs: use OE-provided compiler flags (arm)
This overrides yocto-provided build flags with its own, e.g we get
    arm-poky-linux-musleabi-g++  -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 \
                                 ... \
                                  -march=armv7-a -mfpu=neon -mfloat-abi=hard -marm

Causing the latter to override the former, and compiler warnings:
    cc1plus: warning: switch '-mcpu=cortex-a7' conflicts with '-march=armv7-a' switch

Patch this out, so that yocto-provided flags take precedence.
Note that in reality the same should probably be done for all the other
supported architectures, too.

Note that this also switches to Thumb(2) mode (in my case). No obvious
problems have been noted during compilation or runtime.

Upstream-Status: Inappropriate [oe-specific]
Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-13 07:17:03 -08:00
André Draszik
0d4a59268c nodejs: allow use of system gyp
Now that there is a gyp (python2) recipe in meta-python,
allow its use instead of the bundled one for when
meta-python is enabled.

At the same time, unconditionally inherit pythonnative
as in either case gyp actually uses python, and the
build machine's python and installed modules should
never be used.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-13 07:17:03 -08:00
André Draszik
0c6cdbe3db nodejs: delete all bundled deps in do_unpack() if needed
We can delete bundled deps where system-provided counterparts
should be used instead.
Amongst others, this ensures they are not used accidentally.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-13 07:17:03 -08:00
André Draszik
08956bdd89 nodejs: ensure to use correct compiler & flags always
NodeJS comes with an embedded, patched, version of gyp.

Normally, gyp supports compiling for the build machine, e.g.
native tools that need to be compiled to run during the build,
and for the host, using different variables, e.g. CC and
CC.host, etc.
Most of this has been patched out in the NodeJS version of gyp,
and essentially it only supports compiling using one compiler -
${CC}. This modification excludes LDFLAGS for native tools, and
those still evaluate LDFLAGS.host (only).

While this modified behaviour is OK for the OE use-case of building
native and target tools separately, it means that this recipe can
not work as-is with standard gyp, and wrong LDFLAGS are being used
for some of the tools compiled (torque) in either case.

By setting the make variables that gyp-generated makefiles inspect,
we support use of unpatched gyp, and we ensure that all tools
are compiled with correct LDFLAGS in either case.

This now also allows us to drop the patch that had been applied to
work-around this problem.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-13 07:17:03 -08:00
André Draszik
5abd5bccd5 nodejs: allow use of system nghttp2
We can't enable this by default, though, as nghttp2 is
in the meta-networking layer, which might not be enabled.

At least this gives people a simple way to do so if
they want.

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-07 17:43:44 -08:00
André Draszik
8337a8bb1a nodejs: allow use of system libuv (and make default)
Use system libuv via PACKAGECONFIG by default. So far,
nodejs had been built using its embedded copy of libuv,
which we generally try to avoid, for the known reasons
(independent updates, cve & license checks, etc).

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-01 17:22:52 -07:00
Adrian Bunk
a0361dad8b nodejs: Upgrade 10.16.3 -> 10.17.0
Patch applied upstream removed.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-01 17:22:52 -07:00
André Draszik
76dd3dac1f nodejs: allow use of system c-ares (and make default)
Use system c-ares via PACKAGECONFIG by default. So far,
nodejs had been built using its embedded copy of c-ares,
which we generally try to avoid, for the known reasons
(independent updates, cve & license checks, etc).

Notes:
* otherwise nodejs uses its bundled version of c-ares
* the PACKAGECONFIG variable is 'ares' so as to be in
  line with other uses of this (wget & curl recipes in
  OE core)

Signed-off-by: André Draszik <git@andred.net>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-01 17:22:52 -07:00
Khem Raj
b4937b5d66 nodejs: Mark incompatible with risc-v
Arch is not yet supported

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-07 11:29:02 -07:00
Andrej Valek
a1a0e8d91e nodejs: 10.16.2 -> 10.16.3
- update nodejs to active 10.x LTS release 10.16.3
 - include fix multiple HTTP/2 vulnerabilities

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-03 07:11:04 -07:00
Martin Jansa
080532ff85 nodejs: fix QA error about /usr/bin/python dependency
* fixes:
  ERROR: QA Issue:
  /usr/lib/node_modules/npm/node_modules/node-gyp/gyp/samples/samples
  contained in package nodejs-npm requires /usr/bin/python, but no
  providers found in RDEPENDS_nodejs-npm? [file-rdeps]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-17 01:42:54 -07:00
Andrej Valek
58c865e46d nodejs: 10.16.0 -> 10.16.2
- update nodejs to active 10.x LTS release 10.16.2.
- add python running dependency due to samples.py requirements

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-08-11 08:58:05 -07:00
Andrej Valek
2487a1e192 nodejs: 10.15.3 -> 10.16.0
Update nodejs to active 10.x LTS release 10.16.0.
- make dependencies configurable
License checksum changed due to added bundled dependencies to:
- siphash
- large_pages
- brotli

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-07-10 09:24:32 -07:00
Brad Bishop
478c35bc01 nodejs: Update GCC 4.8 compat patch
GCC 4.8 compatibility was lost moving from 10.15.1 to 10.15.3.  Add
another wrapper for std::make_unique to restore it.

Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-26 09:43:57 -07:00
Andreas Müller
3940350b0f nodejs: upgrade 10.15.1 -> 10.15.3
* 10.15.2 was a security release for CVE-2019-5737 [1]
* 10.15.3 was a bugfix release [2]

[1] https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V10.md#10.15.2
[2] https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V10.md#10.15.3

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-22 09:33:00 -07:00
Andrej Valek
f0c1ee77d9 nodejs: fix target ldflags using
- do not drop target LDFLAGS
  - even if the target LDFLAGS have been specified, tools like torque was
    linked with system libraries

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-03-19 21:00:06 -07:00
Andrej Valek
bef21ed9aa nodejs: fix additional compatibility with older gcc
- replace all occurrences of std::make_unique with wrapper
 - sync indent level

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-02-22 18:14:52 -08:00
Andrej Valek
1c8e4a679a nodejs 8.15.0 -> 10.15.1
Update nodejs to active 10.x LTS release 10.15.1.
- link atomic library
- make it compatible with gcc < 4.9

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-02-17 12:40:56 -08:00
Matthijs Vader
41817d8ae1 nodejs 8.14.0 -> 8.15.0
Update nodejs to latest 8.x stable release 8.15.0.

Signed-off-by: Matthijs Vader <mvader@victronenergy.com>
Signed-off-by: Jeroen Hofstee <jhofstee@victronenergy.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-01-28 07:06:19 -08:00
Andrej Valek
7327e8aeea nodejs: 8.12.0 -> 8.14.0
Update nodejs to latest 8.x stable release 8.14.0.

Signed-off-by: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-12-04 10:00:48 -08:00
Khem Raj
d7d0cc5227 nodejs: Enable system ICU support
Latest Chromium needs it during build

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-10-12 15:00:10 -07:00
Khem Raj
463fd3dff3 nodejs: Revert unintended changes (not ready yet)
We need to enable icu with intl support but this was accidentally
committed with last umip move patch

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-10-08 08:35:34 -07:00
Hongxu Jia
9254a77848 umip: fix recipe location typo
Since `36983fe umip: move to meta-networking' applied,
it was moved to invalid location.

Fix prior partial move to meta-networking

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-10-07 21:45:20 -07:00
Hong Liu
fd805b91a7 nodejs: upgrade to 8.12.0
Upgrade nodejs from 8.11.4 to 8.12.0.

Signed-off-by: Hong Liu <hongl.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-25 22:24:15 -07:00
Hong Liu
e427280262 nodejs: 8.11.3 -> 8.11.4
Upgrade nodejs from 8.11.3 to 8.11.4

Signed-off-by: Hong Liu <hongl.fnst@cn.fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-08-28 09:36:28 -07:00
Pascal Bach
a19bb52b0a nodejs: update to 8.11.3
Fixes the following CVEs:
- CVE-2018-7167
- CVE-2018-7161
- CVE-2018-1000168

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-07-03 17:42:25 -07:00
Pascal Bach
2ac1799a19 nodejs: 8.9.4 -> 8.11.2
Node.js > 8.10 also compile with OpenSSL 1.1

License check sum changes because typo fix in LICENSE file.
No license change.

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-06-08 00:57:29 -07:00
Trevor Woerner
154d1cc863 nodejs: add extra RDEPENDS for building
If you want to perform an "npm install" and a module needs to be compiled,
these additional packages need to be on the target otherwise the compile might
fail with one or more of the following error messages:

	ImportError: No module named compiler.ast
	ImportError: No module named filecmp
	ImportError: No module named multiprocessing

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-03-12 10:01:16 -07:00
Parthiban Nallathambi
00909ae732 nodejs: Update from 8.9.0 -> 8.9.4
Update nodejs to latest stable release 8.9.4

Signed-off-by: Parthiban Nallathambi <pn@denx.de>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-03-01 16:12:55 -08:00
Gunnar Mills
74880c1464 nodejs: Add support for building on ppc64le
ppc64le is a little-endian mode of ppc64.
Nodejs determines the endianness of the system and
since it already supports bi-endian ppc64, just pass
nodejs "ppc64" when the TARGET_ARCH is ppc64le.

Signed-off-by: Gunnar Mills <gmills@linux.vnet.ibm.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-03-01 16:12:55 -08:00
Davis, Michael
23f1ed8d4e nodejs: Update to 8.9.0
Update nodejs to latest stable release 8.9.0.

Signed-off-by: Armin Kuster <akuster808@gmail.com>
2017-11-15 16:34:05 -08:00
Jonathan Liu
2d3b8c99d7 nodejs: Update to 8.7.0
LICENSE checksum updated due to copyright and formatting changes.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-10-27 16:39:33 +00:00
Jonathan Liu
09d5d09762 nodejs: Remove unreferenced patches
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-10-27 16:39:33 +00:00
Jonathan Liu
af0d0f8939 nodejs: Add npx to nodejs-npm package
${bindir}/npx is a symbolic link to npm-cli.js in the npm module.
This avoids the nodejs package depending on nodejs-npm.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-10-17 10:32:03 +00:00
Khem Raj
3f37748ee8 nodejs: Upgrade to 8.4.0
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-08-31 10:18:33 +02:00
fan.xin
aa2ca3e2d6 nodejs: update to 4.8.3
Signed-off-by: Fan Xin <fan.xin@jp.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-06-05 11:01:46 +02:00
Pascal Bach
881ac49a9c nodejs: update to 4.8.2
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-04-26 20:13:32 +02:00
Derek Straka
7a8f7dffa6 nodejs: update to version 4.7.3
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-02-22 13:16:55 +01:00
Oleksandr Kravchuk
17844504db nodejs: update to 4.7.2
Signed-off-by: Oleksandr Kravchuk <oleksandr.kravchuk@pelagicore.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-01-25 15:59:57 +01:00
Oleksandr Kravchuk
4fe4318c56 nodejs: upgrade to 4.7.0
Section with information regarding few third-party components has been
removed from the LICENSE file:
https://github.com/nodejs/node/commit/f7c4e9489f0d72533.

Signed-off-by: Oleksandr Kravchuk <oleksandr.kravchuk@pelagicore.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-01-10 13:12:56 +01:00
Joshua Lock
efd3696e70 remove True option to getVar calls
getVar() now defaults to expanding by default, thus remove the True
option from getVar() calls with a regex search and replace.

Search made with the following regex: getVar ?\(( ?[^,()]*), True\)

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
2016-12-02 09:16:17 +01:00
Jonathan Liu
7a491f384c nodejs: update to 4.6.1
Fixes CVE-2016-5180.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-10-26 10:28:41 +02:00
Jonathan Liu
00ba3c8bad nodejs: update to 4.6.0
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-10-25 15:31:16 +02:00
Jonathan Liu
996f2969bf nodejs: update to 4.5.0
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-09-05 13:30:49 +02:00
Pascal Bach
c0e4ad71a4 nodejs, arm: map TUNE_FEATURES to --with-arm-fpu parameters
The same code is used in the nodejs recipe from meta-nodejs

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-08-31 18:21:59 +02:00
Pascal Bach
dcba10c69c nodejs: use shared zlib instead of bundled one
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-08-31 18:21:58 +02:00
Jonathan Liu
20df863070 nodejs: update to 4.4.7
LICENSE checksum updated due to change in ESLint copyright line:
-    Copyright (c) 2013 Nicholas C. Zakas. All rights reserved.
+    Copyright jQuery Foundation and other contributors, https://jquery.org/

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-07-29 11:00:53 +02:00
Jonathan Liu
25f31a5952 nodejs: update to 4.4.5
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-06-08 14:55:24 +02:00
Jonathan Liu
2f3a4997c7 nodejs: update to 4.4.4
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-05-10 20:19:29 +02:00
Jonathan Liu
fb30db691e nodejs: update to 4.4.3
LICENSE checksum has changed due to OpenSSL copyright year being
bumped from 1998-2011 to 1998-2016.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-04-21 21:33:52 +02:00
Jonathan Liu
7321fe27f3 nodejs: update to 4.4.2
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-04-21 21:33:16 +02:00
Jonathan Liu
99ec727201 nodejs: update to 4.4.1
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-03-25 11:27:30 +01:00
Jonathan Liu
767dd8375c nodejs: update to 4.4.0
LICENSE checksum has changed to fix a small error in the URL for the
npm public registry, changing the URL from "https://registry.npmjs.com"
to "https://registry.npmjs.org".

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-03-25 11:26:57 +01:00
Jonathan Liu
7396fc6206 nodejs: update to 4.3.2
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-03-04 09:06:08 +01:00
Jonathan Liu
80fec0a984 nodejs: update to 4.3.1
Fixes CVE-2016-2086 and CVE-2016-2216.

LICENSE checksum changed because it was regenerated using the new
tools/license-builder.sh script but the licensing remains the same.

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-03-02 00:03:18 +01:00
Trevor Woerner
33965e42d2 nodejs: upgrade from 4.2.4 to 4.2.6
...plus a switch to xz.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-02-15 10:15:26 +01:00
Trevor Woerner
ab21935a7e nodejs: update from 4.2.3 to 4.2.4
Additionally, the LICENSE file changed as follows:

   - npm is a package manager program located at deps/npm.
     npm's license follows:
     """
  -    Copyright (c) Isaac Z. Schlueter
  -    All rights reserved.
  -
  -    npm is released under the Artistic 2.0 License.
  -    The text of the License follows:
  +    The npm application
  +    Copyright (c) npm, Inc. and Contributors
  +    Licensed on the terms of The Artistic License 2.0
  +
  +    Node package dependencies of the npm application
  +    Copyright (c) their respective copyright owners
  +    Licensed on their respective license terms
  +
  +    The npm public registry at https://registry.npmjs.com
  +    and the npm website at https://www.npmjs.com
  +    Operated by npm, Inc.
  +    Use governed by terms published on https://www.npmjs.com
  +
  +    "Node.js"
  +    Trademark Joyent, Inc., https://joyent.com
  +    Neither npm nor npm, Inc. are affiliated with Joyent, Inc.
  +
  +    The Node.js application
  +    Project of Node Foundation, https://nodejs.org
  +
  +    The npm Logo
  +    Copyright (c) Mathias Pettersson and Brian Hammond
  +
  +    "Gubblebum Blocky" typeface
  +    Copyright (c) Tjarda Koster, https://jelloween.deviantart.com
  +    Used with permission

  ...

  -    "Node.js" and "node" trademark Joyent, Inc. npm is not officially
  -    part of the Node.js project, and is neither owned by nor
  -    officially affiliated with Joyent, Inc.
  -
  -    Packages published in the npm registry (other than the Software and
  -    its included dependencies) are not part of npm itself, are the sole
  -    property of their respective maintainers, and are not covered by
  -    this license.
  +    The following additional terms shall apply to use of the npm software, the npm
  +    website, the npm repository and any other services or products offered by npm,
  +    Inc.:
  +
  +    "Node.js" trademark Joyent, Inc.  npm is not officially part of the Node.js
  +    project, and is neither owned by nor affiliated with Joyent, Inc.
  +
  +    "npm" and "The npm Registry" are owned by npm, Inc. All rights reserved.
  +
  +    Modules published on the npm registry are not officially endorsed by npm, Inc.
  +    or the Node.js project.
  +
  +    Data published to the npm registry is not part of npm itself, and is the sole
  +    property of the publisher. While every effort is made to ensure accountability,
  +    there is absolutely no guarantee, warrantee, or assertion expressed or implied
  +    as to the quality, fitness for a specific purpose, or lack of malice in any
  +    given npm package.  Packages downloaded through the npm registry are
  +    independently licensed and are not covered by this license.
  +
  +    Additional policies relating to, and restrictions on use of, npm products and
  +    services are available on the npm website.  All such policies and restrictions,
  +    as updated from time to time, are hereby incorporated into this license
  +    agreement.  By using npm, you acknowledge your agreement to all such policies
  +    and restrictions.
  +
  +    If you have a complaint about a package in the public npm registry, and cannot
  +    resolve it with the package owner, please email support@npmjs.com and explain
  +    the situation.  See the [npm Dispute Resolution
  +    policy](https://github.com/npm/policies/blob/master/disputes.md) for more
  +    details.

  -    "npm Logo" created by Mathias Pettersson and Brian Hammond,
  -    used with permission.
  +    Any data published to The npm Registry (including user account information) may
  +    be removed or modified at the sole discretion of the npm server administrators.
  +
  +    "npm Logo" contributed by Mathias Pettersson and Brian Hammond,
  +    use is subject to https://www.npmjs.com/policies/trademark

       "Gubblebum Blocky" font
  -    Copyright (c) by Tjarda Koster, http://jelloween.deviantart.com
  +    Copyright (c) by Tjarda Koster, https://jelloween.deviantart.com
       included for use in the npm website and documentation,
       used with permission.

  -    This program uses several Node.js modules contained in the node_modules/
  +    This program uses several Node modules contained in the node_modules/
       subdirectory, according to the terms of their respective licenses.
     """

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-01-27 12:36:31 +01:00
Trevor Woerner
c13175d913 nodejs: cleanup and update
Remove old nodejs4_0.4.12 and update nodejs_0.12.7 to the latest stable
nodejs_4.2.3.

Nodejs is picky about which architectures it supports. The supported arch
mapping required some updating to bring it up to date with the current nodejs
code. Add COMPATIBLE_MACHINE entries so it only builds for the supported
architectures.

ARM cores that don't support at least VFP2 have been dropped:

    https://groups.google.com/forum/#!topic/v8-users/aSOFbaAQvMk

    "Due the increasing cost of the keeping the "no-VFPv2" port of V8 working
    on ARM, we are planning on making 3.17 the last V8 release that that
    supports ARM chips without VFPv2. Starting with the 3.18 release, the
    minimal V8 requirements will increase to ARMv6 + VFPv2. In order to
    simplify maintenance, we will also remove the "pre-VFP2" ARM code from the
    V8 code base."

Additionally, gcc no longer supports a VFPv2 option:

    https://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html#index-mfpu-1460

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-01-04 14:56:23 +01:00
Martin Jansa
c02373c634 nodejs: use oe_runmake to respect PARALLEL_MAKE
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-11-02 14:59:26 +01:00
Jonathan Liu
17b1d23adf nodejs: update to 0.12.7
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-07-30 21:00:27 +02:00
Jonathan Liu
a698efea08 nodejs: update to 0.12.6
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-07-16 21:09:09 +02:00
Jonathan Liu
a5962694df nodejs: update to 0.12.5
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-07-16 21:09:07 +02:00
Martin Jansa
c6eef3a0c1 nodejs: fix no-registry option
* https://github.com/npm/npm/issues/3691
* https://github.com/npm/npm/issues/5509

Signed-off-by: Martin Jansa <martin.jansa@lge.com>
2015-07-16 21:09:05 +02:00
Yi Zhao
74f96955fe nodejs: fix build failure for multilib
bitbake nodejs
[snip]
sed: can't read /buildarea2/build/tmp/work/core2-64-poky-linux/nodejs/0.12.4-r0/image/usr/lib64/node_modules/npm/bin/npm-cli.js:
No such file or directory
[snip]

The node modules are not binary files. It doesn't make sense to install
them to /usr/lib64.
Use /usr/lib/node_modules instead of /usr/lib64/node_modules even on
multilib.

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-06-08 14:15:24 +02:00
Jonathan Liu
840635eaf3 nodejs: update to 0.12.4
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-05-28 10:35:13 +02:00
Jonathan Liu
74e6e2b668 nodejs: update to 0.12.3
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-05-22 20:14:05 +02:00
Martin Jansa
c6c324c904 nodejs: fix qemuarm build without thumb and drop unused patch
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-05-11 10:25:53 +02:00
Martin Jansa
10437b8842 nodejs4, liblinebreak: use "Zlib" instead of "zlib" for LICENSE
* otherwise zlib license text provider isn't found:
  WARNING: The license listed zlib was not in the licenses collected for liblinebreak
  WARNING: liblinebreak: No generic license file exists for: zlib in any provider

[YOCTO #7584]

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-04-13 12:55:52 +02:00
Jonathan Liu
3e0cfd95b8 nodejs: update to 0.12.2
Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-04-13 12:55:50 +02:00
Jonathan Liu
bdac062c68 nodejs: remove curl from RDEPENDS
curl is only needed to run "make test".

Signed-off-by: Jonathan Liu <net147@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-03-10 14:19:36 +01:00
Martin Jansa
74bbde6984 cloud9, nodejs4: blacklist
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-03-10 14:19:36 +01:00
Khem Raj
2aed449495 nodejs: Upgrade to 0.12.0
Tested on mips1

Change-Id: I54211c2c323dbec1d38eb526ae183775ba3241f1
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-03-10 14:19:36 +01:00
Amy Fong
14af1771aa nodejs: Inherit pythonnative
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>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-06-10 12:27:11 +02:00
Matthieu CRAPET
c95e155780 recipes: convert remaining SUMMARY/DESCRIPTION cosmetic issues
Changes:
- rename SUMMARY with length > 80 to DESCRIPTION
- rename DESCRIPTION with length < 80 to (non present tag) SUMMARY
- drop final point character at the end of SUMMARY string
- remove trailing whitespace of SUMMARY line

Note: don't bump PR

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2014-02-23 23:20:02 +01:00
Martin Jansa
c8aa4b10b2 Revert "nodejs: upgrade to 0.10.4"
This reverts commit 903e7131ba.
2013-06-20 12:33:07 +02:00
Martin Jansa
903e7131ba nodejs: upgrade to 0.10.4
* 0001-gcc-has-a-builtin-define-to-denote-hard-abi-when-in-.patch seems
  to be resolved by https://chromiumcodereview.appspot.com/10713009

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-06-20 12:30:07 +02:00
Martin Jansa
a45830a39b recipes: Unify indentation
* This change is only aesthetic (unlike indentation in Python
  tasks).
* Some recipes were using tabs.
* Some were using 8 spaces.
* Some were using mix or different number of spaces.
* Make them consistently use 4 spaces everywhere.
* Yocto styleguide advises to use tabs (but the only reason to keep
  tabs is the need to update a lot of recipes). Lately this advice
  was also merged into the styleguide on the OE wiki.
* Using 4 spaces in both types of tasks is better because it's less
  error prone when someone is not sure if e.g.
  do_generate_toolchain_file() is Python or shell task and also allows
  to highlight every tab used in .bb, .inc, .bbappend, .bbclass as
  potentially bad (shouldn't be used for indenting of multiline
  variable assignments and cannot be used for Python tasks).
* Don't indent closing quote on multiline variables
  we're quite inconsistent wheater it's first character on line
  under opening quote or under first non-whitespace character in
  previous line.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Acked-by: Koen Kooi <koen@dominion.thruhere.net>
2013-04-15 16:23:17 +02:00
Martin Jansa
d109b634ad nodejs4: fix build with dash
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-04-15 16:17:22 +02:00
Koen Kooi
e8b50616ac nodejs 8.8.18: unset RDEPENDS for native builds
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-04-15 16:16:52 +02:00
Koen Kooi
4fe1acbe3b nodejs4: reinstate installing all the files
Cloud9 needs the headers to build the o3-xml binary, using 0.8.x headers makes it crash.

This installs everything namespaced as 'node4' to avoid collisions.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-04-15 16:16:52 +02:00
Martin Jansa
79b8431f61 nodejs: remove older 0.6.21
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-04-11 11:33:38 +02:00
Koen Kooi
ae72ce9aeb nodejs: add 0.8.18
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-04-11 11:33:38 +02:00
Martin Jansa
4128325a4c nodejs: export DESTDIR to fix build with dash
* when building on machine with /bin/sh -> /bin/dash
  DESTDIR is empty in install and it's trying to write to /usr/include and fails

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-02-05 11:05:51 +01:00
Koen Kooi
d6d009b262 nodejs: update 0.6.x to 0.6.21
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-01-31 12:59:06 +01:00
Koen Kooi
0aef1f56e7 nodejs: update to 0.6.20
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-08-07 12:21:24 +02:00
Koen Kooi
a45c5b7646 nodejs 0.6.18: fix patch name
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-05-18 22:31:49 +02:00
Otavio Salvador
2bf758cb02 nodejs: update to 0.6.18 and fix hardfloat detection
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-05-18 22:21:22 +02:00
Koen Kooi
e08448f5f5 nodejs: update to 0.6.17
The license is unchanged, only some sections were clarified with different wording.

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-05-11 17:34:47 +02:00
Koen Kooi
05203855ac nodejs 0.4.12: rename to node4 to make it parallel installable with 0.6.x
This is done to support running cloud9 using node 0.4.x but all other node apps with 0.6.x

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-04-08 21:48:57 +02:00
Koen Kooi
d03ee17c2e nodejs 0.6.x: update to 0.6.14
The LICENSE checksum changed due to date changes and clarification on licenses of included "libraries" like the markdown parser

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-04-08 14:33:41 +02:00
Koen Kooi
3b42734676 node 0.6: update to 0.6.8
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-01-23 15:53:12 +01:00
Andrei Gherzan
3767262f9e In LICENSE "&&" should be replaced with "&"
In this way meta-oe recipes will be parsed correctly in yocto.

Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-01-16 22:29:22 +01:00
Koen Kooi
18266de7fc nodejs-native: clarify dependencies to match updated oe-core parser
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-01-06 09:33:42 +01:00
Stefan Schmidt
86c42ab05a nodejs: Update to latest 0.4x series release 0.4.12
Rename patch and update checksums accordingly.

Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-16 13:35:47 +01:00
Koen Kooi
6032d213fa nodejs: add 0.6.1
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-14 21:19:11 +01:00
Koen Kooi
a49c995b40 nodejs: update to 0.4.9
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-14 18:27:42 +01:00
Koen Kooi
e5d7b0b90c nodejs 0.4.2: make npm and node-waf work
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-11-09 10:20:11 +01:00
Koen Kooi
3beeb8b355 nodejs: also package wafadmin
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-19 21:14:07 +02:00
Koen Kooi
ffd6c31cb4 nodejs 0.4.2: import from OE rev e02237d7e46e60fbd9eb4a05a308e6adcf916ebb
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-08-17 09:21:10 +02:00