Page MenuHomeFreeBSD

Handle MOVED_LIBS in `make *-old-files`
ClosedPublic

Authored by emaste on Oct 13 2023, 6:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 10, 12:30 PM
Unknown Object (File)
Apr 30 2024, 5:08 AM
Unknown Object (File)
Apr 30 2024, 5:00 AM
Unknown Object (File)
Apr 30 2024, 4:57 AM
Unknown Object (File)
Apr 29 2024, 9:55 PM
Unknown Object (File)
Apr 21 2024, 7:26 AM
Unknown Object (File)
Apr 21 2024, 7:26 AM
Unknown Object (File)
Apr 19 2024, 6:16 PM
Subscribers

Details

Summary
MOVED_LIBS is used when a library moves from one directory to another,
e.g. /usr/lib/libc++.so.1 to /lib/libc++.so.1.  Having two copies of
the same shared library (with the same so version) can cause trouble,
as shown in the referenced PR.

delete-old-files and delete-old-libs are two separate steps, so that
old libraries can be retained until third party software packages are
rebuilt or reinstalled.  Libraries listed in MOVED_LIBS are logically
equivalent to updating a library without changing the so version, and
should be removed as soon as possible, so handle them in *-old-files.

Leave them in *-old-libs for now, in case the user updates their tree
between running delete-old-files and delete-old-libs.

PR:             272642

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable