From nobody Thu Nov 20 11:23:04 2025 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 4dBwvD4P29z6HDSB for ; Thu, 20 Nov 2025 11:23:04 +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 4dBwvD2cSQz3k1L for ; Thu, 20 Nov 2025 11:23:04 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763637784; 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=JT3upMS7Tq+SS36wkDU6DxhpdhY9Nbs9/Ch7R58FYQs=; b=MKY6MB2KzUCI/gBKnx6lwxMp/zEpGl77FeKz2bQwG+pMDskNXkUL6UCraPTiEr1aKdi41u Doy9wNEG0Iyf6hdxnDmISLKVYMeAiSgdj5sFJkvkRDKm1ZPPUekUwLtEf/Sv7giUcT4wTV neKZIVU9xIo+HtIv7PktuxMmbKK+uhlKHd52W1Bv/KNm9IDF8tgh86R2nDbnME23kA/NVb AQsAUiVz3q5zZApDc/dh2e9fMkdFSAC5tJQ6mpL8ui4PdCYK6nndbJ7cZVHEemyfhZjARl XBvv1rV+QQVcdni7qAOjeMo30QDLSFCK8Gr1J+z1WRv4trEZ4LqbxfcFw4JFng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763637784; 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=JT3upMS7Tq+SS36wkDU6DxhpdhY9Nbs9/Ch7R58FYQs=; b=dLsIIP/J+JMrsPINHH0WzfSiDP6TftASy96ZRd1WjneqETKICaUy4CBOLMq7UoFMaTZylX Qd6+7B532P5pp15uHUqpigPSBoHEzg0o1SERE5VHn1envBBj3C/iUgId7INEBduQDIJUp2 y1w7P4Slrxiek/bsP8UPFx5F7TPjn7VV1JPovgXNr31AWEX4VnCV0W2Dwa0hhJR5KEdU2r RnXMPTpddmHEmz7fGkGwcPZXGS7eqjfkmTrESQt2HqgU2wU+fIDHH1kGHd1gNCFeg+40ha 7ROd/9+2LHgUQ6v5q9rZJtprE5eHmkvqGmdG3ZxQWYKqtdkG5ep8s1LM/M249Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1763637784; a=rsa-sha256; cv=none; b=GOF+rcIYPQDC5ApxMKszytbLYnl+Cz9TW0MZvseVq8WCoonpujaB7wVCbMt0wSR0Q+pZu0 +OC3qGPCd6WWtOehkggwJzPqY6gwowYyTXAhGlSr1QVTxw/A2cRS2dQw9oLAxN0DzMUGdU xcN+WLO6LWla65KQIAQBYskSF2PyaZaCbaCxW0TAwQlVSCJ9aZTYAlVI/Bj7vMB26mYvY4 R+ixx7q2aNK1ecwKcRCQ5p/zxs7bCNNpAYC1cQyZtDSqa1RQkRKUHQUzZS2GvmtIZDFjxo Vw6uwERWHnP0WSBo9DkEue1xkkU0ctW5FL0HOedjQbkH1DCiTTxubdekymNjzQ== 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 4dBwvD1vkfz8hR for ; Thu, 20 Nov 2025 11:23:04 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id da6f by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 20 Nov 2025 11:23:04 +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: c67643712dc6 - stable/15 - Use install instead of cp to copy bootstrap tools 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: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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/15 X-Git-Reftype: branch X-Git-Commit: c67643712dc6ccd02ea7807729fc53288db47a87 Auto-Submitted: auto-generated Date: Thu, 20 Nov 2025 11:23:04 +0000 Message-Id: <691efa18.da6f.15363fa7@gitrepo.freebsd.org> The branch stable/15 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=c67643712dc6ccd02ea7807729fc53288db47a87 commit c67643712dc6ccd02ea7807729fc53288db47a87 Author: Dag-Erling Smørgrav AuthorDate: 2025-11-15 03:18:35 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2025-11-20 11:22:33 +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 3f93e1065622..6ef7bdf101f7 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -2833,7 +2833,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 3c4e07e3cfc2..bff73fc715ef 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -410,7 +410,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