Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 358773

Summary: [EBUILD] dev-java/swt-3.7.1 version bump
Product: Gentoo Linux Reporter: Matt Whitlock <gentoo>
Component: [OLD] JavaAssignee: 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
--- swt-3.6.1.ebuild    2010-10-02 14:26:03.401156280 +0000
+++ swt-3.6.2.ebuild    2011-03-14 00:46:19.810962001 +0000
@@ -7,7 +7,7 @@
 inherit eutils java-pkg-2 java-ant-2 toolchain-funcs java-osgi
 
 MY_PV="${PV/_rc/RC}"
-MY_DMF="download.eclipse.org/eclipse/downloads/drops/R-${MY_PV}-201009090800"
+MY_DMF="download.eclipse.org/eclipse/downloads/drops/R-${MY_PV}-201102101200"
 MY_P="${PN}-${MY_PV}"
 
 DESCRIPTION="GTK based SWT Library"
Comment 1 Leho Kraav (:macmaN @lkraav) 2011-03-22 15:59:09 UTC
is it possible to build this against xulrunner-2.*?
Comment 2 Thomas Kohler 2011-03-26 14:17:14 UTC
Created attachment 267275 [details]
3.6.2 as a manipulated 3.6.1 ebuild
Comment 3 David J Cozatt 2011-07-17 04:05:13 UTC
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.
Comment 4 Matt Whitlock 2011-07-17 04:41:51 UTC
(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.
Comment 5 David J Cozatt 2011-07-19 02:13:23 UTC
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.
Comment 6 battle.jerboa 2011-07-20 13:21:41 UTC
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$
Comment 7 battle.jerboa 2011-07-21 12:46:31 UTC
Created attachment 280521 [details]
dev-java/swt-3.7-r1 with 'webkit' USE flag
Comment 8 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2011-11-17 23:17:48 UTC
Bumped to 3.7.1. Now we should migrate all reverse dependencies to it, as older versions depend on obsolete xulrunner version.