Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 1 | From 7d94bfe53beeb2d25eb5f2ff6b1d509df7e6ab80 Mon Sep 17 00:00:00 2001 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 2 | From: Zuzana Svetlikova <zsvetlik@redhat.com> |
| 3 | Date: Thu, 27 Apr 2017 14:25:42 +0200 |
| 4 | Subject: [PATCH] Disable running gyp on shared deps |
| 5 | |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame^] | 6 | Upstream-Status: Inappropriate [embedded specific] |
| 7 | |
| 8 | Probably imported from: |
| 9 | https://src.fedoraproject.org/rpms/nodejs/c/41af04f2a3c050fb44628e91ac65fd225b927acb?branch=22609d8c1bfeaa21fe0057645af20b3a2ccc7f53 |
| 10 | which is probably based on dont-run-gyp-files-for-bundled-deps.patch added in: |
| 11 | https://github.com/alpinelinux/aports/commit/6662eb3199902e8451fb20dce82554ad96f796bb |
| 12 | |
| 13 | We also explicitly prune some dependencies from source in the bitbake recipe: |
| 14 | |
| 15 | python 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 | } |
| 30 | do_unpack[postfuncs] += "prune_sources" |
| 31 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 32 | --- |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 33 | Makefile | 2 +- |
| 34 | 1 file changed, 1 insertion(+), 1 deletion(-) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 35 | |
| 36 | diff --git a/Makefile b/Makefile |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 37 | index 93d63110..79caaec2 100644 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 38 | --- a/Makefile |
| 39 | +++ b/Makefile |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 40 | @@ -138,7 +138,7 @@ with-code-cache test-code-cache: |
| 41 | $(warning '$@' target is a noop) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 42 | |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 43 | out/Makefile: config.gypi common.gypi node.gyp \ |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 44 | - deps/uv/uv.gyp deps/llhttp/llhttp.gyp deps/zlib/zlib.gyp \ |
| 45 | + deps/llhttp/llhttp.gyp \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 46 | tools/v8_gypfiles/toolchain.gypi tools/v8_gypfiles/features.gypi \ |
| 47 | tools/v8_gypfiles/inspector.gypi tools/v8_gypfiles/v8.gyp |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 48 | $(PYTHON) tools/gyp_node.py -f make |