From nobody Thu Aug 27 06:34:44 2026 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 4hVsFJ4rs7z6qYBs for ; Thu, 27 Aug 2026 06:34:44 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hVsFJ3V23z3s4f for ; Thu, 27 Aug 2026 06:34:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787812484; 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=t941x6sfc1xISoWgaMWPxusmUILAw7mATiIVVI0p5TM=; b=Nw8NIZTlKMCWOBH44mQGHgyRup8PXQm4z8VzfA9yQwEciLt+Huw3isPyKKlOUsnojiexCA H+pi1kSegVKLq2UAvU+MOLt2u2cg8TKI4bIwzkUOk8XyMgcsk527bTUOBH3tu1jH1dSUL9 eRPHgYi7jEtCNeq+lacime3j4Kk2cm6ZyN4c9gXpuauNs9olE5I6yNaOK/Vb8sn59We25/ jqJPIQJzYtujEji/w5jY1cht5JR8eKTanrArK86Lbv5wGKkByJOVOPSR2xSJyqN8zP3HuL MnGd2ganG0i0mzIgat85bBms3OLPC2p5qYtvfQS7hMFrHqniSBn1i68p2EWfIQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1787812484; a=rsa-sha256; cv=none; b=yBzt2CoATuA6ZqEoiod+OEBhvrAoAeto9fQVQcdSThsMtpklO5nnGezh30iqffzWBfRAYe n5w8cRboxuDeV0Kpm5aATayk88JjI3nG4F0laBQ6McH+3muyVmKuDUkOWbpHoh+I8mdjKm jqcgStCG+ijS1S+HdqWRS99k3osRPzpEBO+lWXIT3OAiYqK73Oa+Lcp+zqSFwyNzvya63v LhZ2F6jBxQr7Qtk9BNuhlB4mQgb+XRSowDNg8vL8ommUAn1hSYkZpiGn0+zn+pkfs25hNf 51P6j2kgxODHFvWnMB1vA0kMb+21ONjTTMdX5grZiUjHIIedKYMzMUwx/iHlgQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787812484; 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=t941x6sfc1xISoWgaMWPxusmUILAw7mATiIVVI0p5TM=; b=Hb3I4WRrwx7WhsO5tBrfLbk1yMbDNC4FoV6Xb38B04PMD9+FZMjIfgk9W2qAMbax5lXAp9 4dWnTsAlxWAW9oIxnIkd4WF00eX/98kL6pgHSSxI22FCBniREYM04dj7YaQN+gC2YZtrxo EyydgLqhzfaLhOkPyMLQeyLSwQcxefQMgcSAOHKQ9fMHuAvOzEojb/7mNU5SpM9NJTYlbD pWMNJfUU5lyZr7wFEHk7wDAZEJ6bULPQ9/FufJO04k8asRW93VnLwUGs5KuXx4GesEoxsK /33iRcl6ZWe6lc+4OvZJsW9zVxUXvF1HbqOBxiWmdUDp9a2X0Cca8gjhxZ+XpQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hVsFJ2RzLz1BmJ for ; Thu, 27 Aug 2026 06:34:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 19afd by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 27 Aug 2026 06:34:44 +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: 84bfbd6bf78f - stable/14 - build: Use -f when copying sources 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 List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list 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: 84bfbd6bf78febee82b7298cf5fdb77b9f7398c4 Auto-Submitted: auto-generated Date: Thu, 27 Aug 2026 06:34:44 +0000 Message-Id: <6a8fda84.19afd.68b20fe4@gitrepo.freebsd.org> The branch stable/14 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=84bfbd6bf78febee82b7298cf5fdb77b9f7398c4 commit 84bfbd6bf78febee82b7298cf5fdb77b9f7398c4 Author: Dag-Erling Smørgrav AuthorDate: 2026-08-13 12:28:09 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2026-08-27 06:34:19 +0000 build: Use -f when copying sources If one of the source files we copy is non-writeable, cp will create a non-writeable copy. If the original is later modified, cp will fail to overwrite the copy since it is not writeable. Using cp -f ensures the copy always succeeds, as long as the object directory is writeable. MFC after: 1 week Sponsored by: Klara, Inc. Sponsored by: NetApp, Inc. (cherry picked from commit 336b6d11922ac3d080de50f789d40ff95b540cdf) --- tools/build/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/build/Makefile b/tools/build/Makefile index 98ee8b5bda9c..771334757b98 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -85,7 +85,7 @@ _WITH_EXPLICIT_BZERO!= cat ${HOST_INCLUDE_ROOT}/strings.h ${HOST_INCLUDE_ROOT}/s # cause it to pick the file from libkern instead (which won't compile). # Avoid modifying .PATH by creating a copy in the build directory instead. explicit_bzero.c: ${SRCTOP}/sys/libkern/explicit_bzero.c - cp ${.ALLSRC} ${.TARGET} + cp -f ${.ALLSRC} ${.TARGET} CLEANFILES+= explicit_bzero.c INCS+= strings.h SRCS+= explicit_bzero.c @@ -247,7 +247,7 @@ SRCS+= capsicum_stubs.c # XXX: we can't add ${SRCTOP}/sys/kern to .PATH since that will causes # conflicts with other files. Instead copy subr_capability to the build dir. subr_capability.c: ${SRCTOP}/sys/kern/subr_capability.c - cp ${.ALLSRC} ${.TARGET} + cp -f ${.ALLSRC} ${.TARGET} SRCS+= subr_capability.c CLEANFILES+= subr_capability.c .endif # ${MAKE.OS} != "FreeBSD"