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

darwin.hfs: remove from Libsystem and mark broken #111468

Draft
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

holymonson
Copy link
Contributor

Motivation for this change

hfs was introduced in e6f7f29 (#47678), but it seems nobody will needs its pure headers. We drop it from Libsystem.
For those really need it, they should input hfs themselves.

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 6.topic: darwin Running or building packages on Darwin label Jan 31, 2021
@holymonson holymonson marked this pull request as draft January 31, 2021 13:28
@veprbl
Copy link
Member

veprbl commented Jan 31, 2021

@GrahamcOfBorg eval

hfs was introduced in e6f7f29 (NixOS#47678), but it seems nobody will needs its pure
headers. We drop it from Libsystem.
@veprbl
Copy link
Member

veprbl commented Feb 4, 2021

@matthewbauer Do you remember why we needed hfs headers?

Copy link
Member

@siraben siraben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, provided that it doesn't break any builds. But perhaps we haven't needed it because of a lack of darwin-only packages?

@matthewbauer
Copy link
Member

So I think hfs required at some point for some packages. I would bet Apple is not using them much internally any more. Regardless, it's not too hard to add it as an additional dependency where it is.

Copy link
Member

@veprbl veprbl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaks stdenv:

localauth_k5login.c:41:10: fatal error: 'hfs/hfs_mount.h' file not found
#include <hfs/hfs_mount.h>
         ^~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [Makefile:918: localauth_k5login.so] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory '/private/tmp/nix-build-libkrb5-1.18.drv-0/krb5-1.18/src/lib/krb5/os'
make[1]: *** [Makefile:1154: all-recurse] Error 1
make[1]: Leaving directory '/private/tmp/nix-build-libkrb5-1.18.drv-0/krb5-1.18/src/lib/krb5'
make: *** [Makefile:1004: all-recurse] Error 1
builder for '/nix/store/qqhkxy6c8n3a67cfqbivmx89p5pgh0hg-libkrb5-1.18.drv' failed with exit code 2

@stale
Copy link

stale bot commented Aug 5, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 5, 2021
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Aug 5, 2021
@stale
Copy link

stale bot commented Apr 19, 2022

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Apr 19, 2022
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label May 4, 2022
@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Nov 2, 2022
@wegank wegank marked this pull request as draft March 20, 2024 15:17
@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Mar 20, 2024
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

5 participants