From nobody Mon Nov 23 02:07:52 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 4jXq8n28ydz71hGB for ; Mon, 23 Nov 2026 02:07: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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jXq8m5nfQz3FTr for ; Mon, 23 Nov 2026 02:07:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795399672; 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=rJNynHVtjcrJW8/SLcy5uJpTNKjmvy9uNKaCHukbZbg=; b=xfNqK2h2Hut8QGcx5JBmPKciJD3E1ZdJFAF0pWSvX+N8QZgyMqc1d/8CFOfWLlA/3lTA3S mjsX64eoCMV9gkAjhzDDG/YOk0egi/tN3BsC2W2nHM90iEazEeAPL0SfuYpcc5IM5IvoJ9 TQ8bSLfOeY6SBKnnPV/2aMlxPR3XQvkT7+c69ROaiW5ajgtaWiHZBXygWPG5deg/s0jcNz ivDnvbUo/lsd4IrPeTHbHpMl2V68yDQ44RKEeCJGg6YzoZe22zd9lbesLvlhaGKheYBwiK UutDllsJ3WtuUnh2ymlMY9zP4mcQzuwRkMkHMgnEfv1z0V4I2XaT3sUo1vVE1g== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795399672; b=A/3j3Hv5JMwFJHoYlJFkbt7qT8pHUdYaYq9bg/2al1qswP0WrtqpAN1xrJ1cFyzew7Rs1o 1KI5TTh1JyCAp/qn/9YElBUzeIfGSGx3V5Bsb60ONY5A+cDh8feFJCylz2wMq62LlHI0TL qm5yNVOjsj29CjdG5PG+VN73kXMI64Ffy9UBltlVlzKpFhCu1vCPxSWCKtMYNF635JEJNF egiLzrgwzDC2BFSajzGSZ1aLdQRC9C8FHsj8IPyiujamNYvkM+5XNCpcEgBpVkc01Q03sa KEQE8QxXL90AVaPmDGa/lHz6gn9vy0hfRnnjR32pT525IZBwNN6bGScoOh8MWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795399672; 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=rJNynHVtjcrJW8/SLcy5uJpTNKjmvy9uNKaCHukbZbg=; b=s4l000smJY4wAVSotzB/uKF/Gt/BFtdqprDevyKQwzQRRi0IU/jwuB00QzoCj+fSWzWKmc LeaAcsqC0TODePKLlorqcYvB+inP/uxkFkyMgY+uRC1z59Z2ANHj8dlBJMLRN8fEt5FcEM PJZSCg88kV/k1DJdOPpQblhlKKuWouGqndu4qJq/lnW4N/5ZwP1a7IoTWy688V5j7gKqyF BsBf2qW0vC0yaXWeutM6Aq22KNDuJ4kryXgPvXzIaV9Dsj/7YRAvqAxtvdxmZfXNzn63/l rT6WCnNCchCDi6HRHH5l0ED5s+3Mdq+W/Wx3q2UbGjQvYUl14IA+zp1ClKkPUw== 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 4jXq8m563ZzVr1 for ; Mon, 23 Nov 2026 02:07:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 9d81 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 23 Nov 2026 02:07:52 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Enji Cooper Subject: git: 6109c35c328c - stable/15 - Don't some prune empty dirs created by BSD.tests.dist List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all X-BeenThere: dev-commits-src-all@freebsd.org List-Id: Commit messages for all branches 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/stable/15 X-Git-Reftype: branch X-Git-Commit: 6109c35c328c07082fa4d63cba5503535c3bd579 Auto-Submitted: auto-generated Date: Mon, 23 Nov 2026 02:07:52 +0000 Message-Id: <6b039ff8.9d81.78f55cb9@gitrepo.freebsd.org> The branch stable/15 has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=6109c35c328c07082fa4d63cba5503535c3bd579 commit 6109c35c328c07082fa4d63cba5503535c3bd579 Author: Enji Cooper AuthorDate: 2026-11-04 18:53:01 +0000 Commit: Enji Cooper CommitDate: 2026-11-23 02:07:25 +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 (cherry picked from commit 0df8ed538c620cf021f8dfa2c54892b5ef9620a5) --- 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 3b1e09f94b1d..931affb4a67f 100644 --- a/tools/build/mk/OptionalObsoleteFiles.inc +++ b/tools/build/mk/OptionalObsoleteFiles.inc @@ -1445,8 +1445,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 @@ -1741,8 +1745,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 @@ -9502,8 +9510,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