set WINEPREFIX to a readonly directory to force wine to fail

fixes #841
This commit is contained in:
Tony Theodore 2015-09-30 14:57:15 +10:00
parent ad20853b2d
commit 8e2d0e85c5
2 changed files with 5 additions and 0 deletions

View File

@ -142,6 +142,8 @@ endef
ENV_WHITELIST := PATH LANG MAKE% MXE% %PROXY %proxy LD_LIBRARY_PATH ACLOCAL_PATH
unexport $(filter-out $(ENV_WHITELIST),$(shell env | cut -d '=' -f1))
export WINEPREFIX=$(PREFIX)/readonly
SHORT_PKG_VERSION = \
$(word 1,$(subst ., ,$($(1)_VERSION))).$(word 2,$(subst ., ,$($(1)_VERSION)))

View File

@ -51,6 +51,9 @@ define $(PKG)_BUILD_COMMON
echo 'exec cmake -DCMAKE_TOOLCHAIN_FILE="$(CMAKE_TOOLCHAIN_FILE)" "$$@"') \
> '$(PREFIX)/bin/$(TARGET)-cmake'
chmod 0755 '$(PREFIX)/bin/$(TARGET)-cmake'
#create readonly directory to force wine to fail
$(INSTALL) -m444 -d "$$WINEPREFIX"
endef
define $(PKG)_BUILD