From nobody Thu Nov 20 11:25:47 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 4dBwyM2PwYz6HDds for ; Thu, 20 Nov 2025 11:25:47 +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 4dBwyM1hFJz3ltT for ; Thu, 20 Nov 2025 11:25:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763637947; 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=xol62QX8ghf4PFf/VLOM7FDEi9su+P3EUaz12f04Znk=; b=KVSHRW4tOX+psksbrG6veUR+LdVOqCG8r69EMRnFb/HbIyBYkmhyWU3lHoQ6Gf0bQntr4H y+sWAbEKDnnh8t6FccrOAN4QZHp2ZK5EDa5exEdHgVzQ5SihvsCCknqgx/9/pkOtW3Gh3L 02EY3Ugg4tHSU6RM45NCSbLU4dsJI5X9YC6FtndJaC09dSU3Gnvflksb3onI8+8rmDNYwx CI+4pzaInSzypU7xYv2TNoawdJK6oQrMFubN+uJTxMntzNBN4v+rJX3wBTMvSJpqTqct+W TROQZULIrsMpnpzeWJjE92XFp9cjgMQycuiQxCGMTk0YdP5gl5vTLJxtf+5DqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763637947; 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=xol62QX8ghf4PFf/VLOM7FDEi9su+P3EUaz12f04Znk=; b=LJDfUshSZJPTTSXT1xODNFGZbF+mCSzDitAoR0I1OzV/cNMm6GpIJKzrzKVVf6qSjxU8Iw HWs16R7IzrWUN0aRNdmO+hnq6TXNGyScs8h+QEtk7CGqkjCaxHGirDRB3zgDwfyBfQXaDO s31pwU9VrhlHPzDFVOB3VymndenkOkuaSS8HcpDL7OtU1oX9hYVhJBrBszWKMo/cWTVFpM /dwmPE6L0Yzoei4ly6blNt51OXFT/74NK85mU9UxPwETVFj2dAfUA2nA/K0M6B/DaLcVpx V0m2jiojCi2JevprhZVQKJsqpYpQqbzZNR9QqMPkIigvsg0Q6zzb4ZlKAA+1oA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1763637947; a=rsa-sha256; cv=none; b=ptw5vedX0fLLEVdyyWKuif9uDgcizamMJOMxz+s1BrObnW4wNJ1X/l66g6xtpzCRAQglKB eX4o+INRVCxGxJGuAQl0+kOGMlcvU1fR1EzK5cBCn46HcYhCuHGuRqwRVOEXUlhvOwSwR3 31VbX19MOwKEuFez6fy6LeeTO9qjLjEMxalSDeU5Pr3hymnvDl+Bng1piFGI6+h5pIAnVa FQ9Lchs9w9vd2Sjj8YPd0oyzLHCMR/uI+UdIjkVCNGCo4tIAcDzUXGeXWFBYob4/WZYfNw rkEwkKXwr4/npoPGgVKE6x3MqsYsEwdcwJZvQZ7XVr8VJmua9TsgIeu04tiabw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dBwyM16GCz8Rb for ; Thu, 20 Nov 2025 11:25:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id e693 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 20 Nov 2025 11:25:47 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dag-Erling=?utf-8?Q? Sm=C3=B8rg?=rav Subject: git: fcca6e11694d - stable/14 - 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/stable/14 X-Git-Reftype: branch X-Git-Commit: fcca6e11694dbfc24abed7b484fe8cc8fc9affa1 Auto-Submitted: auto-generated Date: Thu, 20 Nov 2025 11:25:47 +0000 Message-Id: <691efabb.e693.4858a0fa@gitrepo.freebsd.org> The branch stable/14 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=fcca6e11694dbfc24abed7b484fe8cc8fc9affa1 commit fcca6e11694dbfc24abed7b484fe8cc8fc9affa1 Author: Dag-Erling Smørgrav AuthorDate: 2025-11-15 03:18:35 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2025-11-20 11:25:15 +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 (cherry picked from commit f3cf4c0af5af6ce95065a615f998117ec1cd63aa) --- Makefile.inc1 | 2 +- tools/build/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index e3a451b72b10..f4396b839e9a 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -2704,7 +2704,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 aff664f2a68b..cee54fb71403 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -331,7 +331,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