use system-installed node-gyp for building test modules
authorJérémy Lal <kapouer@melix.org>
Sat, 8 Aug 2020 12:09:43 +0000 (13:09 +0100)
committerJérémy Lal <kapouer@melix.org>
Sat, 8 Aug 2020 12:09:43 +0000 (13:09 +0100)
Last-Update: 2015-09-09
Forwarded: not-needed

Gbp-Pq: Name use_system_node_gyp.patch

Makefile

index 32a8a6c2dca732f9dbac1a2ab4c57cce2e6bf89a..293a857860ec7ee5a804875f6ab5304fb06f53be 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -373,14 +373,14 @@ ADDONS_BINDING_SOURCES := \
        $(filter-out test/addons/??_*/*.h, $(wildcard test/addons/*/*.h))
 
 ADDONS_PREREQS := config.gypi \
-       deps/npm/node_modules/node-gyp/package.json tools/build-addons.js \
+       tools/build-addons.js \
        deps/uv/include/*.h deps/v8/include/*.h \
        src/node.h src/node_buffer.h src/node_object_wrap.h src/node_version.h
 
 define run_build_addons
 env npm_config_loglevel=$(LOGLEVEL) npm_config_nodedir="$$PWD" \
        npm_config_python="$(PYTHON)" $(NODE) "$$PWD/tools/build-addons" \
-       "$$PWD/deps/npm/node_modules/node-gyp/bin/node-gyp.js" \
+       "/usr/bin/node-gyp" \
        $1
 touch $2
 endef