Summary: | [EBUILD] dev-java/swt-3.7.1 version bump | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Matt Whitlock <gentoo> |
Component: | [OLD] Java | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | b.brachaczek, battle.jerboa, djcozatt, dschridde+gentoobugs, flow, g2t, gabriel.misailidis, leho, manschwetus, n-roeser |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 325271 | ||
Attachments: |
3.6.2 as a manipulated 3.6.1 ebuild
dev-java/swt-3.7-r1 with 'webkit' USE flag |
Description
Matt Whitlock
2011-03-14 01:59:41 UTC
is it possible to build this against xulrunner-2.*? Created attachment 267275 [details]
3.6.2 as a manipulated 3.6.1 ebuild
https://bugs.eclipse.org/bugs/show_bug.cgi?id=340998 this would indicate that xulrunner is not supported with swt-3.6.x and eclipse-3.6.x and the USE flag should be removed and replaced with webkit-gtk. Looks like an RDEPEND but I have not enough experience to say. (In reply to comment #3) > https://bugs.eclipse.org/bugs/show_bug.cgi?id=340998 > > this would indicate that xulrunner is not supported with swt-3.6.x and > eclipse-3.6.x and the USE flag should be removed and replaced with webkit-gtk. > Looks like an RDEPEND but I have not enough experience to say. Does SWT support webkit-gtk yet? Last I heard, XULRunner 2 no longer supports Java (so SWT can't link against it) and SWT doesn't support Webkit-Gtk, so we're stuck on XULRunner 1. http://stackoverflow.com/questions/5817263/how-to-get-eclipse-swt-browser-component-running-on-ubuntu-11-04-natty-narwhal That link suggests it is indeed possible. <quote> Check the version of libwebkit-1.0-2 (it should be >= 1.2.0) Install this package if absent Check that /usr/lib and /usr/lib/jni is in java.library.path If you use SWT 3.6, also check that appropriate webkit jni wrapper is installed (e.g. libswt-webkit-gtk-3.6-jni and org.eclipse.swt.browser.UseWebKitGTK system property is set to `True </quote> also http://www.eclipse.org/swt/jnigen.php From a quick parse I'm not entirely sure it might not be easier from within eclipse though. Failed to succeed with org.eclipse.swt.browser.UseWebKitGTK property, I've managed to force eclipse-sdk-3.6.2 to use webkit-gtk with this nasty patch: --- plugins/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/Browser.java~ 2010-05-31 20:44:17.000000000 +0400 +++ plugins/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/Browser.java 2011-05-11 15:47:16.000000000 +0400 @@ -94,12 +94,7 @@ } else if ("motif".equals (platform)) { //$NON-NLS-1$ classNames = new String[] {"org.eclipse.swt.browser.Mozilla"}; //$NON-NLS-1$ } else if ("gtk".equals (platform)) { //$NON-NLS-1$ - String property = System.getProperty (PROPERTY_USEWEBKITGTK); - if (property != null && property.equalsIgnoreCase ("true")) { //$NON-NLS-1$ - classNames = new String[] {"org.eclipse.swt.browser.WebKit", "org.eclipse.swt.browser.Mozilla"}; //$NON-NLS-1$ //$NON-NLS-2$ - } else { - classNames = new String[] {"org.eclipse.swt.browser.Mozilla"}; //$NON-NLS-1$ - } + classNames = new String[] {"org.eclipse.swt.browser.WebKit", "org.eclipse.swt.browser.Mozilla"}; //$NON-NLS-1$ //$NON-NLS-2$ } else if ("carbon".equals (platform) || "cocoa".equals (platform)) { //$NON-NLS-1$ classNames = new String[] {"org.eclipse.swt.browser.Safari"}; //$NON-NLS-1$ } else if ("photon".equals (platform)) { //$NON-NLS-1$ Created attachment 280521 [details]
dev-java/swt-3.7-r1 with 'webkit' USE flag
Bumped to 3.7.1. Now we should migrate all reverse dependencies to it, as older versions depend on obsolete xulrunner version. |