svn commit: r553568 - head/net/unison232
Matthias Andree
mandree at FreeBSD.org
Wed Oct 28 21:34:20 UTC 2020
Author: mandree
Date: Wed Oct 28 21:34:19 2020
New Revision: 553568
URL: https://svnweb.freebsd.org/changeset/ports/553568
Log:
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)
Modified:
head/net/unison232/Makefile
Modified: head/net/unison232/Makefile
==============================================================================
--- head/net/unison232/Makefile Wed Oct 28 21:24:33 2020 (r553567)
+++ head/net/unison232/Makefile Wed Oct 28 21:34:19 2020 (r553568)
@@ -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
More information about the svn-ports-all
mailing list