-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
buildRustCrate: Add "-r" to cp to make it work under Mac OS #83488
Conversation
I am not sure this is right. This might fix the issue but it looks like it adds "trash" to We clearly do not want to have files (or directories) named |
I don't know. I experimented a bit with omitting |
DSYM files might make sense. They contain debugging symbols and might be useful for better stack traces. |
It's not really clear to me what the actual "error" is here. Packages in nixpkgs (should) run release builds and are striped by default. If you want this for debugging purposes, handling this with a debug output, similar to what |
Mhm, I can't really test anything regarding MacOS since I do not own a
single apple device. I guess we either use this or we keep it in a
broken state :/
Is there someone that could provide SSH access into a box for nixpkgs
development on Macs? Not looking for a paid service.
|
Disabling whatever causes the separate debug symbols to be created would be the best fix for now I think (I notice That said having proper support for debug info on darwin would be great, but that's probably a bit out of scope for this. |
Seems like just moving it works so adding a setup-hook similar to https://gist.github.com/LnL7/506e719a5fa339520877acecd4fe3a9f |
e8c8bcb
to
4e4490d
Compare
bc316ea
to
7e4353a
Compare
@@ -94,6 +94,44 @@ let | |||
'' | |||
); | |||
|
|||
assertOutputs = { name, crateArgs, expectedFiles, output? null }: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should start adding some "docstring"-like comments to these function (as we do in crate2nix). During the discussion of #83379 I was told that currently it isn't really obvious how they work. I intend to refactor the test runner once all the current PRs have been merged and things have settled down.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am all for docs! I added some (push still outstanding).
69ccaa7
to
6ddf45e
Compare
I tried to do that but it didn't work for me. E.g. on Mac OS I found out that the dSYM files are only generated if |
6ddf45e
to
cbadb1a
Compare
And I am getting an unrelated error on Mac OS (I was quite confused because I first thought that it was introduced by my changes): https://gist.github.com/kolloch/311487d7b960f4a79f57c13926635cb7 |
When I revert the two linkorder PRs, it works:
(Which is kind of a noop because I also delete the relevant test) |
cbadb1a
to
43692b2
Compare
Sorry for that. I fixed those and opened a PR for review: #83616 |
No worries, @andir! "Wo gehobelt wird, da Fallen Spaene." Back to this PR. Given
I think that the PR is in reasonable shape now. If you have any actionable feedback, let me now. |
...and remove superfluous dependency files (*.d). ...and copy dSYM directories on Mac OS when in release=false mode.
43692b2
to
782b304
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on Linux & MacOS.
MacOS did pass after I rebased this onto master. 👍
Thank you for fixing this.
Currently broken due to the .dSYM folders it generates next to the binaries. See NixOS/nixpkgs#83488
Motivation for this change
This fixes errors such as these on Mac OS:
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)