Describe the bug
libSystem used to build packages is highly outdated.
To Reproduce
Build any package that is trying to call futimens function on macOS, for example Zig 0.6.
Expected behavior
Such package should build.
Additional context
Apple published code for libraries for macOS up to 10.15.1 - https://opensource.apple.com
Notify maintainers
There is no meta.maintainers but @volth was last one that touched that file.
Metadata
"x86_64-darwin"Darwin 18.7.0, macOS 10.14.6nononix-env (Nix) 2.3.4"darwin, nixpkgs-20.09pre221814.10100a97c89"/Users/hauleth/.nix-defexpr/channels/nixpkgsOk, found maintainers - @copumpkin @gridaphobe
We are intentionally behind on the base system libraries so that systems not on Catalina still work. This is the equivalent of setting MACOSX_DEPLOYMENT_TARGET=10.12 in XCode.
I would consider this partly a bug in Zig or other software - they should be able to provide a fallback if futimens or other symbols don't exist.
We might be able to update libSystem to macOS High Sierra (10.13), though. It's possible that futimens is included there. It looks like only about 5% of users are still on macOS Sierra:
https://gs.statcounter.com/macos-version-market-share/desktop/worldwide
I just ran into this too鈥攗pgrading libSystem to High Sierra would seem to fix this.
Most helpful comment
We are intentionally behind on the base system libraries so that systems not on Catalina still work. This is the equivalent of setting MACOSX_DEPLOYMENT_TARGET=10.12 in XCode.
I would consider this partly a bug in Zig or other software - they should be able to provide a fallback if futimens or other symbols don't exist.
We might be able to update libSystem to macOS High Sierra (10.13), though. It's possible that futimens is included there. It looks like only about 5% of users are still on macOS Sierra:
https://gs.statcounter.com/macos-version-market-share/desktop/worldwide