Date: Mon, 09 May 2022 18:45:41 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 263880] make clean, cleandir doesn't clean /usr/obj Message-ID: <bug-263880-227-kwvZYxtaFf@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-263880-227@https.bugs.freebsd.org/bugzilla/> References: <bug-263880-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263880 --- 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 =3D=3D=3D=3D=3D root@leslie:/usr # du -sh obj 6.6G obj root@leslie:/usr # du -sh src 2.2G src After =3D=3D=3D=3D=3D 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 b= ut 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 everythi= ng it built, and would nuke your kernel config as well, essentially bringing y= ou 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 cle= an 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 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263880-227-kwvZYxtaFf>