-
Notifications
You must be signed in to change notification settings - Fork 36
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
Install loadable backend modules to a separate directory #59
Comments
Not sure if I should have filed this against the FDO backend, although a solution could potentially affect libwpe as well.
|
This will need changes in libwpe as well, and that's why I suggested to file the bug here. I think that the solution outlined in our chat earlier today would work. Fleshing it out a bit more in detail, it would be something like this:
This only needs internal changes in libwpe and minor changes the build system for the backends. Applications do not need any code changes, only a rebuild. @zdobersek WDYT? |
We accidentally pushed out a bad update to Fedora stable users due to this bug. :/ |
Ah sorry, it actually was still in testing... we caught it in time. :) |
Any plans to work on this? In retrospect, had we caught this during original package review, it would have been a failed review. Too late now.... |
I'll try to get it done for 1.6.x 👨🏭 |
Make the backend loader search for implementations in the <libdir>/wpe-<apiversion> directory (typically /usr/lib/wpe-1.0) when a relative path is passed to wpe_loader_init(). Fixes #59
As discussed in a chat with @zdobersek: we are a bit late in the development cycle for 1.6 and while this seems safe to do we are wary that it might break backends and/or applications in subtle ways, so let's have 1.8 as target and merge the changes to |
I'm looking at SUSE's patch for this bug:
which is... honestly, more elegant than installing an unversioned .so. I think I prefer that solution. But it begs the question: why not just link WebKitGTK directly to wpebackend-fdo? Then the problem disappears, and there is no need to install any unversioned .so. Obviously WPE port can't do this, but WPE port is not attempting to dlopen a hardcoded .so anyway, so doesn't matter. |
Make the backend loader search for implementations in the <libdir>/wpe-<apiversion> directory (typically /usr/lib/wpe-1.0) when a relative path is passed to wpe_loader_init(). Fixes #59
Changed target to 0.10.x, we are late in the development cycle to introduce a change such as this. |
How about that? |
I'm moving libWPEBackend-fdo.so-1.0.so back to the -devel package in Fedora, and adding Mike's patch to our WebKitGTK package:
That should suffice until we have an upstream solution. Still seems like a good upstream solution would be to link directly to WPEBackend-fdo as dlopening doesn't make a ton of sense when WebKitGTK only supports a single choice of backend.... |
WebKitGTK is already being linked directly to WPEBackend-fdo because it uses its exportable interface API. See:
It turns out that it's not that easy and we still need to initialize |
OK.
Anyway, we missed the train on 1.8, which is branched now. Ready for master? |
BTW we wound up doing this, which solved the immediate problem here. Moving things to a separate directory would still be good to do, of course, but the status quo is not broken at least. |
That patch only applies the behavior to GTK, this is still broken for WPE... |
The affected code was GTK-specific (guarded by I would create a new issue report for the problem you're encountering. |
Should I create that under the cog repo, here, or under bugs.webkit.org? |
Sorry I missed this. I don't know, but the cog repo is a safe place to start. |
Filing after some discussion on IRC.
We rely on libWPEBackend-fdo.so-1.0.so being installed in the standard library directory, but distros typically don't install unversioned .so files in the standard library directory except in -devel packages. We should consider moving the plugin to its own directory.
The text was updated successfully, but these errors were encountered: