Gentoo Archives: gentoo-java

From: Alistair Bush <alistair.bush@×××××.com>
To: gentoo-java@l.g.o
Cc: Kyle Galloway <kgallowa@××××××.com>
Subject: [gentoo-java] Fwd: IcedTea built on Gentoo
Date: Thu, 14 Jun 2007 08:34:20
Message-Id: 200706142032.31304.alistair.bush@gmail.com
1 Hi am forwarding this to the Gentoo Java mailing this for anyone who is
2 interested. It was posted by Kyle Galloway from Redhat to
3 distro-pkg-dev@××××××××××××.net
4
5 I would just like to say a big thank you to him for sharing this.
6
7 Alistair (ali_bush)
8 Gentoo Java Developer.
9
10 ps. I suppose this means someones going to have to make a ebuild for it ;) .
11
12 *********************************************************************************
13
14 I have now successfully built IcedTea using ecj on Gentoo. Included in
15 this e-mail are instructions on how to do it for all those Gentoo users
16 out there who want to hack on IcedTea.
17
18 This was done on Gentoo 2007.0 ~x86
19
20 1. Required Packages
21
22 emerge -av xalan xalan-serializer xerces cups lesstif eclipse-ecj
23
24 Some of those are probably already installed, but -av will tell you and
25 let you confirm whether you want to rebuild any of those.
26
27 2. Build a 1.5 compliant libgcj (substitute the stuff in <> with
28 directories of your choice).
29
30 svn co svn://gcc.gnu.org/svn/gcc/branches/redhat/gcc-4_1-branch gcc
31 mkdir gcc-build
32 cd gcc-build
33 ../gcc/configure --prefix=<installation dir> --exec-prefix=<installation
34 dir>/<architecture>
35 make && make install
36
37 3. Modify icedtea/javac.in.
38
39 In order to get IcedTea to build with your built libgcj you will need to
40 modify the attached patch to point to your libgcj-4.1.3.jar, then apply
41 it to javac.in.
42
43 vim javac_in.patch
44 cd icedtea
45 patch -p0 < javac_in.patch
46
47 4. Configure and build IcedTea
48
49 ./configure --with-ecj=/usr/bin/ecj-3.2
50 --with-ecj-jar=/usr/share/eclipse-ecj-3.2/lib/ecj.jar
51 --with-libgcj-jar=<gcc installation dir>/share/java/libgcj-4.1.3.jar
52 --with-xalan2-jar=/usr/share/xalan/lib/xalan.jar
53 --with-xalan2-serializer-jar=/usr/share/xalan-serializer/lib/serializer.jar
54 --with-xerces2-jar=/usr/share/xerces-2/lib/xercesImpl.jar
55 make
56
57 And there you have it.
58
59 Kyle

Attachments

File name MIME type
javac_in.patch text/x-patch

Replies

Subject Author
Re: [gentoo-java] Fwd: IcedTea built on Gentoo "Petteri Räty" <betelgeuse@g.o>
Re: [gentoo-java] Fwd: IcedTea built on Gentoo "Petteri Räty" <petteri.raty@××××××××××.fi>