summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/0001-Disable-running-gyp-files-for-bundled-deps.patch26
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/0001-Using-native-binaries.patch7
-rw-r--r--meta-oe/recipes-devtools/nodejs/nodejs/mips-less-memory.patch5
3 files changed, 38 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-Disable-running-gyp-files-for-bundled-deps.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-Disable-running-gyp-files-for-bundled-deps.patch
index d6e439ba22..e949c635b0 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs/0001-Disable-running-gyp-files-for-bundled-deps.patch
+++ b/meta-oe/recipes-devtools/nodejs/nodejs/0001-Disable-running-gyp-files-for-bundled-deps.patch
@@ -3,6 +3,32 @@ From: Zuzana Svetlikova <zsvetlik@redhat.com>
3Date: Thu, 27 Apr 2017 14:25:42 +0200 3Date: Thu, 27 Apr 2017 14:25:42 +0200
4Subject: [PATCH] Disable running gyp on shared deps 4Subject: [PATCH] Disable running gyp on shared deps
5 5
6Upstream-Status: Inappropriate [embedded specific]
7
8Probably imported from:
9https://src.fedoraproject.org/rpms/nodejs/c/41af04f2a3c050fb44628e91ac65fd225b927acb?branch=22609d8c1bfeaa21fe0057645af20b3a2ccc7f53
10which is probably based on dont-run-gyp-files-for-bundled-deps.patch added in:
11https://github.com/alpinelinux/aports/commit/6662eb3199902e8451fb20dce82554ad96f796bb
12
13We also explicitly prune some dependencies from source in the bitbake recipe:
14
15python prune_sources() {
16 import shutil
17
18 shutil.rmtree(d.getVar('S') + '/deps/openssl')
19 if 'ares' in d.getVar('PACKAGECONFIG'):
20 shutil.rmtree(d.getVar('S') + '/deps/cares')
21 if 'brotli' in d.getVar('PACKAGECONFIG'):
22 shutil.rmtree(d.getVar('S') + '/deps/brotli')
23 if 'libuv' in d.getVar('PACKAGECONFIG'):
24 shutil.rmtree(d.getVar('S') + '/deps/uv')
25 if 'nghttp2' in d.getVar('PACKAGECONFIG'):
26 shutil.rmtree(d.getVar('S') + '/deps/nghttp2')
27 if 'zlib' in d.getVar('PACKAGECONFIG'):
28 shutil.rmtree(d.getVar('S') + '/deps/zlib')
29}
30do_unpack[postfuncs] += "prune_sources"
31
6--- 32---
7 Makefile | 2 +- 33 Makefile | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-) 34 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/0001-Using-native-binaries.patch b/meta-oe/recipes-devtools/nodejs/nodejs/0001-Using-native-binaries.patch
index feafe38fdb..66e10a0d00 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs/0001-Using-native-binaries.patch
+++ b/meta-oe/recipes-devtools/nodejs/nodejs/0001-Using-native-binaries.patch
@@ -3,6 +3,13 @@ From: Guillaume Burel <guillaume.burel@stormshield.eu>
3Date: Fri, 3 Jan 2020 11:25:54 +0100 3Date: Fri, 3 Jan 2020 11:25:54 +0100
4Subject: [PATCH] Using native binaries 4Subject: [PATCH] Using native binaries
5 5
6Upstream-Status: Inappropriate [embedded specific]
7
8Originally added in:
9https://git.openembedded.org/meta-openembedded/commit/?id=1c8e4a679ae382f953b2e5c7a4966a4646314f3e
10later extended and renamed in:
11https://git.openembedded.org/meta-openembedded/commit/?id=feeb172d1a8bf010490d22b8df9448b20d9d2aed
12
6Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com> 13Signed-off-by: Archana Polampalli <archana.polampalli@windriver.com>
7--- 14---
8 node.gyp | 1 + 15 node.gyp | 1 +
diff --git a/meta-oe/recipes-devtools/nodejs/nodejs/mips-less-memory.patch b/meta-oe/recipes-devtools/nodejs/nodejs/mips-less-memory.patch
index 56e93c50cf..16776cb762 100644
--- a/meta-oe/recipes-devtools/nodejs/nodejs/mips-less-memory.patch
+++ b/meta-oe/recipes-devtools/nodejs/nodejs/mips-less-memory.patch
@@ -6,6 +6,11 @@ Forwarded: https://bugs.chromium.org/p/v8/issues/detail?id=10586
6This ensures that we reserve 500M instead of 2G range for codegen 6This ensures that we reserve 500M instead of 2G range for codegen
7ensures that qemu-mips can allocate such large ranges 7ensures that qemu-mips can allocate such large ranges
8 8
9Upstream-Status: Inappropriate [embedded specific]
10
11Imported from debian https://salsa.debian.org/js-team/nodejs/-/blob/master-12.x/debian/patches/mips-less-memory.patch
12https://buildd.debian.org/status/fetch.php?pkg=nodejs&arch=mipsel&ver=12.17.0~dfsg-2&stamp=1591050388&raw=0
13
9Signed-off-by: Khem Raj <raj.khem@gmail.com> 14Signed-off-by: Khem Raj <raj.khem@gmail.com>
10 15
11--- a/deps/v8/src/common/globals.h 16--- a/deps/v8/src/common/globals.h