[Bug 263880] make clean, cleandir doesn't clean /usr/obj
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 263880] make clean, cleandir doesn't clean /usr/obj"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 18:45:41 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263880 --- Comment #2 from Jonathan Vasquez <jon@xyinn.org> --- Hey Ed, That seems to be case. I went ahead and made a backup of my /usr/src and /usr/obj so that I can clean them and show you the following. The below is after today's build of 13.1-STABLE. I ran a 'make clean' for the purpose of this example: Before ===== root@leslie:/usr # du -sh obj 6.6G obj root@leslie:/usr # du -sh src 2.2G src After ===== root@leslie:/usr # du -sh obj 3.4G obj root@leslie:/usr # du -sh src 2.2G src Is 'make clean' suppose to still leave stuff behind given the man page description? I'm not sure if that's intended. I do know that when building the Linux kernel, if you do a 'make clean', it does clean up a bunch of stuff but only leaves a minimum amount of left over files in order to allow people to still be able to build kernel modules that are outside the tree (You can actually reduce it even further if you know what files to keep, but that's neither here nor there). A 'make distclean' would pretty much wipe everything it built, and would nuke your kernel config as well, essentially bringing you back to a pristine source tree as if you just had extracted it from kernel.org. So with that context, is 'make clean' on FreeBSD suppose to leave that much stuff behind? If so, what's the purpose for it (kernel module building (i.e drm-kmod?). Is there an equivalent on FreeBSD to pretty much completely clean out the tree and any build output etc? At the moment I would think doing the following would get me back to a vanilla state: # cd /usr/src # make clean cleanworld # git reset --hard HEAD # git clean -dfx # rm -rf /usr/obj/* Thank you, Jonathan -- You are receiving this mail because: You are the assignee for the bug.