Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171257 - =dev-java/gwt-2.7.0: Google Web Toolkit (new ebuild)
Summary: =dev-java/gwt-2.7.0: Google Web Toolkit (new ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Low minor with 1 vote (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks: 696944
  Show dependency tree
 
Reported: 2007-03-17 14:17 UTC by Joël
Modified: 2020-01-10 08:45 UTC (History)
8 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
google-web-toolkit-bin-1.3.3.ebuild (google-web-toolkit-bin-1.3.3.ebuild,850 bytes, text/plain)
2007-03-17 14:19 UTC, Joël
Details
A small script that will access google's svn, checkout the code, and create gwt-1.3.3.tar.bz2 and gwt-tools.tar.bz2 automatically. (checkout.sh,252 bytes, text/plain)
2007-03-26 14:44 UTC, Joël
Details
dev-java/google-web-toolkit-1.3.3 (google-web-toolkit-1.3.3.ebuild,6.10 KB, text/plain)
2007-03-26 14:51 UTC, Joël
Details
dev-java/google-web-toolkit-1.3.3-r1 (google-web-toolkit-1.3.3-r1.ebuild,6.12 KB, text/plain)
2007-03-27 09:34 UTC, Joël
Details
dev-java/google-web-toolkit-1.3.3-r2 (google-web-toolkit-1.3.3-r2.ebuild,7.12 KB, text/plain)
2007-04-01 22:47 UTC, Joël
Details
dev-java/gwt-widgets-bin (optional add-on widgets pack) (gwt-widgets-bin-0.1.3.ebuild,642 bytes, text/plain)
2007-04-27 21:53 UTC, Joël
Details
dev-java/gwt-widgets-bin-0.1.3 (optional add-on widgets pack) (gwt-widgets-bin-0.1.3.ebuild,704 bytes, text/plain)
2007-04-28 14:10 UTC, Joël
Details
google-web-toolkit-bin-1.4.10.ebuild (google-web-toolkit-bin-1.4.10.ebuild,906 bytes, text/plain)
2007-05-30 11:03 UTC, Joël
Details
gwt-widgets-bin-0.1.4.ebuild (gwt-widgets-bin-0.1.4.ebuild,700 bytes, text/plain)
2007-05-30 11:05 UTC, Joël
Details
google-web-toolkit-bin-1.4.60.ebuild (Google Web Toolkit 1.4 final) (google-web-toolkit-bin-1.4.60.ebuild,906 bytes, text/plain)
2007-08-31 07:22 UTC, Joël
Details
Added a necessary dependancy (google-web-toolkit-bin-1.4.60.ebuild,936 bytes, text/plain)
2008-03-07 21:04 UTC, Michael Speth
Details
google-web-toolkit-bin-1.4.62.ebuild (google-web-toolkit-bin-1.4.62.ebuild,935 bytes, text/plain)
2008-03-31 08:54 UTC, Joël
Details
ebuild updated for 1.5.x and amd64 (google-web-toolkit-bin-1.5.2.ebuild,943 bytes, text/plain)
2008-09-08 13:02 UTC, Hank Leininger
Details
ebuild updated for 2.0.0 (google-web-toolkit-bin-2.0.0.ebuild,816 bytes, text/plain)
2009-12-14 01:14 UTC, Evgeny Mandrikov
Details
ebuild for 2.0.1 (google-gwt-bin-2.0.1.ebuild,750 bytes, text/plain)
2010-02-07 13:14 UTC, Raimonds Cicans
Details
2.4.0 ebuild (google-web-toolkit-bin-2.4.0.ebuild,720 bytes, text/plain)
2011-11-17 17:06 UTC, Naohiro Aota
Details
gwt-2.7.0.ebuild (gwt-2.7.0.ebuild,1.40 KB, text/plain)
2015-11-03 08:20 UTC, Patrice Clement
Details
gwt-2.8.2.ebuild (gwt-2.8.2.ebuild,1.74 KB, text/plain)
2020-01-08 12:23 UTC, Mark Wright
Details
gwt-2.8.2.ebuild (file_171257.txt,66 bytes, text/plain)
2020-01-09 09:18 UTC, Mark Wright
Details
gwt-2.8.2.ebuild (gwt-2.8.2.ebuild,1.72 KB, text/plain)
2020-01-09 09:20 UTC, Mark Wright
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joël 2007-03-17 14:17:56 UTC
This is an ebuild for the Google Web Toolkit. This first version is named "dev-java/google-web-toolkit-bin" and it installs the pre-compiled x86 version which is available on the site.

As soon as possible, I would like to make a "dev-java/google-web-toolkit" that compiles everything from source. But I lack time, so if you can, please submit something here !

Reproducible: Always
Comment 1 Joël 2007-03-17 14:19:08 UTC
Created attachment 113570 [details]
google-web-toolkit-bin-1.3.3.ebuild
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-03-17 14:30:08 UTC
Yeah, we need from-source version if you want to see this in the official tree.
Comment 3 Joël 2007-03-26 14:44:27 UTC
Created attachment 114494 [details]
A small script that will access google's svn, checkout the code, and create gwt-1.3.3.tar.bz2 and gwt-tools.tar.bz2 automatically.

Note: I didn't use versioning for gwt-tools. This is because I use only few files from this package. The short-term goal is to get rid of gwt-tools, and to use *purely* gentoo's dependencies and tools for building gwt.
Comment 4 Joël 2007-03-26 14:51:24 UTC
Created attachment 114496 [details]
dev-java/google-web-toolkit-1.3.3

Please try, and please help to improve this ebuild !

We need to get rid of these remaining dependencies (which are bundled in gwt-tools.tar.bz2):

tools/lib/apache/tapestry-util-text-*.jar
tools/lib/eclipse/jdt-*.jar
tools/lib/eclipse/org.eclipse.swt.gtk-linux-*.jar tools/lib/eclipse/libswt-*gtk-*.so
tools/redist/mozilla
tools/sdk/mozilla-*

All other files inside gwt-tools.tar.bz2 are already deleted before the build begins :-)

Another hot topic is that tomcat-5.0 is needed, and that is deprecated. Could we ensure that tomcat-5.0 doesn't get removed from the portage tree at the moment ?

I don't know what it would take to make gwt build with the new tomcat-5.5.
Comment 5 Joël 2007-03-26 14:53:33 UTC
Oh yes, I forgot to mention: it would be great to use the system's swt library instead of the bundled one. But I fear the switch from mozilla to seamonkey changed the API (?)
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2007-03-26 15:11:54 UTC
(In reply to comment #5)
> Oh yes, I forgot to mention: it would be great to use the system's swt library
> instead of the bundled one. But I fear the switch from mozilla to seamonkey
> changed the API (?)
> 

No the backend does not affect the API that swt publishes.
Comment 7 Joël 2007-03-27 09:34:58 UTC
Created attachment 114580 [details]
dev-java/google-web-toolkit-1.3.3-r1

- more cleanups in tools/ directory
- provide proper version to the ant scripts: for example (in this case): 1.3.3-gentoo-r1
Comment 8 Joël 2007-04-01 22:47:10 UTC
Created attachment 115205 [details]
dev-java/google-web-toolkit-1.3.3-r2

Ok, in this new version, the only bundled stuff that is actually used is:
- swt & libgwt-ll.so
- mozilla 1.7.2

I tried using the system's swt, but that's not compatible with the bundled mozilla. So I switched to my system's seamonkey instead, but there's another issue at runtime (same with firefox). The key of the problem may be the libgwt-ll.so file, for which the build is (currently) not performed -- the google scripts pick a pre-built version instead. Seems to be very dependent on specific mozilla header versions. Maybe we can fix it for gentoo ? Or maybe Google will fix it for the next version ?

Please check out this new ebuild, also try to enable (and help fix) the commented-out swt stuff inside :-)

Also, please see if the dependencies are fine on your system. Thanks !
Comment 9 Joël 2007-04-27 21:53:59 UTC
Created attachment 117452 [details]
dev-java/gwt-widgets-bin (optional add-on widgets pack)

- jar installs in /opt/google-web-toolkit/gwt-widgets/
- javadoc installs in /usr/share/doc/gwt-widgets-0.1.3/
Comment 10 Joël 2007-04-28 14:10:03 UTC
Created attachment 117487 [details]
dev-java/gwt-widgets-bin-0.1.3 (optional add-on widgets pack)

LICENSE, DESCRIPTION and HOMEPAGE are now properly defined in the ebuild.
Comment 11 Joël 2007-05-30 11:03:43 UTC
Created attachment 120693 [details]
google-web-toolkit-bin-1.4.10.ebuild

new version: Google Web Toolkit 1.4 RC1
Comment 12 Joël 2007-05-30 11:05:41 UTC
Created attachment 120694 [details]
gwt-widgets-bin-0.1.4.ebuild

new version of add-on widget pack (previous version doesn't work with GWT 1.4 RC1)
Comment 13 Joël 2007-08-31 07:22:09 UTC
Created attachment 129669 [details]
google-web-toolkit-bin-1.4.60.ebuild (Google Web Toolkit 1.4 final)

(this is simply a rename of the 1.4RC1 ebuild)
Comment 14 Michael Speth 2008-03-07 21:04:38 UTC
Created attachment 145505 [details]
Added a necessary dependancy

libstdc++ is needed for the mozilla libs to work correctly.
So I added this to the COMMON_DEP.  I haven't done any ebuild scripting before so I hope I did this correctly.
Comment 15 Joël 2008-03-31 08:54:25 UTC
Created attachment 147790 [details]
google-web-toolkit-bin-1.4.62.ebuild

Thanks Michael :-)

Now here's the updated ebuild for GWT 1.4.62, which handles Firefox 3 betas.

For more info, see:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/bd5cbb7a0d5b60aa
Comment 16 Maciej Mrozowski gentoo-dev 2008-07-18 00:22:44 UTC
I'm currently trying to compile gwt-1.5.0-linux (rc) from source on my gentoo amd64 box and there are some problems, especially when not using bundled mozilla sdk.
- apparently they're using some deprecated mozilla API that is not in firefox-2.0.0.15 anymore (namely nsComponentManager, in tools/sdk/mozilla-1.7.12/include/extra/nsComponentManagerObsolete.h) so it won't compile easily (I'm not Mozilla hacker so I won't help here). I'm aftraid it would be necesssary to do it as we need some API and corresponding libxpcomglue_s.a (gwt tools provides only 32bit one). I've build this .a file and used new (ff-2.0.0.15) API with no success here.
- plenty 32/64bit issues in native java wrappers - those are rather easy to fix though (they're using pointer type to integer casting for some reasons)

I guess for now you can forget about native linux 32/64 ebuild. It's just too many upstream JNI issues.
Comment 17 Hank Leininger 2008-09-08 13:02:49 UTC
Created attachment 164903 [details]
ebuild updated for 1.5.x and amd64

Updated the previously submitted -bin ebuild to the current gwt release, and added amd64 support, after rigorously testing for about 30 seconds.
Comment 18 Evgeny Mandrikov 2009-12-14 01:14:35 UTC
Created attachment 212937 [details]
ebuild updated for 2.0.0

Updated the previously submitted -bin ebuild to the current gwt release (2.0.0)
Comment 19 Raimonds Cicans 2010-02-07 13:14:57 UTC
Created attachment 218809 [details]
ebuild for 2.0.1

Based on ebuild for 2.0.0

CHANGELOG:

New features:
- shorter name
- per version slotting
- conditional dependency on Ant
- Windows only stuff deleting

Bug fixes:
- added app-arch/unzip to DEPEND
- in RDEPEND changed virtual/jre version from 1.4 to 1.5

Some cleanup.
Comment 20 Naohiro Aota gentoo-dev 2011-11-17 17:06:44 UTC
Created attachment 292923 [details]
2.4.0 ebuild

Java team,
how do you think of adding this package to Portage tree? I'd like to add rstudio #365595 and this gwt package is dependency of it.
Comment 21 Patrice Clement gentoo-dev 2015-11-03 08:19:29 UTC
GWT is just too difficult to compile for no sensible reason. Google devs made it explicitly hard and nonsensical to figure out. Apparently, they use a different namespace for 3rd party libraries which goes like this:
com.google.gwt.thirdparty

So when compiling, you wind up with tons of errors like this one:
[gwt.javac] /var/tmp/portage/dev-java/gwt-2.7.0/work/gwt-2.7.0/dev/core/src/com/google/gwt/dev/js/ClosureJsRunner.java:38: error: package com.google.gwt.thirdparty.javascript.jscomp does not exist
[gwt.javac] import com.google.gwt.thirdparty.javascript.jscomp.PropertyRenamingPolicy;

even though the package does exist in javac's classpath... which rationale does it follow? As far as I can tell, none. They just want people not to compile/work out their code.
Comment 22 Patrice Clement gentoo-dev 2015-11-03 08:20:23 UTC
Created attachment 415988 [details]
gwt-2.7.0.ebuild

My attempt so far.
Comment 23 Mark Wright gentoo-dev 2020-01-08 12:23:24 UTC
Created attachment 602776 [details]
gwt-2.8.2.ebuild

Starting from attachment 41598 [details, diff] I hacked this up.  I can build sci-mathematics/rstudio against this dependency (currently rstudio is bundling this dep).
Comment 24 Mark Wright gentoo-dev 2020-01-09 09:18:26 UTC
Created attachment 602808 [details]
gwt-2.8.2.ebuild
Comment 25 Mark Wright gentoo-dev 2020-01-09 09:20:29 UTC
Created attachment 602810 [details]
gwt-2.8.2.ebuild

rdeps can depend on:
	=dev-java/validation-api-1.0*:1.0[source]
Comment 26 Larry the Git Cow gentoo-dev 2020-01-10 08:45:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f21a55f93e024094d32d2a3a60f4b20495e65e33

commit f21a55f93e024094d32d2a3a60f4b20495e65e33
Author:     Mark Wright <gienah@gentoo.org>
AuthorDate: 2020-01-10 03:25:31 +0000
Commit:     Mark Wright <gienah@gentoo.org>
CommitDate: 2020-01-10 08:43:18 +0000

    dev-java/gwt: Add for sci-mathematics/rstudio
    
    Thanks to Joel for reporting.  Thanks to Joel, jakub, betelgeuse,
    Michael Speth, Hank Leininger, Raimonds Cicans, naota and
    monsieurp for working on this.
    
    Co-Authored-By: Patrice Clement <monsieurp@gentoo.org>
    Bug: https://bugs.gentoo.org/show_bug.cgi?id=696944
    Closes: https://bugs.gentoo.org/show_bug.cgi?id=171257
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: Mark Wright <gienah@gentoo.org>

 dev-java/gwt/Manifest         |  2 ++
 dev-java/gwt/gwt-2.8.2.ebuild | 72 +++++++++++++++++++++++++++++++++++++++++++
 dev-java/gwt/metadata.xml     | 21 +++++++++++++
 3 files changed, 95 insertions(+)