]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
freebsd-update: handle file -> directory on upgrade
authorEd Maste <emaste@FreeBSD.org>
Wed, 27 Sep 2023 13:36:33 +0000 (09:36 -0400)
committerGordon Tetlow <gordon@FreeBSD.org>
Tue, 3 Oct 2023 21:22:19 +0000 (14:22 -0700)
commitcfb624d7e2507c81441bb01e0078abad25ef235d
tree24635f1a6f4bd2c517c084710c7e1220a6f86a13
parenta1c915cc75c1b3c66e16bb52579e2abdf122eccb
freebsd-update: handle file -> directory on upgrade

Upgrading from FreeBSD 13.2 to 14.0 failed with
  install: ///usr/include/c++/v1/__string exists but is not a directory
because __string changed from a file to a directory with an LLVM
upgrade.

Now, remove the existing file when the type conflicts.  Note that this
is only an interim fix to facilitate upgrades from 13.2 for 14.0 BETA
testing.  This change does not handle the directory -> file case and
further work is needed.

PR: 273661
Reviewed by: dim, gordon
Approved by: so
Security: FreeBSD-EN-23:12.freebsd-update
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41893

(cherry picked from commit f6d37c9ca13f8ab0ef32cf5344daecb8122d1e85)
(cherry picked from commit 774cc6348a50c13b952e9f36ef8395f9b48733db)
usr.sbin/freebsd-update/freebsd-update.sh