From nobody Wed Nov 04 18:54:02 2026 X-Original-To: dev-commits-src-main@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 4jKZNV6lTPz6yltL for ; Wed, 04 Nov 2026 18:54:02 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jKZNV6Dxgz3KK0 for ; Wed, 04 Nov 2026 18:54:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793818442; 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=reY66AEeeoAOZMTcQRa5GufCplG8swy+m8PoyOQkchs=; b=bNpQ0TI0A4rRnHaQ9TtTmhUMv/NaguMswCf+JPmTIomDdyv8PMtkGz1tXazziOiQBweAet BSkJKqLj6vGW5eHl3TgCeWlESBo2bcAxQl+60aT5KM2bomN5mK8kFb5D12YtQmy9m7alhl mzjN2Ewi+BHfb4W8VQ63GrVNkggyle7MHmq2+c2pi5m98vCBWRDeUepr+Q0i5IVIZ9ztfX UUoJMEbcq0naUuiR4RoLgIkQ8at+HP7ofzrWw5PrG3w3ug45HxqvunTP6TkQIiGlYuzxWY ciwD76Lh7JV1PTo+oxmX7ypq3aPWVFs2CHiyF7bHmZnvaQq7/jT1XM/TSTBNjg== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793818442; b=qvffGA3fdHIvF16mZkVQ/Uui/jVF8liORUix49Ywd/wEglFaI6xe/zBXDQDQ5Y5UloUEuK UxsVhkhZgAmoyo2cxc0JdBVfRN/XNX1faP5zkQ0w7vbqfnhGtToobysyy4z/2xrww3vWJy d3bPmwxORbxv4m2BMCc/m1UYT/AxdnYA+rJA7T/MHt6PkO/Q90vvSIk4iUV2IctRoccU9k SLd2KYBBNj1CY8zP0+fVyv3spq/TmIKeI+zN2Iuq/lBa+7dw8rPnwY292EWYJ7LvoXRSNO ALCzzESkl+KYPMHJCpAm5HP2KRgvOlF2cy51KDdCThvQWEF5rC58xWMnBjEQhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793818442; 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=reY66AEeeoAOZMTcQRa5GufCplG8swy+m8PoyOQkchs=; b=LWIrCmu1ti8yArdse63HNM8OmTPG0gzjNFIrRUiO8Po2evRuUGlEDljjjNO0NZkWzZl9RU l+qiRO0nW+/CohpBLOEKql9awKklNnpWHlxV9EtHxtU0Z0uYKh/DsRTT1zQYJPhTUS3XXf /BFz3AJFvOcod+xhFLtW56yO42FuKDv47/by/K4NMtRi5Bi6lGykD4jEYT1fW8bT0xH6oX hFIeqvShDVeL7+bptsl7sUb1KFUDIbnSyQYCwUcQ8nv2ATtAah2ro+yDSzjzz5COt8IH5Y zceFmhPYnNuprFeBnJC0qrBMb5eJQmfkWzR6psOSjfOox4eBFqgapeJNypwaUw== 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 4jKZNV5txgzFmn for ; Wed, 04 Nov 2026 18:54:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 38443 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 04 Nov 2026 18:54:02 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Enji Cooper Subject: git: 0df8ed538c62 - main - Don't some prune empty dirs created by BSD.tests.dist List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: Commit messages for the main branch of the src repository 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: ngie X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0df8ed538c620cf021f8dfa2c54892b5ef9620a5 Auto-Submitted: auto-generated Date: Wed, 04 Nov 2026 18:54:02 +0000 Message-Id: <6aeb7f4a.38443.2d93bcf2@gitrepo.freebsd.org> The branch main has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=0df8ed538c620cf021f8dfa2c54892b5ef9620a5 commit 0df8ed538c620cf021f8dfa2c54892b5ef9620a5 Author: Enji Cooper AuthorDate: 2026-11-04 18:53:01 +0000 Commit: Enji Cooper CommitDate: 2026-11-04 18:53:51 +0000 Don't some prune empty dirs created by BSD.tests.dist Before this change, directories needed when MK_DTRACE_TESTS != no and MK_ZFS_TESTS != no but not MK_TESTS != no, were being created via `BSD.tests.dist` as part of the standard build/install process with the top-level `hierarchy` target. This behavior resulted in `make check-old` flagging a lot of issues after 30c20ca26e105c, even after `make delete-old` was run and the directories were removed. Remove the logic which pruned these empty directories; this "fixes" the issue with `make check-old`, et al and allows a proper technical solution to `OptionalObsoleteFiles.inc` to be implemented by pkgbase in an unimpeded manner without introducing additional complexity. See the review for more details. PR: 299650 MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D60928 --- tools/build/mk/OptionalObsoleteFiles.inc | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/tools/build/mk/OptionalObsoleteFiles.inc b/tools/build/mk/OptionalObsoleteFiles.inc index a0bf0defb19f..4cc2c2525117 100644 --- a/tools/build/mk/OptionalObsoleteFiles.inc +++ b/tools/build/mk/OptionalObsoleteFiles.inc @@ -1434,8 +1434,12 @@ OLD_FILES+=usr/share/man/man1/opt.1.gz CDDL_TEST_DIRS= cddl . for d in ${CDDL_TEST_DIRS} . if exists(${DESTDIR}${TESTSBASE}/${d}/) -TESTS_DIRS!=find ${DESTDIR}${TESTSBASE}/${d}/ -type d | sed -e 's,^${DESTDIR}/,,'; echo -OLD_DIRS+=${TESTS_DIRS} +# Bug 299650: do not prune empty directories created by +# `etc/mtree/BSD.tests.dist`. +# +# Read https://reviews.freebsd.org/D60928 for more details. +#TESTS_DIRS!=find ${DESTDIR}${TESTSBASE}/${d}/ -type d | sed -e 's,^${DESTDIR}/,,'; echo +#OLD_DIRS+=${TESTS_DIRS} TESTS_FILES!=find ${DESTDIR}${TESTSBASE}/${d}/ -type f | sed -e 's,^${DESTDIR}/,,'; echo OLD_FILES+=${TESTS_FILES} . endif @@ -1692,8 +1696,12 @@ OLD_FILES+=${TESTS_FILES} DTRACE_TEST_DIRS= cddl/usr.sbin/dtrace . for d in ${DTRACE_TEST_DIRS} . if exists(${DESTDIR}${TESTSBASE}/${d}/) -TESTS_DIRS!=find ${DESTDIR}${TESTSBASE}/${d}/ -type d | sed -e 's,^${DESTDIR}/,,'; echo -OLD_DIRS+=${TESTS_DIRS} +# Bug 299650: do not prune empty directories created by +# `etc/mtree/BSD.tests.dist`. +# +# Read https://reviews.freebsd.org/D60928 for more details. +#TESTS_DIRS!=find ${DESTDIR}${TESTSBASE}/${d}/ -type d | sed -e 's,^${DESTDIR}/,,'; echo +#OLD_DIRS+=${TESTS_DIRS} TESTS_FILES!=find ${DESTDIR}${TESTSBASE}/${d}/ -type f | sed -e 's,^${DESTDIR}/,,'; echo OLD_FILES+=${TESTS_FILES} . endif @@ -9471,8 +9479,12 @@ ZFS_TEST_DIRS= cddl/usr.bin/ztest ZFS_TEST_DIRS+= cddl/usr.sbin/zfsd . for d in ${ZFS_TEST_DIRS} . if exists(${DESTDIR}${TESTSBASE}/${d}/) -TESTS_DIRS!=find ${DESTDIR}${TESTSBASE}/${d}/ -type d | sed -e 's,^${DESTDIR}/,,'; echo -OLD_DIRS+=${TESTS_DIRS} +# Bug 299650: do not prune empty directories created by +# `etc/mtree/BSD.tests.dist`. +# +# Read https://reviews.freebsd.org/D60928 for more details. +#TESTS_DIRS!=find ${DESTDIR}${TESTSBASE}/${d}/ -type d | sed -e 's,^${DESTDIR}/,,'; echo +#OLD_DIRS+=${TESTS_DIRS} TESTS_FILES!=find ${DESTDIR}${TESTSBASE}/${d}/ -type f | sed -e 's,^${DESTDIR}/,,'; echo OLD_FILES+=${TESTS_FILES} . endif