summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andree <mandree@FreeBSD.org>2020-10-28 21:34:19 +0000
committerMatthias Andree <mandree@FreeBSD.org>2020-10-28 21:34:19 +0000
commit725b66b9fd4c26b1c8b7a503cb16c0832826bb8f (patch)
tree4732a2d4d9ac7e15ea94caba17bb3cd01e6a61b1
parentgraphics/photoflow: fix build on GCC architectures (diff)
net/unison232: isolate self-test from pre-existing $HOME
On the "exp - 121amd64-default-build-as-use" builder, $HOME appears to be /nonexistent, and this jeopardizes the self-test. Feed the selftest mktemp -d as its HOME so it doesn't read from, or pollute, the actual building user's home directory. Thanks to: pkg-fallout, kevans, rhtoad. No PORTREVISION bump as this is purely a build-time fix. MFH: 2020Q4 (blanket, one-line tested build robustness fix)
-rw-r--r--net/unison232/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/unison232/Makefile b/net/unison232/Makefile
index 2cf5311ab098..f97b7bcc462f 100644
--- a/net/unison232/Makefile
+++ b/net/unison232/Makefile
@@ -66,7 +66,7 @@ post-patch:
${WRKSRC}/Makefile.OCaml
post-build:
- ( cd ${WRKSRC} && ./unison -selftest -ui text -batch )
+ d=$$(mktemp -d) && trap "rm -rf $$d" 0 && ( cd ${WRKSRC} && HOME=$$d ./unison -selftest -ui text -batch )
.if ${FLAVOR} == x11
@${ECHO} Building text-only version in ${WRKSRC}
${SETENV} ${MAKE_ENV} ${MAKE_CMD} -C ${WRKSRC} CFLAGS="" UISTYLE=text NAME=${PORTNAME}-text