Date: Wed, 28 Oct 2020 21:34:20 +0000 (UTC) From: Matthias Andree <mandree@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r553568 - head/net/unison232 Message-ID: <202010282134.09SLYKGu055958@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010282134.09SLYKGu055958>