HomeFreeBSD

freebsd-update: Library ordering

Description

freebsd-update: Library ordering

Upgrading from 14.x to 15.x with freebsd-update broke because libc
depends on the new libsys library; freebsd-update installed the new
libc before creating libsys, and every step after that failed because
all the tools (including gunzip and install) are dynamically linked
and need a working libc.

Enforce ordering when installing shared objects: First libsys, then
libc, then libthr, and then all the rest of the shared object files.

This is a candidate for an Errata Notice since the issue this fixes
breaks upgrades.

PR: 289769
Reported by: Graham Perrin
Reviewed by: kib
MFC after: 3 days
Sponsored by: https://www.patreon.com/cperciva
Differential Revision: https://reviews.freebsd.org/D52688
Approved by: so
Security: FreeBSD-EN-25:18.freebsd-update

(cherry picked from commit 7ece602e00e85195fc426a2401c49921cd39735e)
(cherry picked from commit e26928669f39c8683aea74040b9e2472e944c43a)

Details

Provenance
cpercivaAuthored on Sep 23 2025, 6:55 AM
gordonCommitted on Tue, Sep 30, 4:57 AM
Reviewer
kib
Differential Revision
D52688: freebsd-update: Library ordering
Parents
rG30ad842dd970: Correct release patch information.
Branches
Unknown
Tags
Unknown