Re: some dirs don't get deleted with make-delete-old

From: Herbert J. Skuhra <herbert_at_gojira.at>
Date: Fri, 08 Dec 2023 16:33:29 UTC
On Fri, 08 Dec 2023 13:16:50 +0100, void wrote:
> 
> It seems some dirs don't get deleted with make delete-old:
> 
> # yes | make delete-old
> 
> [...]
> /usr/share/doc/atf
> rmdir: /usr/share/certs/blacklisted: Directory not empty

This directory should no longer exist. It was renamed to untrusted in
June 2021 (commit 64e6e1e46363de5d4843cf0fc79406060ec44c03). 

> /usr/share/atf
> [...]
> /usr/lib/debug/lib
> rmdir: /usr/lib/debug/boot: Directory not empty
> /usr/lib/debug/bin
> 
> is this an error?

Do you use WITHOUT_DEBUG_FILES= in /etc/src.conf? 

I think the problem is:

1. etc/mtree/BSD.debug.dist
The Makefile contains the following note: "# NOTE: BSD.debug.dist is
unconditionally installed for developer ease-of-use."

2. make delete-old does not empty and delete
/usr/lib/debug/boot/kernel and /usr/lib/debug/boot/modules. Both
directories are excluded in tools/build/mk/OptionalObsoleteFiles.inc
(lines 1336-1350). This code was commited in August 2017 by emaste
(commit 63cd05d97a6d280e280538229040537d5ac75788).

--
Herbert