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

List:       openjdk-distro-pkg-dev
Subject:    REVISED: IcedTea built on Gentoo
From:       kgallowa () redhat ! com (Kyle Galloway)
Date:       2007-06-14 19:02:47
Message-ID: 467190D7.6050300 () redhat ! com
[Download RAW message or body]

I have just committed  a change to IcedTea that will simplify this 
process.  Though this procedure was done on a Gentoo system, it can be 
easily adapted to just about any Linux distro by changing the paths 
supplied to configure appropriately.

I have also got some input from the Gentoo Java team about using the GCJ 
overlay.  I have included it below as an alternative for anyone who 
wants to use that approach, is running Gentoo, and is comfortable using 
portage overlays.
> 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
>   
OR if you are running Gentoo.

Use the Gentoo GCJ overlay, see instructions:
http://overlays.gentoo.org/proj/java/wiki/GCJ_as_a_JDK

Now that javac.in has been patched, it is no longer necessary to use the 
patch I sent, or modify the source tree in any way.  Simply:
> 3. 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



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

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