svn commit: r553569 - branches/2020Q4/net/unison232

Matthias Andree mandree at FreeBSD.org
Wed Oct 28 21:35:23 UTC 2020


Author: mandree
Date: Wed Oct 28 21:35:22 2020
New Revision: 553569
URL: https://svnweb.freebsd.org/changeset/ports/553569

Log:
  MFH: r553568
  
  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.
  
  Approved by:	ports-secteam (blanket, tested one-line fix to unbreak builds in certain configurations)

Modified:
  branches/2020Q4/net/unison232/Makefile
Directory Properties:
  branches/2020Q4/   (props changed)

Modified: branches/2020Q4/net/unison232/Makefile
==============================================================================
--- branches/2020Q4/net/unison232/Makefile	Wed Oct 28 21:34:19 2020	(r553568)
+++ branches/2020Q4/net/unison232/Makefile	Wed Oct 28 21:35:22 2020	(r553569)
@@ -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