Browse Source

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 <cote2004-github@yahoo.com>
lilik-openwrt-22.03
Eneas U de Queiroz 6 years ago
parent
commit
1a577c80ba
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      lang/node-cylon/Makefile

+ 2
- 1
lang/node-cylon/Makefile View File

@ -65,12 +65,13 @@ endef
EXTRA_LDFLAGS="-L$(TOOLCHAIN_DIR)/lib/ -Wl,-rpath-link $(TOOLCHAIN_DIR)/lib/" \ EXTRA_LDFLAGS="-L$(TOOLCHAIN_DIR)/lib/ -Wl,-rpath-link $(TOOLCHAIN_DIR)/lib/" \
define Build/Compile define Build/Compile
cd $(PKG_BUILD_DIR) ; \
$(MAKE_FLAGS) \ $(MAKE_FLAGS) \
npm_config_arch=$(CONFIG_ARCH) \ npm_config_arch=$(CONFIG_ARCH) \
npm_config_nodedir=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/ \ npm_config_nodedir=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/ \
npm_config_cache=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/npm-cache \ npm_config_cache=$(BUILD_DIR)/node-$(PKG_NODE_VERSION)/npm-cache \
PREFIX="$(PKG_INSTALL_DIR)/usr/" \ PREFIX="$(PKG_INSTALL_DIR)/usr/" \
npm install -g $(PKG_BUILD_DIR)
npm install -g `npm pack $(PKG_BUILD_DIR) | tail -n 1`
endef endef
define Package/node-cylon/install define Package/node-cylon/install


Loading…
Cancel
Save