[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-distro-pkg-dev
Subject:    IcedTea built on Gentoo
From:       kgallowa () redhat ! com (Kyle Galloway)
Date:       2007-06-13 16:47:17
Message-ID: 46701F95.9060305 () redhat ! com
[Download RAW message or body]

I have now successfully built IcedTea using ecj on Gentoo.  Included in
this e-mail are instructions on how to do it for all those Gentoo users
out there who want to hack on IcedTea.

This was done on Gentoo 2007.0 ~x86

1. Required Packages

emerge -av xalan xalan-serializer xerces cups lesstif eclipse-ecj

Some of those are probably already installed, but -av will tell you and
let you confirm whether you want to rebuild any of those.

2. Build a 1.5 compliant libgcj  (substitute the stuff in <> with
directories of your choice).

svn co svn://gcc.gnu.org/svn/gcc/branches/redhat/gcc-4_1-branch gcc
mkdir gcc-build
cd gcc-build
../gcc/configure --prefix=<installation dir> --exec-prefix=<installation
dir>/<architecture>
make && make install

3. Modify icedtea/javac.in.

In order to get IcedTea to build with your built libgcj you will need to
modify the attached patch to point to your libgcj-4.1.3.jar, then apply
it to javac.in.

vim javac_in.patch
cd icedtea
patch -p0 < javac_in.patch

4. Configure and build IcedTea

./configure --with-ecj=/usr/bin/ecj-3.2
--with-ecj-jar=/usr/share/eclipse-ecj-3.2/lib/ecj.jar
--with-libgcj-jar=<gcc installation dir>/share/java/libgcj-4.1.3.jar
--with-xalan2-jar=/usr/share/xalan/lib/xalan.jar
--with-xalan2-serializer-jar=/usr/share/xalan-serializer/lib/serializer.jar
--with-xerces2-jar=/usr/share/xerces-2/lib/xercesImpl.jar
make

And there you have it.

Kyle


-------------- next part --------------
A non-text attachment was scrubbed...
Name: javac_in.patch
Type: text/x-patch
Size: 620 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20070613/dc965a8b/attachment.bin 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic