summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2015-09-30 04:57:15 (GMT)
committerTony Theodore <tonyt@logyst.com>2015-09-30 04:57:37 (GMT)
commit8e2d0e85c5dcdecbe858ffbca391dcc5ca0c3527 (patch)
treeb792adf0ea9e65d1b3545e2fe0511e0604f443ac
parentad20853b2d08eb979e11b2618d818ed1b0b2095f (diff)
downloadmxe-8e2d0e85c5dcdecbe858ffbca391dcc5ca0c3527.zip
mxe-8e2d0e85c5dcdecbe858ffbca391dcc5ca0c3527.tar.gz
mxe-8e2d0e85c5dcdecbe858ffbca391dcc5ca0c3527.tar.bz2
set WINEPREFIX to a readonly directory to force wine to fail
fixes #841
-rw-r--r--Makefile2
-rw-r--r--src/mxe-conf.mk3
2 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index dbb7f30..925ec6f 100644
--- a/Makefile
+++ b/Makefile
@@ -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)))
diff --git a/src/mxe-conf.mk b/src/mxe-conf.mk
index 3e10a16..d8645a6 100644
--- a/src/mxe-conf.mk
+++ b/src/mxe-conf.mk
@@ -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