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)
Mon, Nov 4, 11:29 AM
Unknown Object (File)
Sun, Oct 27, 11:16 PM
Unknown Object (File)
Mon, Oct 21, 9:43 PM
Unknown Object (File)
Mon, Oct 21, 9:43 PM
Unknown Object (File)
Sat, Oct 19, 4:42 PM
Unknown Object (File)
Sat, Oct 19, 4:26 PM
Unknown Object (File)
Wed, Oct 16, 11:14 PM
Unknown Object (File)
Sun, Oct 13, 1:18 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