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

pkgsCross.hostPlatform.bash fails to build if buildPlatform.config==hostPlatform.config but buildPlatform!=hostPlatform #264989

Open
ghost opened this issue Nov 2, 2023 · 1 comment
Labels
0.kind: bug Something is broken 6.topic: cross-compilation Building packages on a different platform than they will be used on

Comments

@ghost
Copy link

ghost commented Nov 2, 2023

We have a longstanding bug (probably more than one of them) where packages don't build properly if the buildPlatform and hostPlatform are not equal, but yet have equal .config attributes.

The equality test for platforms was made more forgiving by

but this merely concealed the problem.

@ghost ghost added the 0.kind: bug Something is broken label Nov 2, 2023
@ghost
Copy link
Author

ghost commented Nov 2, 2023

@FliegendeWurst FliegendeWurst added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label Nov 2, 2023
@ghost ghost linked a pull request Nov 3, 2023 that will close this issue
13 tasks
ghost pushed a commit that referenced this issue Nov 4, 2023
We have several cross-compilation bugs that show up if
hostPlatform!=buildPlatform yet
hostPlatform.config==buildPlatform.config.

These bugs have appeared and disappeared as we've fiddled with the
definition of equality for platform objects.  This commit adds a
clear-cut case where they are *not* equal and never will be, so we
can test it.
nyabinary pushed a commit to nyabinary/nixpkgs that referenced this issue Nov 14, 2023
We have several cross-compilation bugs that show up if
hostPlatform!=buildPlatform yet
hostPlatform.config==buildPlatform.config.

These bugs have appeared and disappeared as we've fiddled with the
definition of equality for platform objects.  This commit adds a
clear-cut case where they are *not* equal and never will be, so we
can test it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: cross-compilation Building packages on a different platform than they will be used on
Projects
None yet
Development

No branches or pull requests

1 participant