Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libtapi: 1000.10.8 -> 1100.0.11 #107262

Merged
merged 1 commit into from Dec 30, 2020
Merged

Conversation

midchildan
Copy link
Member

@midchildan midchildan commented Dec 20, 2020

Motivation for this change

From #106348:

This adds the tapi executable to the libtapi package. The tapi executable can be used to create TBD files, i.e. text-based stubs for macOS dynamic libraries.

The main use I have in mind for this is osxfuse (now macFUSE). The osxfuse library in nixpkgs is currently built from source, but this sadly isn't ideal because the library is closely tied to the osxfuse kernel extension which isn't packaged in nixpkgs. Replacing the current osxfuse library with a TBD would make FUSE packages work more reliably by making it link to the osxfuse library that matches its kernel counterpart.

I also did a quick check to see if I could use this copy of the tapi executable to generate darwin-stubs, but that unfortunately didn't seem to work out well. This version of tapi lacks support for "zippered" binaries (whatever that means), so it couldn't generate a TBD for libSystem.B.dylib.

Version 1100.0.11 supports zippered binaries, so it can generate stubs for macOS preinstalled libraries.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@nixos-discourse
Copy link

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/trying-to-get-ios-working/10991/2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants