Re: git: 5e6a2d6eb220 - main - Reapply: move libc++ from /usr/lib to /lib

From: Mark Millard via freebsd-current <freebsd-current_at_freebsd.org>
Date: Fri, 31 Dec 2021 22:17:29 UTC
On 2021-Dec-30, at 19:15, Mark Millard <marklmi@yahoo.com> wrote:
> 
>> On 2021-Dec-30, at 15:14, Cy Schubert <Cy.Schubert@cschubert.com> wrote:
>> 
>> In message <3140C5F6-495F-441C-AA6B-542F3BC53B62@yahoo.com>, Mark Millard 
>> write
>> s:
>>> On 2021-Dec-30, at 11:52, Mark Millard <marklmi@yahoo.com> wrote:
>> . . .
>> It was a NO_CLEAN build. A CLEAN build resolved it.
>> 
>> There were no mods to this, my prod tree, except for some upcoming ipfilter 
>> commits intended for the new year.
>> 
>> One would think a META_MODE build would also fail if NO_CLEAN fails.
> 
> In the following, the file path of the text was found in comes after
> the line(s) with the found text in that file:
> 
> CMD @rm -f libc++.so.1 libc++.so
> /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libc++/libc++.so.1.full.meta
> 
> CMD install -U  -S -C -o root -g wheel -m 444   libc++.ld  /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/tmp/usr/lib/libc++.so
> R 74586 /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/tmp/usr/lib/libc++.so
> /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libc++/_libinstall.meta
> 
> I expect those suggest that META_MODE tracks the file's status and
> the status of related files enough --and so it leads to the update
> that NO_CLEAN did not do.
> 
> Overall you basically reported that NO_CLEAN did not do the rm
> of libc++.so --so it apparently did not do some of the related
> lib/libc++/libc++.so.1.full.meta activity that involved that
> remove.
> 
> Given the removal happened under META_MODE, it also lead to the
> install happening to re-create the file.
> 
> Such is what I would expect (or hope) for META_MODE use.
> 

Dumb mistake on my part above: I paid only attention to the build,
and not to what was installed (or left in place) by installworld .
Despite the buildworld activity indicated above, installworld had
left in place:

# more /usr/lib/libc++.so
/* $FreeBSD$ */
GROUP ( /usr/lib/libc++.so.1 /usr/lib/libcxxrt.so )

(with a modification date back on 2021-Aug-18).

(I'm dealing with updating to more recent commits now. So
hopefully an update will happen this time.)

===
Mark Millard
marklmi at yahoo.com