[MacPorts] #60121: git-lfs @2.10.0 build cannot find <sys/clonefile.h> on macOS 10.11
MacPorts
noreply at macports.org
Fri Mar 21 23:56:44 UTC 2025
#60121: git-lfs @2.10.0 build cannot find <sys/clonefile.h> on macOS 10.11
------------------------+-----------------------
Reporter: snowflake | Owner: raimue
Type: defect | Status: closed
Priority: Normal | Milestone:
Component: ports | Version: 2.6.99
Resolution: fixed | Keywords: legacy-os
Port: git-lfs |
------------------------+-----------------------
Comment (by RJVB):
Replying to [comment:3 kencu]:
> Adding the function to legacysupport doesn't seem possible as it is an
apsf-specific feature, but it's conceivable a non-destructive similar
replacement might be found, like using copyfile instead perhaps.
Reviving an old ticket, but I've been thinking about this very question.
Any decent code will not assume that the clonefile() function family can
work because even on 10.12+ where the functions exist one can still use
non-APFS filesystems. Systems that don't have the functions (10.11 and
earlier) cannot use APFS.
So, ''as far as I can tell'', all `legacy-support` would have to do is to
provide shims (for 10.11 and earlier) that return an error and set error
to ENOSUP (IIRC).
--
Ticket URL: <https://trac.macports.org/ticket/60121#comment:8>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list