0001-Disable-running-gyp-files-for-bundled-deps.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. From 7d94bfe53beeb2d25eb5f2ff6b1d509df7e6ab80 Mon Sep 17 00:00:00 2001
  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. Upstream-Status: Inappropriate [embedded specific]
  6. Probably imported from:
  7. https://src.fedoraproject.org/rpms/nodejs/c/41af04f2a3c050fb44628e91ac65fd225b927acb?branch=22609d8c1bfeaa21fe0057645af20b3a2ccc7f53
  8. which is probably based on dont-run-gyp-files-for-bundled-deps.patch added in:
  9. https://github.com/alpinelinux/aports/commit/6662eb3199902e8451fb20dce82554ad96f796bb
  10. We also explicitly prune some dependencies from source in the bitbake recipe:
  11. python prune_sources() {
  12. import shutil
  13. shutil.rmtree(d.getVar('S') + '/deps/openssl')
  14. if 'ares' in d.getVar('PACKAGECONFIG'):
  15. shutil.rmtree(d.getVar('S') + '/deps/cares')
  16. if 'brotli' in d.getVar('PACKAGECONFIG'):
  17. shutil.rmtree(d.getVar('S') + '/deps/brotli')
  18. if 'libuv' in d.getVar('PACKAGECONFIG'):
  19. shutil.rmtree(d.getVar('S') + '/deps/uv')
  20. if 'nghttp2' in d.getVar('PACKAGECONFIG'):
  21. shutil.rmtree(d.getVar('S') + '/deps/nghttp2')
  22. if 'zlib' in d.getVar('PACKAGECONFIG'):
  23. shutil.rmtree(d.getVar('S') + '/deps/zlib')
  24. }
  25. do_unpack[postfuncs] += "prune_sources"
  26. ---
  27. Makefile | 2 +-
  28. 1 file changed, 1 insertion(+), 1 deletion(-)
  29. --- a/Makefile
  30. +++ b/Makefile
  31. @@ -147,7 +147,7 @@ with-code-cache test-code-cache:
  32. $(warning '$@' target is a noop)
  33. out/Makefile: config.gypi common.gypi node.gyp \
  34. - deps/uv/uv.gyp deps/llhttp/llhttp.gyp deps/zlib/zlib.gyp \
  35. + deps/llhttp/llhttp.gyp \
  36. tools/v8_gypfiles/toolchain.gypi tools/v8_gypfiles/features.gypi \
  37. tools/v8_gypfiles/inspector.gypi tools/v8_gypfiles/v8.gyp
  38. $(PYTHON) tools/gyp_node.py -f make