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
gcj: fix build on Darwin #54578
gcj: fix build on Darwin #54578
Conversation
Awesome work! |
pkgs/top-level/all-packages.nix
Outdated
@@ -7012,7 +7012,9 @@ in | |||
profiledCompiler = false; | |||
inherit zip unzip zlib boehmgc gettext pkgconfig perl; | |||
inherit (gnome2) libart_lgpl; | |||
}); | |||
}).overrideAttrs (oldAttrs: { | |||
strictDeps = stdenv.isDarwin; |
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.
IIRC gcc has strictDeps=true alread?
/cc @Ericson2314
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.
If it does, it didn't in November when I first authored this commit. Although this should definitely be oldAttrs.strictDeps or stdenv.isDarwin
.
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.
You were right! We didn't need this, so I've dropped this change.
Partially addresses NixOS#29715.
int_out=$(install_name_tool -id "$fn" "${flags[@]}" "$fn" 2>&1) | ||
result=$? | ||
if [ "$result" -ne 0 ] && | ||
! grep "shared library stub file and can't be changed" <<< "$out" |
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.
Is there a way to filter out these cases instead of ignoring potential other problems?
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.
My research at the time suggested that checking the output of install_name_tool was by far the simplest way to do it. I don’t think this would really ignore any other problems, since it’s quite specific.
Motivation for this change
Partially addresses #29715.
Part of #54573.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)