blob: e949c635b06a79463c242dd75515e4a6e6f53f78 [file] [log] [blame]
Andrew Geisslerf103a7f2021-05-07 16:09:40 -05001From 7d94bfe53beeb2d25eb5f2ff6b1d509df7e6ab80 Mon Sep 17 00:00:00 2001
Brad Bishopd7bf8c12018-02-25 22:55:05 -05002From: Zuzana Svetlikova <zsvetlik@redhat.com>
3Date: Thu, 27 Apr 2017 14:25:42 +0200
4Subject: [PATCH] Disable running gyp on shared deps
5
Andrew Geissler6aa7eec2023-03-03 12:41:14 -06006Upstream-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
Brad Bishopd7bf8c12018-02-25 22:55:05 -050032---
Andrew Geissler82c905d2020-04-13 13:39:40 -050033 Makefile | 2 +-
34 1 file changed, 1 insertion(+), 1 deletion(-)
Brad Bishopd7bf8c12018-02-25 22:55:05 -050035
36diff --git a/Makefile b/Makefile
Andrew Geisslerf103a7f2021-05-07 16:09:40 -050037index 93d63110..79caaec2 100644
Brad Bishopd7bf8c12018-02-25 22:55:05 -050038--- a/Makefile
39+++ b/Makefile
Andrew Geisslerf103a7f2021-05-07 16:09:40 -050040@@ -138,7 +138,7 @@ with-code-cache test-code-cache:
41 $(warning '$@' target is a noop)
Brad Bishopd7bf8c12018-02-25 22:55:05 -050042
Andrew Geissler82c905d2020-04-13 13:39:40 -050043 out/Makefile: config.gypi common.gypi node.gyp \
Andrew Geisslerf103a7f2021-05-07 16:09:40 -050044- deps/uv/uv.gyp deps/llhttp/llhttp.gyp deps/zlib/zlib.gyp \
45+ deps/llhttp/llhttp.gyp \
Andrew Geissler82c905d2020-04-13 13:39:40 -050046 tools/v8_gypfiles/toolchain.gypi tools/v8_gypfiles/features.gypi \
47 tools/v8_gypfiles/inspector.gypi tools/v8_gypfiles/v8.gyp
Brad Bishopd7bf8c12018-02-25 22:55:05 -050048 $(PYTHON) tools/gyp_node.py -f make