From nobody Sat Nov 15 03:19:33 2025 X-Original-To: dev-commits-src-all@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 4d7fPf1gjyz6GwjZ; Sat, 15 Nov 2025 03:19:34 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4d7fPf14vhz43x9; Sat, 15 Nov 2025 03:19:34 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763176774; 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=viJU9wEULT2wtnL67seVzyGPlIbkO/zTGFI3A4uDT1o=; b=wfwJQhfGsrBZJlk7Lp6plmy8vnuCKWJ49J1KOzviKhGi26ieGX5ZwTveVrbPDE6oFS/FZj nsC6sxBuXQGDhx73mZUMRjycfXUSR3FZEmwM/VxvMxiBAXJWfvMvvLDBX0tHJIDxOsTWGu CHTXyaZ1idBKMQ4WQNimtQLEyWiikrT6aSfp+8W4vYLaq66RmYw6BagOIPxRi0O7mmlGFr zk5yq33QNCtWzHnxMyiR5na7o3XLmT5uEXAOTZWVJfG9MrakQEP2KWvEPhxQ0n+aEFVn7M UKUjLjcXwhq1EH4Po1xb0k+1Du4oybsFkjAM8LCI972HmEJ4pVRQZWa6diE9mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763176774; 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=viJU9wEULT2wtnL67seVzyGPlIbkO/zTGFI3A4uDT1o=; b=wPCCFu5e6TMra3cJgs70Wf7+GW89jEIYMQPWqSVeRcinuq1GmBxRzAfusYnhpgt8a0VgpO QYPkk67TOFY/Tj9Qh1smZdbh5uiVL+T9rh/44klm6TI+Qi14MKJSK65ypUHlh0C/VlNJoB n2qauYhK2FjnOPaSNjJlL2vJh8psRSPkk6axsZW0TCvPnhc1Z+ThyJykPVW+IVoOrnUuAm SLD05F+DASKagKoYJfZt6Ya/8P+7lx6cCca1ynMWSy6jwhkyhaaoHayipq5LykOVgQ8RBO vnBpeqxEk2vScTpASlmCuoLvyCpAfZR2CWPCZx8ssbW0F6++LAFN7B6tsWtQtw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1763176774; a=rsa-sha256; cv=none; b=x3xuj2Ck8wM/ZgtvvW3uIzD4TZ+eNkyGhwlz1xEXJv2gTgVpyuDjoFPViCoHdM7cCLJCxC VVcIKrhIBdYmeubUPBVA2IS4L113tf15bg5MvH2r2Wmzs/VaGtOegtak/CcBN/CieOO3qy PpNOPvTDuC9GbSdFmwEUXUNcDah4dkYnlmqmTRlTPrAk0zOcvcCazESeU0RwQZN21IoHzD i1BIsuY+rRfkSgrpT7wu7O3z0Etan6RRUif4zZ07bEKae3Lndzg4Qlc44Ag2NwimKCBda3 v8zgnwH5AD4A/n63MRMsEpyOeniExux0qLDzwco/AIO96Y3AX5RtC+WKMxhBtw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4d7fPf0Yzszbg7; Sat, 15 Nov 2025 03:19:34 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 5AF3JXFg087156; Sat, 15 Nov 2025 03:19:33 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 5AF3JXO0087153; Sat, 15 Nov 2025 03:19:33 GMT (envelope-from git) Date: Sat, 15 Nov 2025 03:19:33 GMT Message-Id: <202511150319.5AF3JXO0087153@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dag-Erling =?utf-8?Q?Sm=C3=B8rgrav?= Subject: git: f3cf4c0af5af - main - Use install instead of cp to copy bootstrap tools List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: des X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f3cf4c0af5af6ce95065a615f998117ec1cd63aa Auto-Submitted: auto-generated The branch main has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=f3cf4c0af5af6ce95065a615f998117ec1cd63aa commit f3cf4c0af5af6ce95065a615f998117ec1cd63aa Author: Dag-Erling Smørgrav AuthorDate: 2025-11-15 03:18:35 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2025-11-15 03:18:35 +0000 Use install instead of cp to copy bootstrap tools We need to preserve modification times on bootstrap tools, but `cp -p` also tries to preserve flags, which fails if OBJROOT is on NFS. A -N option was added to cp for this purpose, but trying to use that would break cross-building on hosts that don't have that option. The best remaining option is `install -p`, which we already assume is present. PR: 275030 Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D53751 --- Makefile.inc1 | 2 +- tools/build/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index 81af336ecfa2..1d617601ece2 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -2824,7 +2824,7 @@ ${_bt}-link-${_tool}: .PHONY if [ ! -e "$${source_path}" ] ; then \ echo "Cannot find host tool '${_tool}'"; false; \ fi; \ - cp -pf "$${source_path}" "${WORLDTMP}/legacy/bin/${_tool}" + install -p "$${source_path}" "${WORLDTMP}/legacy/bin/${_tool}" ${_bt}-links: ${_bt}-link-${_tool} .endfor diff --git a/tools/build/Makefile b/tools/build/Makefile index fdec5f11311d..a701c12a9b5c 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -414,7 +414,7 @@ _LINK_HOST_TOOL= ln -sfn # When building on FreeBSD we always copy the host tools instead of linking # into WORLDTMP to avoid issues with incompatible libraries (see r364030). # Note: we could create links if we don't intend to update the current machine. -_COPY_HOST_TOOL= cp -pf +_COPY_HOST_TOOL= install -p .else # However, this is not necessary on Linux/macOS. Additionally, copying the host # tools to another directory with cp -p results in freezes on macOS Big Sur for