public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-java] Fwd: IcedTea built on Gentoo
@ 2007-06-14  8:32 Alistair Bush
  2007-06-14  8:38 ` Petteri Räty
  2007-06-14  8:50 ` Petteri Räty
  0 siblings, 2 replies; 4+ messages in thread
From: Alistair Bush @ 2007-06-14  8:32 UTC (permalink / raw
  To: gentoo-java; +Cc: Kyle Galloway

[-- Attachment #1: Type: text/plain, Size: 1852 bytes --]

Hi am forwarding this to the Gentoo Java mailing this for anyone who is 
interested.  It was posted by Kyle Galloway from Redhat to 
distro-pkg-dev@openjdk.java.net

I would just like to say a big thank you to him for sharing this.

Alistair (ali_bush)
Gentoo Java Developer.

ps.  I suppose this means someones going to have to make a ebuild for it ;) .

*********************************************************************************

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



[-- Attachment #2: javac_in.patch --]
[-- Type: text/x-patch, Size: 620 bytes --]

diff -r 123c2340f9cf javac.in
--- a/javac.in	Thu Jun 07 19:21:19 2007 -0400
+++ b/javac.in	Wed Jun 13 10:20:13 2007 -0400
@@ -1,4 +1,10 @@
 #!/bin/sh
+libgcjjar=/home/user/gcc-install/share/java/libgcj-4.1.3.jar
+
+case "$*" in
+  *-bootclasspath*) ;;
+  *) bcoption="-bootclasspath $libgcjjar"
+esac
 
 # Work around ecj's inability to handle duplicate command-line
 # options.
@@ -21,4 +27,4 @@ fi
 fi
 
 CLASSPATH=@ECJ_JAR@${CLASSPATH:+:}$CLASSPATH \
-  @JAVA@ org.eclipse.jdt.internal.compiler.batch.Main -1.5 -nowarn $NEW_ARGS
+  @JAVA@ org.eclipse.jdt.internal.compiler.batch.Main -1.5 -nowarn $bcoption $NEW_ARGS

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-java] Fwd: IcedTea built on Gentoo
  2007-06-14  8:32 [gentoo-java] Fwd: IcedTea built on Gentoo Alistair Bush
@ 2007-06-14  8:38 ` Petteri Räty
  2007-06-14  8:47   ` Vlastimil Babka
  2007-06-14  8:50 ` Petteri Räty
  1 sibling, 1 reply; 4+ messages in thread
From: Petteri Räty @ 2007-06-14  8:38 UTC (permalink / raw
  To: Alistair Bush; +Cc: gentoo-java, Kyle Galloway

[-- Attachment #1: Type: text/plain, Size: 1265 bytes --]

Alistair Bush kirjoitti:
> Hi am forwarding this to the Gentoo Java mailing this for anyone who is 
> interested.  It was posted by Kyle Galloway from Redhat to 
> distro-pkg-dev@openjdk.java.net
> 
> I would just like to say a big thank you to him for sharing this.
> 
> Alistair (ali_bush)
> Gentoo Java Developer.
> 
> ps.  I suppose this means someones going to have to make a ebuild for it ;) .

When it works too. I think for example AWT/Swing is borked atm.

> 
> *********************************************************************************
> 
> 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).
> 

This is probably easier:
http://overlays.gentoo.org/proj/java/wiki/GCJ_as_a_JDK

Regards,
Petteri


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-java] Fwd: IcedTea built on Gentoo
  2007-06-14  8:38 ` Petteri Räty
@ 2007-06-14  8:47   ` Vlastimil Babka
  0 siblings, 0 replies; 4+ messages in thread
From: Vlastimil Babka @ 2007-06-14  8:47 UTC (permalink / raw
  To: gentoo-java

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Petteri Räty wrote:
> Alistair Bush kirjoitti:
>> Hi am forwarding this to the Gentoo Java mailing this for anyone who is 
>> interested.  It was posted by Kyle Galloway from Redhat to 
>> distro-pkg-dev@openjdk.java.net
>>
>> I would just like to say a big thank you to him for sharing this.
>>
>> Alistair (ali_bush)
>> Gentoo Java Developer.
>>
>> ps.  I suppose this means someones going to have to make a ebuild for it ;) .
> 
> When it works too. I think for example AWT/Swing is borked atm.
> 
>> *********************************************************************************
>>
>> 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).
>>
> 
> This is probably easier:
> http://overlays.gentoo.org/proj/java/wiki/GCJ_as_a_JDK

Yeah, if the point is to bootstrap everything without closed-source JDK,
and you need that to build the following too, then gcj-overlay could do
the job.

>> emerge -av xalan xalan-serializer xerces eclipse-ecj

- --
Vlastimil Babka (Caster)
Gentoo/Java
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGcQCdtbrAj05h3oQRAo1gAJ9eU7Pm9MQuyV0HusygHZp+QIQkewCdF1d8
FcBUorfCDfK3t8HazafXa9I=
=jwQI
-----END PGP SIGNATURE-----
-- 
gentoo-java@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-java] Fwd: IcedTea built on Gentoo
  2007-06-14  8:32 [gentoo-java] Fwd: IcedTea built on Gentoo Alistair Bush
  2007-06-14  8:38 ` Petteri Räty
@ 2007-06-14  8:50 ` Petteri Räty
  1 sibling, 0 replies; 4+ messages in thread
From: Petteri Räty @ 2007-06-14  8:50 UTC (permalink / raw
  To: Alistair Bush; +Cc: Gentoo Java, Kyle Galloway

[-- Attachment #1: Type: text/plain, Size: 651 bytes --]

Alistair Bush kirjoitti:
> Hi am forwarding this to the Gentoo Java mailing this for anyone who is 
> interested.  It was posted by Kyle Galloway from Redhat to 
> distro-pkg-dev@openjdk.java.net
> 
> I would just like to say a big thank you to him for sharing this.
> 
> Alistair (ali_bush)
> Gentoo Java Developer.
> 
> ps.  I suppose this means someones going to have to make a ebuild for it ;) .
> 

At this point it would probably be better served as a use flag to the
current OpenJDK ebuild. But for that it would have to live in the GCJ
overlay I guess so we could just hack an icedtea ebuild into there.

Regards,
Petteri


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-06-14  8:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-14  8:32 [gentoo-java] Fwd: IcedTea built on Gentoo Alistair Bush
2007-06-14  8:38 ` Petteri Räty
2007-06-14  8:47   ` Vlastimil Babka
2007-06-14  8:50 ` Petteri Räty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox