Gentoo Archives: gentoo-java

From: Hanno Meyer-Thurow <h.mth@×××.de>
To: gentoo-java@l.g.o
Cc: world.root@×××××.com
Subject: [gentoo-java] work on gcj for gentoo
Date: Tue, 21 Feb 2006 15:02:56
Message-Id: 20060221160425.b1478bdc.h.mth@web.de
1 Hi list!
2 I would like to work on gcj for Gentoo.
3 I spoke with Andrew Cowie. He suggested me to send my ideas and
4 questions to this list to discuss.
5
6 I know gcj is tricky. It has various issues. Still, it is quite interesting
7 to work on gcj. But as gcj is in portage right now it is hard to use for
8 an ebuild writer like myself. Just two main issues:
9
10 * dependency tracking
11 * JDK-like environment
12
13 However, I may write my ideas and questions:
14
15 I thought in a gcj-4.1 / ecj combination. Use ecj to bytecompile Java
16 source to jar with gcj as backend. Then use gcj to create native
17 executables or libraries out of that jar files. Creating a database
18 via gcj-dbtool for jar / native code resolution. If possible Java to
19 native.
20
21 The steps to take to get there
22
23 * get gcj-jdk in portage
24 * use ecj as gcjs bytecompiler
25 * handle it via Gentoos java config
26 (gcj bytecompile is broken,
27 see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18131)
28
29 (later)
30
31 * Java to native compilation
32 * utilize gcj-dbtool for jar / native code resolution
33 (Whatever way it is wanted.)
34
35 To stay sane we want to hack the ant-core dependency out of
36 eclipse-ecj package. Just try to compile ant-core with gcj. I have
37 ugly hacks (gcc PR19870) for ant-core-1.6.2 to bytecompile with gcj.
38
39 No way.
40
41 Then I have to get ant-core-1.6.5 to bytecompile with gcj / ecj which
42 fails right now - did not yet investigate any further. After these steps
43 are done we have the base (for interested ones to test gcj).
44
45 I am no Java programmer.
46 I do packaging stuff and ugly hacking. ;)
47
48 I will try to integrate gcj into Gentoos next Java config utility.
49 Just not to do the work of integration twice.
50
51 What I did already:
52
53 * tweaked Andrew's gcj-jdk ebuild
54 -> ebuild / eclass split
55 * gcj-ecj ebuild
56 -> Java to native: ecj binary
57
58 The very next steps should be:
59
60 * better gcj-jdk ebuild
61 * fix ant-core issue with ecj
62
63 Then, get back to plan.
64
65 Reference - my overlay for these two ebuilds:
66 http://geki.ath.cx/hacks/gcj-overlay-2.tar.bz2
67
68
69 Thanks in advance for help!
70
71
72 Regards,
73 Hanno
74 --
75 gentoo-java@g.o mailing list

Replies

Subject Author
Re: [gentoo-java] work on gcj for gentoo Karl Trygve Kalleberg <karltk@g.o>
Re: [gentoo-java] work on gcj for gentoo Joshua Nichols <nichoj@g.o>
Re: [gentoo-java] work on gcj for gentoo Hanno Meyer-Thurow <h.mth@×××.de>
Re: [gentoo-java] work on gcj for gentoo Andrew Cowie <andrew@×××××××××××××××××××.com>
Re: [gentoo-java] work on gcj for gentoo Hanno Meyer-Thurow <h.mth@×××.de>
Re: [gentoo-java] work on gcj for gentoo Hanno Meyer-Thurow <h.mth@×××.de>