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

gtk3: fix build on 32-bit ARM #74879

Merged
merged 1 commit into from Dec 8, 2019
Merged

Conversation

lopsided98
Copy link
Contributor

@lopsided98 lopsided98 commented Dec 3, 2019

Motivation for this change

Mesa recently stopped installing EGL/eglplatform.h because it is provided by libglvnd. epoxy's headers includes eglplatform.h, and epoxy is in turn required by gtk3. This caused the build of gtk3 to fail on armv7l. The reason it didn't fail on other platforms is that libGL (which propagates libglvnd) is normally propagated by cairo. Back in 2013, GL support was disabled in cairo on 32-bit ARM because apparently mesa didn't build. This is no longer the case, so this PR re-enables GL support in cairo on ARM and MIPS. I don't have a way to test MIPS, and I'm not even sure anyone tests it anymore.

This PR does not fix the root cause of the problem, which is that epoxy.dev should propagate libGL.dev (or maybe libglvnd.dev), but I'll leave that to others if they want to tackle it.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • 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 nix-review --run "nix-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)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

gtk3: @7c6f434c @vcunat @lethalman @worldofpeace
epoxy: @cillianderoiste
cairo: nobody...

Mesa works fine on ARM now and this can result in obscure ARM specific bugs.
@worldofpeace
Copy link
Contributor

cc @jtojnar

@7c6f434c 7c6f434c merged commit 76c867a into NixOS:master Dec 8, 2019
@lopsided98 lopsided98 deleted the gtk3-armv7l branch December 10, 2019 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants