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] 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 8ac664c66b..6e2fa3c585 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 -- 2.30.2