From nobody Thu Aug 27 06:34:30 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 4hVsF83QMTz6qYWJ for ; Thu, 27 Aug 2026 06:34:36 +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 4hVsF75HrVz3rdc for ; Thu, 27 Aug 2026 06:34:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1787812475; 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=EDrt+EhoLkhWrN5TY3Wxxm8Ym+Q6mb70Hc07MnB1qPY=; b=hgifIaYpWdNzHxV+jAIrrfw4rU8EOWtxEVuYfi5C+NOhFonFPNzqfUW6K74kLihEpLrjR3 6+lkLcbfs7OQitscCPQ5ZdXS9hbY3GAyAmatg/gWXOZahOJTJoN92pGF6jZ4F6iCDuQSXA XY+IqVqtqO+w/NBqNW2vYovzu1f90rpMHDVGqe5r1aPObC8HW8cWx0ZOd5JJYdJXRZpctk KybcaM5kErHLAyMrMHtPSmqgscDqBb5Vj63ztHYeN3mjgtrVYdY0AvuUrbTk6C3hv2HyAH WvjhUe/r8mG4cFNwvXdLUEQzZidL7amn2utTzip/7V0L1su4QbGJOrj/yRL7jQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1787812475; a=rsa-sha256; cv=none; b=R6KWyQ9CcdoOKWDuxHFwLRcrrOTXtYbjcvRC4dxBxbI2KNrtM/u3J7wef/o97Ex0e6voJ1 5x0dfXK8qMV1bMIdoVIGcLM/uXhWyNFLLfPBy6u2CZS1E1nFERxYheZ2cnEs3XSGBQJQ8Z 7WC2vtU2+fxqsYkhzTSMwqBiJQieeQRwMM6d2SodUkucR5egZlNNfkijoZubDqZ2suFHK8 r8YXAbZyXBAsC0wn8r9Z9RYns2ZDMDhjMq1aEiokI1tTGk0/HxrJWh+RUJsl24/OImduhq qDGOm0pYhaHDBBDyIf3CF7HNWra8hhJP0JZk4HABQlij23nR3vinUo5wFidqRg== 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=1787812475; 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=EDrt+EhoLkhWrN5TY3Wxxm8Ym+Q6mb70Hc07MnB1qPY=; b=UuiNk4uvfEu0eHEbuwkM3kIg/j1c2mYAARpqVwUuOybW2thdoH8b1dgNR1kgjP9+8H2f/r sBHO31xJiSZ+qo+RO1Ca3fFA2JI7QS/3napsLSeypPA2IrxDYNGHoEnafOIP5zccuk0wQI hszuHVQOjVyrKTeRcuXYw4/PSgXDn1TWNMLOynsnJZRfZfANVNgwj79zjOgTE182lV5kYO 5448tVAeh5eEgDnK8jwFxIVzsTk269xirNHd+xLTT4suRflP3dxfRus1wm0Dz4qpGr3nQw oivQe2R6kTtjOLzzVGW8wnL4oiBjhhkH5HxabsIzDLSYOK0VB7I38PO2NcrJvw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hVsF240mQz1B5J for ; Thu, 27 Aug 2026 06:34:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1be11 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 27 Aug 2026 06:34:30 +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: 9f25a717ff5f - stable/15 - 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/15 X-Git-Reftype: branch X-Git-Commit: 9f25a717ff5fb54d3456bb5abc74192b8ca0784e Auto-Submitted: auto-generated Date: Thu, 27 Aug 2026 06:34:30 +0000 Message-Id: <6a8fda76.1be11.28cb5b78@gitrepo.freebsd.org> The branch stable/15 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=9f25a717ff5fb54d3456bb5abc74192b8ca0784e commit 9f25a717ff5fb54d3456bb5abc74192b8ca0784e Author: Dag-Erling Smørgrav AuthorDate: 2026-08-13 12:28:09 +0000 Commit: Dag-Erling Smørgrav CommitDate: 2026-08-27 06:33:50 +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 b0506806ba18..c26dac86bec2 100644 --- a/tools/build/Makefile +++ b/tools/build/Makefile @@ -103,7 +103,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 @@ -270,7 +270,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