On 27 Jun 2020, at 03:55, Greg Balfour <[email protected]> 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
signature.asc
Description: Message signed with OpenPGP
