From nobody Tue Oct 14 02:52:52 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 4clzKd0C5Qz6Cnrc; Tue, 14 Oct 2025 02:52:53 +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 4clzKc5HJXz3Dd7; Tue, 14 Oct 2025 02:52:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760410372; 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=vfvnC7fuoUWTGvsjPsta5d9DO81qI4X5aj/bkhM1l2U=; b=YgbpoVxUFUGJ6rZOqVqe/jDYmBOJXURK9urGUimF2MlVMHYZSQdo//1Ar4zMXrzENHnSnp geeJxKs6uKcxWsfPtsVIn9lzdXBLTDdS4ifbDW+0AeVDV4TRjoDYosRxfBaKyMGl652SHD auiUare9mYCyQ4YVYr+scyUtigj2eah6LFvKTO9GJBs1gucnRaDJiruXOuTTFl6Fq5KY5y /wPdFfOZgddztW5mrhQQmwF40oQdFFi7rMB+04B/p/7fEZ8hP1tBzJRIx9HdCN5yOGy0EY eJAB+bviv9+4c+uRLkdXXvPy2BRXRcrvSSbS4x0afu5LoMdp7zLtRAP/MYBD0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760410372; 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=vfvnC7fuoUWTGvsjPsta5d9DO81qI4X5aj/bkhM1l2U=; b=XRcTSSRtHepwQzQCZ8fGaxbaTiF8/5jIVpeX0GRjdg7FUYFWV0SgnB83tDMxuUOfuOVf5f yhslvm5MBWRLTmwKwO6YuF7XwfqtqwfnwvqYDuWqi5RcPujrucPtKgnfaN6VBznWfeLLBO jfTmREBAzpYMZz6V6vkTOjJ4WG8vpvl2voyB8ID3ie/Pb9y2HFJO3WD74mEvG3IAiSptci DRJjRFkHp+N2mLJLtMshmUgb7GSJ8Uzz/uNCO0AFf2VH2uS4iWU24TQ8ZM7qTPYQpOFz2P aPhSjVxXH2gUO5f68JTb53xlj1rSbZMGWlLX5Be2Tatvf3dHK0siK421ey/INA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760410372; a=rsa-sha256; cv=none; b=B1gKWQv1PRKiKdXOjmuaF/e7HdaamRrcZF2QL3fXDe48fc0a6lbzu3JAKQ/+2uD7g8DJTL 1AFEqFI22UE1Oifn+LkCEA7rYs6wYH4hseM09z4q0omH5GWaJr8aqu3AyGMMSJa/pPVzBZ ASt0c4OVElut/fk4pfrrayplFYFYVJdK695aIaw4tKZVO2VT35zrGDVM6pMEZSZI4UYfSL F/aCi55ShXO1p+lFuUZm7iqtC3eoeaqw3k/AE03Y5XT3gQuhfIY/ZZk7fSka8Vmqy4r0Lw 6bnKU5mlC4vbSt6CP7Z1dSSTymk5N4GDuN5DWrzW9oe6SfEF1Ms15rEy8qcoHg== 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 4clzKc4g7QzbGP; Tue, 14 Oct 2025 02:52:52 +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 59E2qqPV046399; Tue, 14 Oct 2025 02:52:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 59E2qq1m046396; Tue, 14 Oct 2025 02:52:52 GMT (envelope-from git) Date: Tue, 14 Oct 2025 02:52:52 GMT Message-Id: <202510140252.59E2qq1m046396@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Colin Percival Subject: git: 3c9a2f383fc2 - main - Ping: Make build reproducible 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: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3c9a2f383fc25cdffa80c1348cb5388290e0f283 Auto-Submitted: auto-generated The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=3c9a2f383fc25cdffa80c1348cb5388290e0f283 commit 3c9a2f383fc25cdffa80c1348cb5388290e0f283 Author: Colin Percival AuthorDate: 2025-10-13 15:58:10 +0000 Commit: Colin Percival CommitDate: 2025-10-14 02:52:35 +0000 Ping: Make build reproducible As recently fixed in sockstat (9934558460e4), having tests/Makefile include files from the parent directory with SRCS= ../foo.c results in a race condition as the parent build and the tests build try to produce the same object file but contain different paths. Use .PATH to tell make to find sockstat.c in the parent directory but place the object file in the current object directory. Reviewed by: emaste, jrtc27, kevans MFC after: 3 days Sponsored by: https://www.patreon.com/cperciva Differential Revision: https://reviews.freebsd.org/D53075 --- sbin/ping/tests/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbin/ping/tests/Makefile b/sbin/ping/tests/Makefile index 0520b1d634cf..7d3ab02b9a86 100644 --- a/sbin/ping/tests/Makefile +++ b/sbin/ping/tests/Makefile @@ -1,5 +1,6 @@ ATF_TESTS_C+= in_cksum_test -SRCS.in_cksum_test= in_cksum_test.c ../utils.c +.PATH: ${.CURDIR:H} +SRCS.in_cksum_test= in_cksum_test.c utils.c PACKAGE= tests