Skip to content

libtapi: 1000.10.8 -> 1100.0.11#107262

Merged
matthewbauer merged 1 commit intoNixOS:stagingfrom
midchildan:update/libtapi
Dec 30, 2020
Merged

libtapi: 1000.10.8 -> 1100.0.11#107262
matthewbauer merged 1 commit intoNixOS:stagingfrom
midchildan:update/libtapi

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.

@ofborg ofborg bot added the 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. label Dec 20, 2020
@ofborg ofborg bot requested a review from matthewbauer December 20, 2020 16:08
@ofborg ofborg bot added 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Dec 20, 2020
@matthewbauer matthewbauer merged commit 90a8f69 into NixOS:staging Dec 30, 2020
@midchildan midchildan deleted the update/libtapi branch December 31, 2020 08:58
@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

Labels

10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants