From nobody Sun Jan 7 00:05:39 2024 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4T6yBq6NT3z55sm1; Sun, 7 Jan 2024 00:05:39 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T6yBq5s8Bz4XP3; Sun, 7 Jan 2024 00:05:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704585939; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Z9GePY5z7zGygoofTq/455f/TLwKTvzGefNyqRisoig=; b=k+Yjk86CigzKGAb4YkRAxQ8zcsFj9JZSIGnoqqrfM01qGloaos7cSEsvfs7Kta2e5k/68Z NAGkEg8NZnkyFCzkC/SxvESuebvsmipsO5tXZYP88SNqBBgS3Z6+oqjh/Xjj16bND0XKuF Q+0qyRgJqP0JOCiilB0EzWRqoqHKJ+IE7+rFqzuuGgAVbORb22JDGvck6+H5BQ/E/A+d9j WyaO/SUSYxNP5dWMafdVmeugXq5r5zXltPe0602826Fz2XS7/4Db+Tire4Vz2tZ7osSTmW hAY7tdOIa0pDNRBYVsQuxDolzIyFldlKVuUOSMRGfx3h02p3txoy3TcenyzLTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704585939; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Z9GePY5z7zGygoofTq/455f/TLwKTvzGefNyqRisoig=; b=bE1P1dTc1BFSslKR5fgD+WvG0fZRcvUcSEoqlOjhCxjGgEdfRwEwZoaOVqtl+HHgnhv6jx 0iZgcj82AJvBIjOoxR7qOQ9rt6tdxew0USZ3tbL2VnHwh+xbw/4Ma2hhupL5bqf3sAAzlR 725LkB8geLG7Zvb6N8xNJk3GToCh57c3DWCexqr23VnIBT0W6vTHxvJwO0MKlkjfMsW3QC ngTitcR26VjTXqZ/iRUidlv4Ch8FgepD3KrWvOxvQ5HbunCqFAlRAUNF98el/9zf0g/Bt1 vU/l5GiDVjr9va9HisymlRLk6OuhOTdjhWhojCkTmLBkJqHj/+PssYq5uuOLNA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704585939; a=rsa-sha256; cv=none; b=l0K6xVAOYLPOgj98V4vOYgzIbmqaRi7yuqiPjQVgDDYS4YkrMEv1f8/LYcK+e2BSL9k7Zi rno1kWG8oc4UJCDNwrs5QLChQHj9Io608R7YYz/Vk1SyFTkXZppkQY9JI7kRk+dotCAGIu HFlCQ6RC2BUHjTyGO/MJmLn6UfHeDlxnMNnxCWYUrhU2XgnRHMaVvvtOD6u/o2swhw2SNc rXTlauz0pqHgMzU9MUfOym50B45Uyy37XFFj8Tr9tb3D8dxHct6xFBe/eYPY1daat8GZtF FBfCybSKP1iC0IRU8FPJusA94MymDuoAuZy2EbjuZeUaVbu6YO/VVx23vGjbTw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T6yBq4xssz12c5; Sun, 7 Jan 2024 00:05:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40705dZN035166; Sun, 7 Jan 2024 00:05:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40705dZO035163; Sun, 7 Jan 2024 00:05:39 GMT (envelope-from git) Date: Sun, 7 Jan 2024 00:05:39 GMT Message-Id: <202401070005.40705dZO035163@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 2d729060f352 - stable/14 - Cirrus-CI: fix git usage by build user List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 2d729060f352cee1b476390d9610db842beb5e9f Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=2d729060f352cee1b476390d9610db842beb5e9f commit 2d729060f352cee1b476390d9610db842beb5e9f Author: Brooks Davis AuthorDate: 2023-12-05 19:03:35 +0000 Commit: Ed Maste CommitDate: 2024-01-06 23:27:10 +0000 Cirrus-CI: fix git usage by build user The git checkout it owned by root, but builds are run as "user". git refuses to operate in such an environment unless the directory is trusted so make "user" trust it. Fixes CI after 99b8c0c35b0fcc633649209621243d678a13542a. Sponsored by: DARPA Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D42903 (cherry picked from commit 663e4fa38fe835056b24058acc6e43e4a15a84c5) --- .cirrus.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index 1b25914c0062..317c5b28230d 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -97,9 +97,10 @@ task: - gpart show - df -m - pkg --version - - pw useradd user + - pw useradd -n user -m - mkdir -p /usr/obj/$(pwd -P) - chown user:user /usr/obj/$(pwd -P) + - su user -c "git config --global --add safe.directory $(pwd -P)" build_world_script: - su user -c "make -j$(sysctl -n hw.ncpu) ${EXTRA_MAKE_FLAGS} CROSS_TOOLCHAIN=${TOOLCHAIN} WITHOUT_TOOLCHAIN=yes buildworld"