Nixpkgs: macOS libSystem and other libraries haven't been updated since macOS Sierra

Created on 29 Apr 2020  路  4Comments  路  Source: NixOS/nixpkgs

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

  • system: "x86_64-darwin"
  • host os: Darwin 18.7.0, macOS 10.14.6
  • multi-user?: no
  • sandbox: no
  • version: nix-env (Nix) 2.3.4
  • channels(hauleth): "darwin, nixpkgs-20.09pre221814.10100a97c89"
  • nixpkgs: /Users/hauleth/.nix-defexpr/channels/nixpkgs
bug darwin

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

All 4 comments

Ok, 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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spacekitteh picture spacekitteh  路  3Comments

copumpkin picture copumpkin  路  3Comments

ayyess picture ayyess  路  3Comments

grahamc picture grahamc  路  3Comments

ob7 picture ob7  路  3Comments