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

openmpi: fix build on darwin #332983

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkgs/development/libraries/openmpi/default.nix
Original file line number Diff line number Diff line change
@@ -193,7 +193,7 @@ stdenv.mkDerivation (finalAttrs: {
];
part2 = builtins.attrNames wrapperDataSubstitutions;
};
in
in lib.optionalString stdenv.isLinux
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd prefer to only condition the substitution and not all of the postInstall... We might enable multiple outputs in the future for other platforms, and you'd still want to delete all *.la files...

Copy link
Member Author

Choose a reason for hiding this comment

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

Then we need extra condition for the split output moves too. If we want to enable multiple outputs in the future for other platforms we can make it more granular later? I do not know what darwin does with .la files. I know that they are not needed on Linux.

Copy link
Contributor

Choose a reason for hiding this comment

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

Then we need extra condition for the split output moves too.

No you won't. That was the purpose of 2a4636b .

If we want to enable multiple outputs in the future for other platforms we can make it more granular later?

The diff will be much smaller thanks to 2a4636b .

I do not know what darwin does with .la files. I know that they are not needed on Linux.

Yea that line was peculiar to me so I didn't touch it.. I suspect they might be generated on Darwin as well, so I wouldn't touch it even now. For sure it doesn't hurt if these files are not found at all.

''
find $out/lib/ -name "*.la" -exec rm -f \{} \;

Loading