From owner-svn-ports-all@freebsd.org Wed Oct 28 21:35:23 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C116B450EDD; Wed, 28 Oct 2020 21:35:23 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CM2174k6Zz4cw1; Wed, 28 Oct 2020 21:35:23 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8540922CB0; Wed, 28 Oct 2020 21:35:23 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 09SLZN84056146; Wed, 28 Oct 2020 21:35:23 GMT (envelope-from mandree@FreeBSD.org) Received: (from mandree@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 09SLZNTk056145; Wed, 28 Oct 2020 21:35:23 GMT (envelope-from mandree@FreeBSD.org) Message-Id: <202010282135.09SLZNTk056145@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: mandree set sender to mandree@FreeBSD.org using -f From: Matthias Andree Date: Wed, 28 Oct 2020 21:35:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r553569 - branches/2020Q4/net/unison232 X-SVN-Group: ports-branches X-SVN-Commit-Author: mandree X-SVN-Commit-Paths: branches/2020Q4/net/unison232 X-SVN-Commit-Revision: 553569 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2020 21:35:23 -0000 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