From b8180ef7126baa3f1aae893e6dd65222b8676a94 Mon Sep 17 00:00:00 2001 From: Eneas U de Queiroz Date: Fri, 7 Dec 2018 15:09:27 -0200 Subject: [PATCH 1/4] node-arduino-firmata: copy files, not symlinks This was meant to be included in 6ed62c6, but wasn't. Current version of npm install installs a link to the build directory. The workaround is to use npm pack to make a tarball and install from that. Signed-off-by: Eneas U de Queiroz --- lang/node-arduino-firmata/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/node-arduino-firmata/Makefile b/lang/node-arduino-firmata/Makefile index 694183d66..84629ac8d 100644 --- a/lang/node-arduino-firmata/Makefile +++ b/lang/node-arduino-firmata/Makefile @@ -49,12 +49,13 @@ endef EXTRA_LDFLAGS="-L$(TOOLCHAIN_DIR)/lib/ -Wl,-rpath-link $(TOOLCHAIN_DIR)/lib/" \ define Build/Compile + cd $(PKG_BUILD_DIR) ; \ $(MAKE_FLAGS) \ npm_config_arch=$(CONFIG_ARCH) \ npm_config_nodedir=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/ \ npm_config_cache=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/npm-cache \ PREFIX="$(PKG_INSTALL_DIR)/usr/" \ - npm install -g $(PKG_BUILD_DIR) + npm install -g `npm pack $(PKG_BUILD_DIR) | tail -n 1` endef define Package/node-arduino-firmata/install From 1a577c80ba6e6d4d1025f6ad4ab892d393926b9b Mon Sep 17 00:00:00 2001 From: Eneas U de Queiroz Date: Fri, 7 Dec 2018 15:18:40 -0200 Subject: [PATCH 2/4] node-cylon: copy files, not symlinks This was meant to be included in 56fe558, but wasn't. Current version of npm install installs a link to the build directory. The workaround is to use npm pack to make a tarball and install from that. Signed-off-by: Eneas U de Queiroz --- lang/node-cylon/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/node-cylon/Makefile b/lang/node-cylon/Makefile index 8ac664c66..6e2fa3c58 100644 --- a/lang/node-cylon/Makefile +++ b/lang/node-cylon/Makefile @@ -65,12 +65,13 @@ endef EXTRA_LDFLAGS="-L$(TOOLCHAIN_DIR)/lib/ -Wl,-rpath-link $(TOOLCHAIN_DIR)/lib/" \ define Build/Compile + cd $(PKG_BUILD_DIR) ; \ $(MAKE_FLAGS) \ npm_config_arch=$(CONFIG_ARCH) \ npm_config_nodedir=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/ \ npm_config_cache=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/npm-cache \ PREFIX="$(PKG_INSTALL_DIR)/usr/" \ - npm install -g $(PKG_BUILD_DIR) + npm install -g `npm pack $(PKG_BUILD_DIR) | tail -n 1` endef define Package/node-cylon/install From 663f8f3da2a14f12540cce24f98f377303b0d120 Mon Sep 17 00:00:00 2001 From: Eneas U de Queiroz Date: Fri, 7 Dec 2018 15:18:56 -0200 Subject: [PATCH 3/4] node-hid: copy files, not symlinks This was meant to be included in 1e0720e, but wasn't. Current version of npm install installs a link to the build directory. The workaround is to use npm pack to make a tarball and install from that. Signed-off-by: Eneas U de Queiroz --- lang/node-hid/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lang/node-hid/Makefile b/lang/node-hid/Makefile index e833f1c68..ec5b19fe7 100644 --- a/lang/node-hid/Makefile +++ b/lang/node-hid/Makefile @@ -34,7 +34,7 @@ define Package/node-hid CATEGORY:=Languages TITLE:=Node.js package to access HID devices URL:=https://github.com/node-hid/node-hid - DEPENDS:=+node +node-npm +libusb-1.0 +hidapi +libstdcpp + DEPENDS:=+node +node-npm +libusb-1.0 +hidapi +libstdcpp +libudev-fbsd endef define Package/node-hid/description @@ -47,13 +47,15 @@ EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/include/libusb-1.0 define Build/Compile git init $(PKG_BUILD_DIR) + cd $(PKG_BUILD_DIR) ; \ $(MAKE_VARS) \ $(MAKE_FLAGS) \ npm_config_arch=$(CONFIG_ARCH) \ npm_config_nodedir=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/ \ npm_config_cache=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/npm-cache \ PREFIX="$(PKG_INSTALL_DIR)/usr/" \ - npm install --build-from-source --target_arch=$(CPU) -g $(PKG_BUILD_DIR) + npm install --build-from-source --target_arch=$(CPU) -g \ + `npm pack $(PKG_BUILD_DIR) | tail -n 1` endef define Package/node-hid/install From 4688a248b8c0de84fb1438669285f12b29ef0052 Mon Sep 17 00:00:00 2001 From: Eneas U de Queiroz Date: Fri, 7 Dec 2018 15:20:22 -0200 Subject: [PATCH 4/4] node-serialport: copy files, not symlinks This was meant to be included in 93d6d1b, but wasn't. Current version of npm install installs a link to the build directory. The workaround is to use npm pack to make a tarball and install from that. Signed-off-by: Eneas U de Queiroz --- lang/node-serialport/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lang/node-serialport/Makefile b/lang/node-serialport/Makefile index da1e4ff40..2c75acf06 100644 --- a/lang/node-serialport/Makefile +++ b/lang/node-serialport/Makefile @@ -48,12 +48,14 @@ CPU:=$(subst x86_64,x64,$(subst i386,ia32,$(ARCH))) EXTRA_LDFLAGS="-L$(TOOLCHAIN_DIR)/lib/ -Wl,-rpath-link $(TOOLCHAIN_DIR)/lib/" \ define Build/Compile + cd $(PKG_BUILD_DIR) ; \ $(MAKE_FLAGS) \ npm_config_arch=$(CONFIG_ARCH) \ npm_config_nodedir=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/ \ npm_config_cache=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/npm-cache \ PREFIX="$(PKG_INSTALL_DIR)/usr/" \ - npm install --build-from-source --target_arch=$(CPU) -g $(PKG_BUILD_DIR) + npm install --build-from-source --target_arch=$(CPU) -g \ + `npm pack $(PKG_BUILD_DIR) | tail -n 1` endef define Package/node-serialport/install