From 1aa55f86b56766074677bcda23f19cd7e5b5601f Mon Sep 17 00:00:00 2001 From: Hirokazu MORIKAWA Date: Wed, 17 Apr 2019 14:55:05 +0900 Subject: [PATCH] node-hid: fix i386 build fail more stability for parallel build Signed-off-by: Hirokazu MORIKAWA --- lang/node-hid/Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lang/node-hid/Makefile b/lang/node-hid/Makefile index be75cc49d..6cd500467 100644 --- a/lang/node-hid/Makefile +++ b/lang/node-hid/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NPM_NAME:=node-hid PKG_NAME:=$(PKG_NPM_NAME) PKG_VERSION:=0.7.7 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz PKG_SOURCE_URL:=https://registry.npmjs.org/$(PKG_NPM_NAME)/-/ @@ -42,8 +42,9 @@ TAR_OPTIONS+= --strip-components 1 TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS) NODEJS_CPU:=$(subst powerpc,ppc,$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH))))) +TMPNPM:=$(shell mktemp -u XXXXXXXXXX) -TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/libusb-1.0 +TARGET_CFLAGS+=$(FPIC) -I$(STAGING_DIR)/usr/include/libusb-1.0 define Build/Compile git init $(PKG_BUILD_DIR) @@ -54,11 +55,11 @@ define Build/Compile npm_config_build_from_source=true \ npm_config_nodedir=$(STAGING_DIR)/usr/ \ npm_config_prefix=$(PKG_INSTALL_DIR)/usr/ \ - npm_config_cache=$(TMP_DIR)/npm-cache \ - npm_config_tmp=$(TMP_DIR)/npm-tmp \ + npm_config_cache=$(TMP_DIR)/npm-cache-$(TMPNPM) \ + npm_config_tmp=$(TMP_DIR)/npm-tmp-$(TMPNPM) \ npm install -g $(PKG_BUILD_DIR) - rm -rf $(TMP_DIR)/npm-tmp - rm -rf $(TMP_DIR)/npm-cache + rm -rf $(TMP_DIR)/npm-tmp-$(TMPNPM) + rm -rf $(TMP_DIR)/npm-cache-$(TMPNPM) endef define Package/node-hid/install