Skip to content

glfw: hardwire path to libGL.so.1 - #47175

Merged
Mic92 merged 1 commit into
NixOS:masterfrom
avnik:fix/glfw
Nov 17, 2018
Merged

Mic92 merged 1 commit into
NixOS:masterfrom
avnik:fix/glfw

Conversation

@avnik

@avnik avnik commented Sep 22, 2018

Copy link
Copy Markdown
Contributor
Motivation for this change

glfw use direct path to dlopen'ing libGL, so let hardwire path to libGL.so.1 (aka libglvnd).
Fix #46423. Possible that glfw-2.x package need a similiar fix.

/cc @samueldr (possible this commit is candidate to release-18.09 branch)

PS I also update epoxy as part of work on #46423, which is subject of own PR

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

@GrahamcOfBorg GrahamcOfBorg added 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. labels Sep 22, 2018
@avnik

avnik commented Sep 22, 2018

Copy link
Copy Markdown
Contributor Author

Looks, like it need to be fixed once more, and apply libGL hardwiring on non-darwin only.

@avnik

avnik commented Sep 22, 2018

Copy link
Copy Markdown
Contributor Author

Well, disregarding my last comment, it already have related !isDarwin, but invalidate some darwin packages anyway, look like ofBorg issue. /cc @grahamc

@samueldr

samueldr commented Sep 23, 2018 •

Copy link
Copy Markdown
Member

Hi!

lib.optional, when false, will still change the environment when adding a new attribute. That is because lib.optionla returns an empty list. This sets preConfigure to [], which in turn, in bash, will be preConfigure=. The glfw derivation did change for macOS, though largely a no-op.


As far as backporting to 18.09, I'm all for, assuming this is the right fix for the issue. Ping me for the backport after someone else with the OpenGL infrastructure knowledge has approved (and possibly merged) this PR. I'm not sure I know how to verify the validity of the change.

@Mic92

Mic92 commented Sep 24, 2018

Copy link
Copy Markdown
Member

maybe @lheckemann

@dtzWill

dtzWill commented Sep 29, 2018

Copy link
Copy Markdown
Member

Ping? Ran into it testing the zig 0.3 update (although it happens regardless of zig version I believe).

@andrewrk

Copy link
Copy Markdown
Member

Who or what is this blocking on?

@andrewrk

Copy link
Copy Markdown
Member

I confirm this fixes #46423 for me.

@Mic92
Mic92 merged commit 40449fe into NixOS:master Nov 17, 2018
@Mic92

Mic92 commented Nov 17, 2018

Copy link
Copy Markdown
Member

backport: 894a999

@andrewrk

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

glfw broken after move to libglvnd for opengl

6 participants