Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 522308

Summary: Eclipse links against wrong webkit library
Product: [Eclipse Project] Platform Reporter: Daniel Wille <dwille>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: lufimtse
Version: 4.7   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Daniel Wille CLA 2017-09-14 10:41:26 EDT
I just upgraded my workstation to CentOS 7.4, and I've observed Eclipse Oxygen linking against an older SWT library. The following are the WebKitGTK libraries provided on CentOS 7.4, from newest first to oldest last:

/usr/lib64/libwebkit2gtk-4.0.so.37 -> libwebkit2gtk-4.0.so.37.14.14
/usr/lib64/libwebkit2gtk-4.0.so.37.14.14

/usr/lib64/libwebkitgtk-3.0.so.0 -> libwebkitgtk-3.0.so.0.22.17
/usr/lib64/libwebkitgtk-3.0.so.0.22.17

/usr/lib64/libwebkitgtk-1.0.so.0 -> libwebkitgtk-1.0.so.0.22.15
/usr/lib64/libwebkitgtk-1.0.so.0.22.15

The "-1.0" is a super-old version of WebKitGTK, followed by the "-3.0" which is WebKitGTK 2.4. The newest available version is the "-4.0" library, which is WebKitGTK 2.14.

Eclipse is linking against the "-3.0" if it's installed. If I uninstall the "-3.0", Eclipse will link against the "-4.0". Could the behavior be changed so that the "-4.0" is preferred to the "-3.0"?
Comment 1 Leo Ufimtsev CLA 2017-09-15 18:06:50 EDT
Very interesting that you noticed this.

-4 is basically webkit2 with gtk3 bindings, -3 is webkit1 with gtk3 bindings.

Currently the webkit2 port is in progress:
Bug 516838 – [GTK3][webkit] Port SWT Browser to webkit2gtk (4.8) 
https://bugs.eclipse.org/bugs/show_bug.cgi?id=516838

There are a few more tasks left to work on, and then it will be set to be used as default.

In the meantime, you can force eclipse to use webkit2 via:
export SWT_WEBKIT2=1
eclipse

Let me know if you have any questions.

*** This bug has been marked as a duplicate of bug 516838 ***