Date: Sat, 27 Jun 2020 13:02:25 +0200 From: Dimitry Andric <dimitry@andric.com> To: Greg Balfour <greg.bal4@gmail.com> Cc: freebsd-stable@freebsd.org Subject: Re: 11.4-RELEASE make delete-old Message-ID: <60E0BADC-8740-4206-A15D-F7F701E59E70@andric.com> In-Reply-To: <CAOYYArK-iTOyB-hAcOp_0inrJZN0aCFGupG0AEy93Q%2BT5X%2B0xA@mail.gmail.com> References: <CAOYYArK-iTOyB-hAcOp_0inrJZN0aCFGupG0AEy93Q%2BT5X%2B0xA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_B2733154-0C8B-453B-AF3C-E1789A23CEC2 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 27 Jun 2020, at 03:55, Greg Balfour <greg.bal4@gmail.com> wrote: > > On a fresh install of 11.4-RELEASE, rebuilding the operating system > results in several files being deleted during the "make delete-old" > step. This surprised me. I wouldn't have expected this on a rebuild > of a new install without any updates applied. See below, but for > example /usr/bin/llvm-ar is present after the initial install but is then > removed by the "make delete-old" step. Is this to be expected? > Is the correct action to respond y when prompted about the files? > > root@test:/usr/src # make -j 4 buildworld buildkernel > ... > root@test:/usr/src # make installkernel > ... > root@test:/usr/src # make installworld > ... > root@test:/usr/src # make delete-old >>>> Removing old files (only deletes safe to delete libs) > remove /usr/bin/llvm-ar? y > remove /usr/lib/debug/usr/bin/llvm-ar.debug? y > remove /usr/bin/llvm-nm? y > remove /usr/lib/debug/usr/bin/llvm-nm.debug? y > remove /usr/bin/llvm-ranlib? y > remove /usr/share/man/man1/llvm-ar.1.gz? y > remove /usr/share/man/man1/llvm-nm.1.gz? y > remove /usr/share/man/man1/llvm-symbolizer.1.gz? y >>>> Old files removed >>>> Removing old directories >>>> Old directories removed > To remove old libraries run 'make delete-old-libs'. Hmm, you found an issue in tools/build/mk/OptionalObsoleteFiles.inc. At some point llvm-ar, llvm-nm, llvm-objdump and llvm-symbolizer got promoted out of MK_CLANG_EXTRAS, so they always get installed. But in OptionalObsoleteFiles they are still under MK_CLANG_EXTRAS, so if you don't have that enabled, they are proposed for deletion. I have MFCd a few additional changes to fix this, in: https://svnweb.freebsd.org/changeset/base/362674 but this will have to be manually applied to your source tree, if you don't want to get prompted anymore. Otherwise, simply ignore the removal requests. -Dimitry --Apple-Mail=_B2733154-0C8B-453B-AF3C-E1789A23CEC2 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCXvcnQQAKCRCwXqMKLiCW o6BuAJ9UL/6d6DWT1i8Cyl/tQ7EJjJSvkQCg92vkunHGTmnJtxkUn2hi7y6L/Pw= =9d9q -----END PGP SIGNATURE----- --Apple-Mail=_B2733154-0C8B-453B-AF3C-E1789A23CEC2--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?60E0BADC-8740-4206-A15D-F7F701E59E70>