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

qtwebkit: fix path for libgdk-x11-2.0, it's in gtk2 apparently #60420

Merged

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Apr 29, 2019

Motivation for this change

This seems like it would cause breakage as-is, but was looking
for libgdk-x11-2.0 for something else and noticed that it apparently
is not from gdk_pixbuf but from gtk2?

Not sure if this changed for some reason, but seems strange
to bake into the library a path to a file that doesn't exist o:).

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 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)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@@ -20,7 +20,7 @@ index 2fe69d1..b658e4a 100644
// The code below has the same effect as this one:
// Display *gdkDisplay = gdk_x11_display_get_xdisplay(gdk_display_get_default());
- QLibrary library(QLatin1String("libgdk-x11-2.0"), 0);
+ QLibrary library(QLatin1String("@gdk_pixbuf@/lib/libgdk-x11-2.0"), 0);
+ QLibrary library(QLatin1String("@gtk@/lib/libgdk-x11-2.0"), 0);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should remove

gdk_pixbuf = gdk_pixbuf.out;

@jtojnar
Copy link
Contributor

jtojnar commented Apr 29, 2019

The same issue seems to have been there from the time Qt 5 was added,

https://github.com/NixOS/nixpkgs/pull/1082/files#diff-985f9487cb048c1700c2b1383412c7f6R21

It was probably taken from Qt 4. Most likely, whoever did the Qt packaging is not very familiar with GLib ecosystem and confused gdk (which has always been part of gtk) with gdk-pixbuf.

Maybe even better would be removing the NSplugin support from qtwebkit, allowing us to drop the gtk2 dependency. And we should do the same in webkitgtk – we disabled it by default a while ago.

@dtzWill
Copy link
Member Author

dtzWill commented Apr 30, 2019 via email

@jtojnar
Copy link
Contributor

jtojnar commented Apr 30, 2019

but am unsure which bits you meant to have disabled.

I meant removing all the bits conditional on enableGtk2Plugins being true, and making the bits conditional on enableGtk2Plugins being false always available.

For QtWebkit, I would assume it has a similar flag for not building plug-in support.

No worries if you don't have time :)

Not at the moment. But there is no hurry.

Copy link
Contributor

@worldofpeace worldofpeace left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can always open an issue to resolve that at some point 👍

@worldofpeace worldofpeace merged commit bcc56cb into NixOS:master May 19, 2019
@dtzWill dtzWill deleted the fix/qtwebkit-libgdk-from-gtk-apparently branch May 19, 2019 05:13
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