From nobody Mon May 09 18:45:41 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DCA4C1AE7261 for ; Mon, 9 May 2022 18:45:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kxqqn4SnXz3h2B for ; Mon, 9 May 2022 18:45:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 75C1B16781 for ; Mon, 9 May 2022 18:45:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 249Ijf9H052777 for ; Mon, 9 May 2022 18:45:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 249IjfTN052776 for bugs@FreeBSD.org; Mon, 9 May 2022 18:45:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 263880] make clean, cleandir doesn't clean /usr/obj Date: Mon, 09 May 2022 18:45:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jon@xyinn.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652121941; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=G3cd/tu36le+g2XTd9RLSJCyguI3NFb0henuJZFyW6o=; b=N7EF50AQQSNVHsQFlG82NDCfyoBGuAWi/UhyMAcgCPHIkrrRLwhKrG2DxpYlRrViES7Q7t 3V8OfDjK/wzBA10Yw5/tqXcKZuDi7H8va6tMZ92eZU4qOdoZmuiLa0mnePEoDTMt8Z7jjk jYPnPX/s0R7Zz/m+CbFn8TuMIar2w7GedVgXuvahbjOcJlsdZ6WZyhjIraCsC3L01N65nz tHVDKOuYP5TzuDWm/xrOTchh2ZuBWrGXsUScTdtCuOHi7m7sqsyWOr2ycv8aFunGRiLZRc i2BrJd9jUOUCsepFoE4DtnfbHOyOD1XV7mtRhD2exrTqofMAVHyI6jSpdlrpGA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652121941; a=rsa-sha256; cv=none; b=ZMbqW2ezm5uuBwqNLCGmqADwrVzpIxn+2+vV4aH2gOESzOMTQurJRe2sNyGRgA7HWdJTJD 27oX6JoAed2zok7y++rJweltrrQC/JWyMZzGTK+277TH7addz5eBk0OYOtOaHyO7gWYL7D PaiTRbwu8UCL3nbNuo8U+boeofvKJE6zV7pOhEE3bOM537ZS98TXiCAuYwuEIEpz0QGUjj DN8fli+B46QaChA4JuUxCPgUaGzPVloHX8syjGI93bg2UQbSiBunuX8c0xV/De6jeCILJs 5oTU8Xn1VJHdG7iIpLLDrgIzK6ox/HZ8QKnihGfjLOfM9irPgASZWq2/R1A3xw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263880 --- Comment #2 from Jonathan Vasquez --- 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.=