From nobody Mon Nov 23 02:08:03 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 4jXq8z422Lz71hCl for ; Mon, 23 Nov 2026 02:08:03 +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 4jXq8z1J5Cz3Fs8 for ; Mon, 23 Nov 2026 02:08:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795399683; 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=1tbOUCe7KPZ1OLzOnkc1PkrljCoBsU/zx3n7LM+ik7A=; b=i5V+Tj3Lx9+YgKCSD5VaM2ZDSExGuDnHmEdNpLDnqcbK5/Xq3WsfrELG/fSyt91mKWpzwX LDrJv5gHk1P/aTFNmiGG94W001NB5EVlHBqB3il05b59eo2iBZ7t1i7bN/RtioFs/pbzK9 9DSYqbp0ZaLBC1pxvFUFb0RcCL7CXgpqXEG0y9lyaGnqRrETm3Sf74qKIvsZxaCYapdee4 QR2Y7ujXAEQXIFId7P74UW21jgum9RS22WC5WG72GAVUk0noWgWaA+oYbClNn/Uhs2S5Kg Mn5kPgtcqiS5AiZhvle7d1EGTs1cSljRlG2m0ca9c6ElvxGmaQOEpxQF6aH+RA== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1795399683; b=uEXDiTmt8OImhxO5Gj4LFZGuFgxc/PR9KI8bjDyfVOzoadc0iKyuQ/b2kP1RLar8VEUCBO cgNRfjbRmTuBo/P1CRQDL/I2bU9ejvLWxdNXJlCxoPKC7XwUTEjl4OoFsAHn/+RsVAk67p NlaqKSampdk/h/NV9Aj6qvF+jHWHswcGj+7PYVAbtQi9JewHccgtzqpqQCIm5RQ8IXseJX 9+7uk0PC1SSR/RDG2spld0VY+kHc5XQT+I4dQ91FzPi5b4jvbEMz96DWNt13GE4CpsRrxH iqyjhJy1YVQfdbyBp/6ZDL6tHrMMBl2YRdB81iEzWRWxf9RBgCDcGJhNTayUdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795399683; 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=1tbOUCe7KPZ1OLzOnkc1PkrljCoBsU/zx3n7LM+ik7A=; b=X8woiuVsVa+dhe6Wd0I0hNcHYFATEBkI+lDgRvDyjwgJ2ce1Ano2LEhCxFcCc+2JGFebKp Y2xWS+BveDetBj1bX1wOfJBidTtdmGeFa0Dxi/Ivx0t258yMHx/mNYXKKKTj49dwBzcHta Usf/+GRN/Nrgd2Ct++31Au1e19vV+s3W3UY6wjUCcRk38Ra0q69kIjfYNU5b5QntdDKvyq ZuDt1jR2aUguTuQQ9t6CysUL2XtoYVeJdzs5jrWo1I9C4vZrpHIqqH9knfgMaWNaY25p7p 0jttNmeSAQ1WAyvgxnZZsDjprNcL9WroIZ60ffFZOgPzYLwwUi09Bv1vmGUn2w== 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 4jXq8z0yxkzVM7 for ; Mon, 23 Nov 2026 02:08:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 8656 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 23 Nov 2026 02:08:03 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Enji Cooper Subject: git: a8d121f489b8 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: a8d121f489b8dfc1a7e64c8794cbd77307d304f6 Auto-Submitted: auto-generated Date: Mon, 23 Nov 2026 02:08:03 +0000 Message-Id: <6b03a003.8656.3a36a92e@gitrepo.freebsd.org> The branch stable/14 has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=a8d121f489b8dfc1a7e64c8794cbd77307d304f6 commit a8d121f489b8dfc1a7e64c8794cbd77307d304f6 Author: Enji Cooper AuthorDate: 2026-11-04 18:53:01 +0000 Commit: Enji Cooper CommitDate: 2026-11-23 02:06:47 +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 6aaa5dbe1bcb..cd0684b8f43a 100644 --- a/tools/build/mk/OptionalObsoleteFiles.inc +++ b/tools/build/mk/OptionalObsoleteFiles.inc @@ -1429,8 +1429,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 @@ -9526,8 +9534,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