use_system_node_gyp
authorDebian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Thu, 31 Jan 2019 14:17:56 +0000 (14:17 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Thu, 31 Jan 2019 14:17:56 +0000 (14:17 +0000)
Gbp-Pq: Name use_system_node_gyp.patch

Makefile

index ae3830ddd40e008e4369e14be1a0e334c1f392ca..4dcd6c07c5e762bd131a3ced05804502f53a68b0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -312,7 +312,7 @@ benchmark/napi/function_call/build/Release/binding.node: \
                benchmark/napi/function_call/napi_binding.c \
                benchmark/napi/function_call/binding.cc \
                benchmark/napi/function_call/binding.gyp | all
-       $(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \
+       node-gyp rebuild \
                --python="$(PYTHON)" \
                --directory="$(shell pwd)/benchmark/napi/function_call" \
                --nodedir="$(shell pwd)"
@@ -321,7 +321,7 @@ benchmark/napi/function_args/build/Release/binding.node: \
                benchmark/napi/function_args/napi_binding.c \
                benchmark/napi/function_args/binding.cc \
                benchmark/napi/function_args/binding.gyp | all
-       $(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \
+       node-gyp rebuild \
                --python="$(PYTHON)" \
                --directory="$(shell pwd)/benchmark/napi/function_args" \
                --nodedir="$(shell pwd)"
@@ -352,14 +352,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