Page MenuHomeFreeBSD

Makefile.inc1: move MOVED_LIBS under list-old-files
AbandonedPublic

Authored by dim on Oct 13 2023, 6:19 PM.
Tags
None
Referenced Files
F96817711: D42196.diff
Thu, Sep 26, 6:19 PM
Unknown Object (File)
Thu, Sep 5, 6:56 AM
Unknown Object (File)
Mon, Sep 2, 7:17 PM
Unknown Object (File)
Aug 5 2024, 10:04 AM
Unknown Object (File)
Apr 30 2024, 8:37 AM
Unknown Object (File)
Apr 30 2024, 8:37 AM
Unknown Object (File)
Apr 30 2024, 5:08 AM
Unknown Object (File)
Apr 28 2024, 1:58 PM
Subscribers
None

Details

Summary

Moved dynamic libraries are never bumped, so old copies should never
stay around. Therefore, put any MOVED_LIBS from ObsoleteFiles.inc under
the list-old-files target so they may be deleted, even if users run
"make delete-old-files", but do not run "make delete-old-libs". (The
latter target is sometimes postponed, for example due to installed ports
still requiring the older libraries.)

In particular, this avoids keeping around an old /usr/lib/libc++.so.1
after a new version has been installed in /lib, which could lead to
"Undefined symbol" errors in certain circumstances.

PR: 272642
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 53973
Build 50863: arc lint + arc unit

Event Timeline

dim requested review of this revision.Oct 13 2023, 6:19 PM
dim created this revision.
Makefile.inc1
3376

I think we want to leave this one here, at least for now: a user could run make delete-old-files, update their tree across this change, then run make delete-old-libs and not handle the file at all

Yeah you're right, let's go for D42197 instead.