-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
init libdmg-hfsplus, use instead of xpwn to fix Linux xcode extraction #34503
init libdmg-hfsplus, use instead of xpwn to fix Linux xcode extraction #34503
Conversation
Using this fork to fix extraction on Linux.
* xpwn is primarily about ...xpwn. Understandable :). * libdmg-hfsplus focuses on dmg, hfs, hdutil tools * Generally same authors, at least in terms of "upstream". The tools are the same, just nothing else included. Motivation for this is to allow unpacking xcode on Linux, instead of the current behavior of crashing. There are multiple forks of this but this is the only one that works successfully on Linux. Also, specify tools as nativeBuildInputs.
If this doesn't work out, you should also try |
Okay, thanks! Do you know if it preserves permissions + symlinks? p7zip can extract but loses permissions :(. |
I believe so but it's been a while since I've looked through it. It's based on the XPWN sources though (simplified though to make it like unzip) so it should be fairly close to the same behavior. |
I mistakenly believed these were part of Darwin stdenv, but that appears to not be the case. Phew :). Hmm I suppose I can't ask Borg to test extraction on Darwin since it'll need the xcode dmg (non-free, and must be manually acquired). Boo. :) |
@GrahamcOfBorg build libdmg-hfsplus |
Success on x86_64-darwin (full log) Partial log (click to expand)
|
Success on x86_64-linux (full log) Partial log (click to expand)
|
Success on aarch64-linux (full log) Partial log (click to expand)
|
So much success! :) |
Would it make sense to bump xcode version, as part of #37403? (perhaps as a follow-up, but along with?) |
I'm having more difficulties than expected with that. We ended up having to modify "stdenv" via an update to Libsystem. Since Xcode is part of the old "impure" Apple stuff, it can probably be updated separately. |
Does this seem useful still, or should it be retired? |
Think we have our answer :). Can revive if seems useful in the future! |
See commit messages.
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)TODO: