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

Support for webkit2gtk-4.1 #671

Open
ulm opened this issue Feb 9, 2023 · 8 comments
Open

Support for webkit2gtk-4.1 #671

ulm opened this issue Feb 9, 2023 · 8 comments

Comments

@ulm
Copy link

ulm commented Feb 9, 2023

Gentoo Linux is transitioning from webkit2gtk-4.0 to 4.1, see https://bugs.gentoo.org/893668.

Would it be possible to support webkit2gtk-4.1? IIUC there should be no API differences. However, 4.1 would require libsoup-3.0 (so issue #664 would have to be reconsidered).

@fnevgeny
Copy link
Member

fnevgeny commented Feb 9, 2023

I believe it should be possible to link against two libsoup API's simultaneously (provided the SONAME's are different, of course) - one (3.0) as the implicit dependence of webkit2gtk-4.1, and 2.4 as pdfpc's explicit dependence.

@ulm
Copy link
Author

ulm commented Feb 9, 2023

I believe it should be possible to link against two libsoup API's simultaneously (provided the SONAME's are different, of course) - one (3.0) as the implicit dependence of webkit2gtk-4.1, and 2.4 as pdfpc's explicit dependence.

I think that's not possible. pkgconfig for webkit2gtk-4.1 will include header files for libsoup-3.0 which will cause conflicts. Even if it was possible to work around this, libsoup-2.4 and 3.0 contain a runtime check and verify that both are not loaded into the same process:

(process:128960): libsoup-ERROR **: 09:15:12.394: libsoup3 symbols detected. Using libsoup2 and libsoup3 in the same process is not supported.

@fnevgeny
Copy link
Member

fnevgeny commented Feb 9, 2023

OK, thanks. I stand corrected.

@sanjayankur31
Copy link

Just noting that Fedora will also move to webkit2gtk-4.1 soon (in August once Fedora 39 branches). More information here:

https://fedoraproject.org/wiki/Changes/Remove_webkit2gtk-4.0_API_Version

@AndreasBilke
Copy link
Member

FTR: Debian Bookworm (will be released in june 2023) will also include webkit2gtk-4.1 (https://packages.debian.org/bookworm/libwebkit2gtk-4.1-0)

@fnevgeny
Copy link
Member

Strictly speaking, switching to webkit2gtk-4.1 is trivial as far as one doesn't need the REST functionality (i.e., accessing the libsoup3 API). So an immediate solution might be to compile with REST=OFF. In fact, I wonder how many users are there that use the functionality. Probably on the order of unity (including me) :).

@chenrui333
Copy link

👋 Any updates on the webkit2gtk-4.1 support? Thanks!

@chenrui333
Copy link

Checkin again. Thanks!

oreo639 added a commit to oreo639/void-packages that referenced this issue Feb 29, 2024
Build with libwebkit2gtk41

REST server functionality requires libsoup2, however libsoup2 cannot be loaded
int the same process as libsoup3.

One of the maintainers reccomended disabling REST and building presentation
notes with webkit2gtk-4.1, stating that as far as he knows, he is the only one
using the REST server functionality.

pdfpc/pdfpc#671
oreo639 added a commit to oreo639/void-packages that referenced this issue Feb 29, 2024
Build with libwebkit2gtk41

REST server functionality requires libsoup2, however libsoup2 cannot be loaded
in to the same process as libsoup3.

One of the maintainers reccomended disabling REST and building presentation
notes with webkit2gtk-4.1, stating that as far as he knows, he is the only one
using the REST server functionality.

pdfpc/pdfpc#671
oreo639 added a commit to void-linux/void-packages that referenced this issue Apr 9, 2024
Build with libwebkit2gtk41

REST server functionality requires libsoup2, however libsoup2 cannot be loaded
in to the same process as libsoup3.

One of the maintainers reccomended disabling REST and building presentation
notes with webkit2gtk-4.1, stating that as far as he knows, he is the only one
using the REST server functionality.

pdfpc/pdfpc#671
snwnde pushed a commit to snwnde/void-packages that referenced this issue Apr 18, 2024
Build with libwebkit2gtk41

REST server functionality requires libsoup2, however libsoup2 cannot be loaded
in to the same process as libsoup3.

One of the maintainers reccomended disabling REST and building presentation
notes with webkit2gtk-4.1, stating that as far as he knows, he is the only one
using the REST server functionality.

pdfpc/pdfpc#671
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

5 participants