From owner-svn-ports-head@freebsd.org Wed Oct 28 21:34:20 2020 Return-Path: Delivered-To: svn-ports-head@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 76C5F450D46; Wed, 28 Oct 2020 21:34:20 +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 4CM1zw2Nl0z4cjS; Wed, 28 Oct 2020 21:34:20 +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 35FAA229B6; Wed, 28 Oct 2020 21:34:20 +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 09SLYKkA055959; Wed, 28 Oct 2020 21:34:20 GMT (envelope-from mandree@FreeBSD.org) Received: (from mandree@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 09SLYKGu055958; Wed, 28 Oct 2020 21:34:20 GMT (envelope-from mandree@FreeBSD.org) Message-Id: <202010282134.09SLYKGu055958@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:34:20 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r553568 - head/net/unison232 X-SVN-Group: ports-head X-SVN-Commit-Author: mandree X-SVN-Commit-Paths: head/net/unison232 X-SVN-Commit-Revision: 553568 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Oct 2020 21:34:20 -0000 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