Repository navigation
gimp: fix build on aarch64-darwin - #193680
Conversation
a2fa5e0 to
1bbe0df
Compare
1bbe0df to
5b16621
Compare
|
Note that gimp does not currently build on aarch64-linux, see #185997. |
There was a problem hiding this comment.
I'm not sure how others will feel about completely disabling the scandir tests on aarch64-darwin, but I avoided this approach when I worked around the problem in resholve because it isn't clear to me why they're failing and whether it indicates a "real" problem that needs fixing on aarch64-darwin.
I'll see if maybe someone in the Nix on macOS channel in matrix can poke at this.
Edit: not trying to roadblock the PR--this would probably be better than doing nothing.
5b16621 to
3192dc4
Compare
3192dc4 to
b3d6330
Compare
|
@wegank Did you happen to note what the dependency chain is for bringing scandir into gimp? @stephank took a closer look at this and his comment in the issue makes me think that this could cause real misbehavior if it's used at runtime, but that disabling the tests globally is probably fine if it's only a test dependency itself. I'm working on researching this out for mongodb (which is what I saw as the other main thing depending on scandir that isn't coming in through gimp, a gimp plugin, resholve, or a resholved package). This has been a real PITA, but it seems like it's transiting in through the dependency on I'll have to keep pulling after dinner... |
b3d6330 to
b4f3534
Compare
|
@abathur I added a patch that fixes scandir on darwin, following #156807 (comment) (yes, exactly the same comment). This should ensure that no misbehavior would occur at runtime. |
27e5c06 to
678e314
Compare
|
I'm guessing from your force-push that we saw the same failure on x86_64 (the same basic test failures from the issue). I came here to link a commit updating the patch, but I think I like selectively applying it as in your most-recent push. :) Edit: hah. Recent push is roughly what I had, though I used |
678e314 to
ea3a45f
Compare
Oh, I've just pushed another commit to fix the failure in the first force-push :-) |
ea3a45f to
34df1d2
Compare
abathur
left a comment
There was a problem hiding this comment.
Since it seemed to conflict with what he thought initially, I asked @stephank if this approach looked fine and he said:
I think so, yes. I think you can enable 64-bit inodes on x86_64 through defines, but I guess those are the defines that Python itself was compiled with, and apparently our build doesn't set them. So I think just checking for arm64 is fine.
I've confirmed that resholve builds and resholve.tests run clean on x86_64-darwin. With the caveat that I can't personally check on aarch64-darwin, this looks good from my perspective. Thanks for pulling at this.
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
SuperSandro2000
left a comment
There was a problem hiding this comment.
Also this should be multiple commits for each package
There was a problem hiding this comment.
This should be postPatch
There was a problem hiding this comment.
Please make the patch unconditional
There was a problem hiding this comment.
Also without lib.optionals stdenv.isDarwin?
There was a problem hiding this comment.
Yes, otherwise it bitrots overtime because python-updates are mostly not tested to much on darwin.
34df1d2 to
7994937
Compare
|
@ofborg build gimp |
Description of changes
Closes #156807.
Things done
sandbox = trueset innix.conf? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)nixos/doc/manual/md-to-db.shto update generated release notes