Page MenuHomeFreeBSD

share/mk: Don't install only differing in case files on case insensitive fs
ClosedPublic

Authored by imp on Mar 13 2024, 8:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 20, 10:04 AM
Unknown Object (File)
Tue, Nov 19, 8:49 PM
Unknown Object (File)
Sun, Nov 17, 9:21 PM
Unknown Object (File)
Mon, Nov 11, 3:17 PM
Unknown Object (File)
Wed, Nov 6, 3:25 PM
Unknown Object (File)
Mon, Nov 4, 11:29 AM
Unknown Object (File)
Sun, Oct 27, 11:16 PM
Unknown Object (File)
Oct 21 2024, 9:43 PM
Subscribers

Details

Summary

MacOS has case insensitive filesystems by default. So trying to link
between foo.X and FOO.X causes an error of some sort since we unlink the
old foo file destroying the newly installed foo due to the insensitive
nature of the FS. Assume that this is true on darwin/macos, though it is
only try by default there.

Perhaps install should grow smarts to know when this is the case, though
that looked much trickier. There didn't seem to be a flag to check. This
would be better, imho, since we could still write the METALOG data
correctly (images created from these metalogs are imperfect due to this
relatively issue...).

Sponsored by: Netflix

Diff Detail

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