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
xquartz: fix build #40407
xquartz: fix build #40407
Conversation
@GrahamcOfBorg build xorg.xorgserver |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: xorg.xorgserver Partial log (click to expand)
|
No attempt on x86_64-linux (full log) The following builds were skipped because they don't evaluate on x86_64-linux: xorg.xorgserver Partial log (click to expand)
|
Does this work as expected for you? I was a little concerned that there might still be some patches needed. |
pkgs/top-level/all-packages.nix
Outdated
cairo epoxy; | ||
inherit (buildPackages) pkgconfig xmlto asciidoc flex bison; | ||
inherit (darwin) apple_sdk cf-private libobjc; | ||
bootstrap_cmds = if stdenv.isDarwin then darwin.bootstrap_cmds else null; | ||
mesa = libGL; |
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.
looks like this is still needed somewhere (eval fail)
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.
I know and have a fix; I'm just looking at other things in the meantime.
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.
Yes i think abbradar’s commit is needed to cherrypick.
On 18.03 it doesn't even build. I don't have a Darwin, and that's why I created the PR to use the Borg. |
Things done: - use libGLU instead of mesa for darwin support - move patches from local to github url - fixup xquartz install There may still be some issues at runtime. PRs welcome! Fixes NixOS#40196 (cherry picked from commit c839771)
@matthewbauer if you (or someone else) can test this on 18.03, that would be great. Even if not and borg confirms it builds, I'd merge it. I'm confident non-Darwin platforms won't get broken. |
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: xquartz Partial log (click to expand)
|
No attempt on x86_64-linux (full log) The following builds were skipped because they don't evaluate on x86_64-linux: xquartz Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: xquartz Partial log (click to expand)
|
Success on x86_64-darwin (full log) Attempted: xorg.xorgserver Partial log (click to expand)
|
@vcunat can you check out this failure on Hydra: https://hydra.nixos.org/build/74047022 It might be caused by my commit, but I honestly have no idea what is going on there. It could be unrelated but I'm not sure if anyone else has been messing with xorg stuff. |
So, it looks like it has to do with the
BTW I find the @vcunat Are you able to take care of this? I am not on a Linux system right now so can't debug but the above change should work. I will be available tomorrow (UTC-5) though if no one has gotten to it yet. |
Yes, that failure gets fixed when I revert your commit. That's on master. Curiously, here in this PR the build does not get broken (I tested that yesterday). I'll try to fix master later today (in ~12h). |
For reference, the Linux problem on master should've been solved by #40438. |
Things done:
There may still be some issues at runtime. PRs welcome!
Fixes #40196
(cherry picked from commit c839771)
Motivation for this change
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)