[Bug 281755] make cleanworld cleanuniverse cleankernel leave dot-files behind

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 29 Sep 2024 00:13:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281755

            Bug ID: 281755
           Summary: make cleanworld cleanuniverse cleankernel leave
                    dot-files behind
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: bz@FreeBSD.org
                CC: imp@FreeBSD.org

Hi,

Makefile.inc1 since 3e65b7d94dfc8 does cd && rm * rather than removing the
entire directory (not sure about the reason for it but I am sure there is one):

cleanworld cleanuniverse cleankernel: .PHONY
.if !empty(BW_CANONICALOBJDIR) && exists(${BW_CANONICALOBJDIR}) && \
    ${.CURDIR:tA} != ${BW_CANONICALOBJDIR:tA}
        -(cd ${BW_CANONICALOBJDIR} && rm -rf *)
        -chflags -R 0 ${BW_CANONICALOBJDIR}
        -(cd ${BW_CANONICALOBJDIR} && rm -rf *)

But "rm *" does not actually remove everything (.depend.*) for kernels are left
behind, which is why you get a lot of "ignoring stale .depend for" warnings at
times (and possibly other side effects?).

-- 
You are receiving this mail because:
You are the assignee for the bug.