Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Apr 2022 13:22:55 +0200
From:      "Herbert J. Skuhra" <herbert@gojira.at>
To:        freebsd-questions@freebsd.org
Subject:   Re: why does "make delete-old" not delete some directories?
Message-ID:  <87sfqn95v4.wl-herbert@gojira.at>
In-Reply-To: <Yk8jW7ZOFfK7JxqE@cloud9.zyxst.net>
References:  <Yk8jW7ZOFfK7JxqE@cloud9.zyxst.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 07 Apr 2022 19:46:03 +0200, tech-lists wrote:
> 
> Hi,
> 
> Why does 'make delete-old' seemingly fail with some dirs and not
> others? 
> context is earlier stable/13 updated to stable/13 as of a few minutes
> ago.
> 
> root@redacted:/usr/src # yes | make delete-old
> 
> [...]
> rmdir: /usr/lib/debug/usr/lib/i18n: Directory not empty
> /usr/lib/debug/usr/lib/flua
> /usr/lib/debug/usr/lib/engines
> rmdir: /usr/lib/debug/usr/lib/clang/13.0.0/lib/freebsd: Directory not empty
> rmdir: /usr/lib/debug/usr/lib/clang/13.0.0/lib: Directory not empty
> rmdir: /usr/lib/debug/usr/lib/clang/13.0.0: Directory not empty
> rmdir: /usr/lib/debug/usr/lib/clang: Directory not empty
> rmdir: /usr/lib/debug/usr/lib: Directory not empty
> /usr/lib/debug/usr/bin
> rmdir: /usr/lib/debug/usr: Directory not empty
> /usr/lib/debug/sbin
> /usr/lib/debug/libexec
> /usr/lib/debug/lib/nvmecontrol
> /usr/lib/debug/lib/geom
> rmdir: /usr/lib/debug/lib/casper: Directory not empty
> rmdir: /usr/lib/debug/lib: Directory not empty
> rmdir: /usr/lib/debug/boot: Directory not empty
> /usr/lib/debug/bin
> [...]
> 
> root@redacted:/usr/src # file /usr/lib/debug/usr/lib/clang/13.0.0/lib/freebsd
> /usr/lib/debug/usr/lib/clang/13.0.0/lib/freebsd: directory

I always run rm -rf /usr/lib/debug before "make delete-old(-libs)". :-)

> Shouldn't they be deleted?

$ cd /usr/src
$ grep debug etc/mtree/Makefile
etc/mtree/Makefile:# NOTE: BSD.debug.dist is unconditionally installed for developer ease-of-use.

--
Herbert



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87sfqn95v4.wl-herbert>