-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
chromium: fix cross compilation #299031
chromium: fix cross compilation #299031
Conversation
4962810
to
523b005
Compare
Can you please share details about this? Your PR description is empty, and your commit message only reads Cross-compilation puts lots of additional strain on chromium, a derivation that is already in a rough shape and heavily struggling to keep up at all. How did you test your change? |
Updated. Let me know if you need more information. I currently didn't test any other derivations because it seems unlikely to me that adding depsDepsBuild inputs will change anything about them. Let me know if you want to test something in particular, I have enough build resources for that. |
@emilylange this should fix #292346 and #292364 |
According NixOS/nixpkgs#299031 and https://github.com/NixOS/nixpkgs/compare/master...Mic92:chromium-fix?expand=1 (actually a overlayed changes from latter one) Is also contain flag, producing excessive debug logs, in case of future problems
According NixOS/nixpkgs#299031 and https://github.com/NixOS/nixpkgs/compare/master...Mic92:chromium-fix?expand=1 (actually a overlayed changes from latter one) Is also contain flag, producing excessive debug logs, in case of future problems
According NixOS/nixpkgs#299031 and https://github.com/NixOS/nixpkgs/compare/master...Mic92:chromium-fix?expand=1 (actually a overlayed changes from latter one) Is also contain flag, producing excessive debug logs, in case of future problems
According NixOS/nixpkgs#299031 and https://github.com/NixOS/nixpkgs/compare/master...Mic92:chromium-fix?expand=1 (actually a overlayed changes from latter one) Is also contain flag, producing excessive debug logs, in case of future problems Signed-off-by: Alexander Nikolaev <alexander.nikolaev@unikie.com>
I don't see how c4492425adabbe8e75515753590baf1bf51766ca is needed since #298515 has been merged to Additionally, from what I know, Amjoseph, who is responsible for most of the cross-compilation work in chromium, added I am fine with the cross-compilation fix for chromium (and by proxy electron) itself. Would you mind dropping your Thanks. |
According NixOS/nixpkgs#299031 and https://github.com/NixOS/nixpkgs/compare/master...Mic92:chromium-fix?expand=1 (actually a overlayed changes from latter one) Is also contain flag, producing excessive debug logs, in case of future problems Signed-off-by: Alexander Nikolaev <alexander.nikolaev@unikie.com>
xdg-utils was used in the chromium shell wrapper. It's not used in the chromium build itself. I can check if #298515 fixes the issue. |
There should be enough engineering capacity in the ghaf project to also ensure in future that cross-compilation will continue to work for chromium. |
Ah, so my information was outdated. That's good to know.
Would be cool if you could report back when you find some time and compute for this :)
What is the /graf project/ you are referring to? |
Ghaf is something like QubesOS but using NixOS and KVM-based virtualisation: https://tiiuae.github.io/ghaf/ |
My xdg-utils fix is no longer needed. Still waiting for the chromium build to finish. |
However now I found a mesa regression that is new... |
Chromium builds again. Finished from my side. |
@@ -123,6 +123,12 @@ buildPythonPackage rec { | |||
"test_partialfunction" | |||
]; | |||
|
|||
disabledTestPaths = [ |
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.
Also, is there a reason why you used disabledTestPaths
instead of disabledTests
?
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.
There are multiple tests that all break occasionally, listing them manually will possible add regressions in the future because they don't seem to always break.
- Tested with native compilation on x86_64-linux and cross-compilation to aarch64-linux - Before this change we injected cross-compiled libraries into depsDepsBuild inputs. This happens because we override the libpng and libopus package mess with splicing.
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.
Thanks
fixed in upstream NixOS/nixpkgs#299031 NixOS/nixpkgs#308196 Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
fixed in upstream NixOS/nixpkgs#299031 NixOS/nixpkgs#308196 Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
Description of changes
This happens because we override the libpng and libopus package mess
with splicing.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.