public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/20750] New: libgcj needs a --with-java-home configure option
@ 2005-04-04 19:10 fitzsim at redhat dot com
  2005-04-04 19:11 ` [Bug libgcj/20750] " fitzsim at redhat dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: fitzsim at redhat dot com @ 2005-04-04 19:10 UTC (permalink / raw)
  To: java-prs

For java-gcj-compat, we need to define these system properties:

java.home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
sun.boot.class.path=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre/lib/rt.jar

A --with-java-home configure option would allow these properties to be set.

-- 
           Summary: libgcj needs a --with-java-home configure option
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fitzsim at redhat dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20750


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

* [Bug libgcj/20750] libgcj needs a --with-java-home configure option
  2005-04-04 19:10 [Bug java/20750] New: libgcj needs a --with-java-home configure option fitzsim at redhat dot com
@ 2005-04-04 19:11 ` fitzsim at redhat dot com
  2005-04-04 19:15 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: fitzsim at redhat dot com @ 2005-04-04 19:11 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|java                        |libgcj


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20750


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

* [Bug libgcj/20750] libgcj needs a --with-java-home configure option
  2005-04-04 19:10 [Bug java/20750] New: libgcj needs a --with-java-home configure option fitzsim at redhat dot com
  2005-04-04 19:11 ` [Bug libgcj/20750] " fitzsim at redhat dot com
@ 2005-04-04 19:15 ` pinskia at gcc dot gnu dot org
  2005-04-04 20:03 ` mckinlay at redhat dot com
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-04 19:15 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-04 19:15 -------
Confirmed.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-04-04 19:15:45
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20750


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

* [Bug libgcj/20750] libgcj needs a --with-java-home configure option
  2005-04-04 19:10 [Bug java/20750] New: libgcj needs a --with-java-home configure option fitzsim at redhat dot com
  2005-04-04 19:11 ` [Bug libgcj/20750] " fitzsim at redhat dot com
  2005-04-04 19:15 ` pinskia at gcc dot gnu dot org
@ 2005-04-04 20:03 ` mckinlay at redhat dot com
  2005-04-04 20:44 ` fitzsim at redhat dot com
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mckinlay at redhat dot com @ 2005-04-04 20:03 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mckinlay at redhat dot com  2005-04-04 20:03 -------
Whats the advantage to setting these at configure time? Couldn't java-gcj-compat
just set them when it invokes gij?

It seems a little awkward to hardcode paths like "java-1.4.2-gcj-1.4.2.0" into
libgcj when this is really a property of java-gcj-compat. 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20750


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

* [Bug libgcj/20750] libgcj needs a --with-java-home configure option
  2005-04-04 19:10 [Bug java/20750] New: libgcj needs a --with-java-home configure option fitzsim at redhat dot com
                   ` (2 preceding siblings ...)
  2005-04-04 20:03 ` mckinlay at redhat dot com
@ 2005-04-04 20:44 ` fitzsim at redhat dot com
  2005-04-04 20:48 ` fitzsim at redhat dot com
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: fitzsim at redhat dot com @ 2005-04-04 20:44 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From fitzsim at redhat dot com  2005-04-04 20:44 -------
The advantage is that we can then eliminate the java wrapper script completely
and symlink the java command directly to gij.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20750


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

* [Bug libgcj/20750] libgcj needs a --with-java-home configure option
  2005-04-04 19:10 [Bug java/20750] New: libgcj needs a --with-java-home configure option fitzsim at redhat dot com
                   ` (3 preceding siblings ...)
  2005-04-04 20:44 ` fitzsim at redhat dot com
@ 2005-04-04 20:48 ` fitzsim at redhat dot com
  2005-04-04 21:27 ` mckinlay at redhat dot com
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: fitzsim at redhat dot com @ 2005-04-04 20:48 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From fitzsim at redhat dot com  2005-04-04 20:48 -------
I should also mention; currently java-gcj-compat is separate from libgcj because
it depends on ecj.  Once gcjx lands we can use it as our bytecode compiler, and
distributions will likely want to merge java-gcj-compat into the libgcj itself.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20750


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

* [Bug libgcj/20750] libgcj needs a --with-java-home configure option
  2005-04-04 19:10 [Bug java/20750] New: libgcj needs a --with-java-home configure option fitzsim at redhat dot com
                   ` (4 preceding siblings ...)
  2005-04-04 20:48 ` fitzsim at redhat dot com
@ 2005-04-04 21:27 ` mckinlay at redhat dot com
  2005-04-04 21:39 ` fitzsim at redhat dot com
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: mckinlay at redhat dot com @ 2005-04-04 21:27 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mckinlay at redhat dot com  2005-04-04 21:27 -------
Yeah, in the case where java-gcj-compat is merged into libgcj (ie libgcj is set
up to look like a JVM) then this option makes sense.

libgcj would install its .jars and whatever other JVMish files applications
expect to find into this directory, and set java.home accordingly. 

I don't see a reason why we couldn't go ahead and implement this on HEAD now,
even though an external wrapper would still be needed for now to use ecj as javac.

I so think it seems a bit non-intuitive to have --with-java-home just set a
property and not actually install things into that directory, relying on an
external package to actually populate it, however. We should at least install
libgcj.jar into the directory given?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20750


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

* [Bug libgcj/20750] libgcj needs a --with-java-home configure option
  2005-04-04 19:10 [Bug java/20750] New: libgcj needs a --with-java-home configure option fitzsim at redhat dot com
                   ` (5 preceding siblings ...)
  2005-04-04 21:27 ` mckinlay at redhat dot com
@ 2005-04-04 21:39 ` fitzsim at redhat dot com
  2005-04-05 23:46 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: fitzsim at redhat dot com @ 2005-04-04 21:39 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From fitzsim at redhat dot com  2005-04-04 21:39 -------
Yes, eventually we'll install the same compatibiliy symlink forest we currently
install in java-gcj-compat.  For now though I only expect distributions
packaging java-gcj-compat to use this option.  For example, in Fedora Core,
java-gcj-compat is a default package, so we expect it to be there and we add an
rt.jar symlink from $JAVA_HOME/lib/rt.jar to libgcj-4.0.0.jar.  People
installing libgcj manually shouldn't use this option and won't be affected by it.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20750


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

* [Bug libgcj/20750] libgcj needs a --with-java-home configure option
  2005-04-04 19:10 [Bug java/20750] New: libgcj needs a --with-java-home configure option fitzsim at redhat dot com
                   ` (6 preceding siblings ...)
  2005-04-04 21:39 ` fitzsim at redhat dot com
@ 2005-04-05 23:46 ` cvs-commit at gcc dot gnu dot org
  2005-04-06  3:44 ` cvs-commit at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-05 23:46 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-04-05 23:46 -------
Subject: Bug 20750

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	fitzsim@gcc.gnu.org	2005-04-05 23:46:09

Modified files:
	gcc            : ChangeLog 
	gcc/doc        : install.texi 
	libjava        : ChangeLog Makefile.am Makefile.in configure 
	                 configure.ac 
	libjava/external: Makefile.in 
	libjava/external/sax: Makefile.in 
	libjava/external/w3c_dom: Makefile.in 
	libjava/gcj    : Makefile.in 
	libjava/include: Makefile.in 
	libjava/java/lang: natRuntime.cc 
	libjava/testsuite: Makefile.in 

Log message:
	2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
	
	* doc/install.texi (Configuration): Document --with-java-home.
	
	2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
	
	PR libgcj/20750
	* Makefile.am (AM_CXXFLAGS): Define JAVA_HOME.
	* Makefile.in: Regenerate.
	* configure.ac: Add --with-java-home option.
	* configure: Regenerate.
	* external/Makefile.in: Regenerate.
	* external/sax/Makefile.in: Regenerate.
	* external/w3c_dom/Makefile.in: Regenerate.
	* gcj/Makefile.in: Regenerate.
	* include/Makefile.in: Regenerate.
	* testsuite/Makefile.in: Regenerate.
	* java/lang/natRuntime.cc (insertSystemProperties): Set java.home
	to JAVA_HOME macro.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.8154&r2=2.8155
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doc/install.texi.diff?cvsroot=gcc&r1=1.342&r2=1.343
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3457&r2=1.3458
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.am.diff?cvsroot=gcc&r1=1.472&r2=1.473
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.in.diff?cvsroot=gcc&r1=1.503&r2=1.504
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/configure.diff?cvsroot=gcc&r1=1.260&r2=1.261
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/configure.ac.diff?cvsroot=gcc&r1=1.26&r2=1.27
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/external/Makefile.in.diff?cvsroot=gcc&r1=1.5&r2=1.6
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/external/sax/Makefile.in.diff?cvsroot=gcc&r1=1.9&r2=1.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/external/w3c_dom/Makefile.in.diff?cvsroot=gcc&r1=1.9&r2=1.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gcj/Makefile.in.diff?cvsroot=gcc&r1=1.66&r2=1.67
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/include/Makefile.in.diff?cvsroot=gcc&r1=1.68&r2=1.69
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/lang/natRuntime.cc.diff?cvsroot=gcc&r1=1.53&r2=1.54
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/Makefile.in.diff?cvsroot=gcc&r1=1.77&r2=1.78



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20750


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

* [Bug libgcj/20750] libgcj needs a --with-java-home configure option
  2005-04-04 19:10 [Bug java/20750] New: libgcj needs a --with-java-home configure option fitzsim at redhat dot com
                   ` (7 preceding siblings ...)
  2005-04-05 23:46 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-06  3:44 ` cvs-commit at gcc dot gnu dot org
  2005-04-06  3:57 ` fitzsim at redhat dot com
  2005-04-06  6:55 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-04-06  3:44 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-04-06 03:44 -------
Subject: Bug 20750

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	fitzsim@gcc.gnu.org	2005-04-06 03:43:58

Modified files:
	libjava        : ChangeLog Makefile.am Makefile.in configure 
	                 configure.ac 
	libjava/external: Makefile.in 
	libjava/external/sax: Makefile.in 
	libjava/external/w3c_dom: Makefile.in 
	libjava/gcj    : Makefile.in 
	libjava/include: Makefile.in 
	libjava/java/lang: natRuntime.cc 
	libjava/testsuite: Makefile.in 

Log message:
	2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
	
	PR libgcj/20750
	* Makefile.am (AM_CXXFLAGS): Define JAVA_HOME.
	* Makefile.in: Regenerate.
	* configure.ac: Add --with-java-home option.
	* configure: Regenerate.
	* external/Makefile.in: Regenerate.
	* external/sax/Makefile.in: Regenerate.
	* external/w3c_dom/Makefile.in: Regenerate.
	* gcj/Makefile.in: Regenerate.
	* include/Makefile.in: Regenerate.
	* testsuite/Makefile.in: Regenerate.
	* java/lang/natRuntime.cc (insertSystemProperties): Set java.home
	to JAVA_HOME macro.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.3391.2.40&r2=1.3391.2.41
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.am.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.455.2.8&r2=1.455.2.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.in.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.485.2.8&r2=1.485.2.9
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/configure.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.253.2.2&r2=1.253.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/configure.ac.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.19.2.2&r2=1.19.2.3
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/external/Makefile.in.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.1&r2=1.1.14.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/external/sax/Makefile.in.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.2&r2=1.2.12.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/external/w3c_dom/Makefile.in.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.2&r2=1.2.12.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/gcj/Makefile.in.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.62&r2=1.62.10.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/include/Makefile.in.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.64&r2=1.64.4.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/java/lang/natRuntime.cc.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.47.2.3&r2=1.47.2.4
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/Makefile.in.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.73&r2=1.73.10.1



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20750


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

* [Bug libgcj/20750] libgcj needs a --with-java-home configure option
  2005-04-04 19:10 [Bug java/20750] New: libgcj needs a --with-java-home configure option fitzsim at redhat dot com
                   ` (8 preceding siblings ...)
  2005-04-06  3:44 ` cvs-commit at gcc dot gnu dot org
@ 2005-04-06  3:57 ` fitzsim at redhat dot com
  2005-04-06  6:55 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: fitzsim at redhat dot com @ 2005-04-06  3:57 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From fitzsim at redhat dot com  2005-04-06 03:57 -------
Fixed on HEAD and gcc-4_0-branch.  Closing.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20750


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

* [Bug libgcj/20750] libgcj needs a --with-java-home configure option
  2005-04-04 19:10 [Bug java/20750] New: libgcj needs a --with-java-home configure option fitzsim at redhat dot com
                   ` (9 preceding siblings ...)
  2005-04-06  3:57 ` fitzsim at redhat dot com
@ 2005-04-06  6:55 ` pinskia at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-06  6:55 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20750


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

end of thread, other threads:[~2005-04-06  6:55 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-04 19:10 [Bug java/20750] New: libgcj needs a --with-java-home configure option fitzsim at redhat dot com
2005-04-04 19:11 ` [Bug libgcj/20750] " fitzsim at redhat dot com
2005-04-04 19:15 ` pinskia at gcc dot gnu dot org
2005-04-04 20:03 ` mckinlay at redhat dot com
2005-04-04 20:44 ` fitzsim at redhat dot com
2005-04-04 20:48 ` fitzsim at redhat dot com
2005-04-04 21:27 ` mckinlay at redhat dot com
2005-04-04 21:39 ` fitzsim at redhat dot com
2005-04-05 23:46 ` cvs-commit at gcc dot gnu dot org
2005-04-06  3:44 ` cvs-commit at gcc dot gnu dot org
2005-04-06  3:57 ` fitzsim at redhat dot com
2005-04-06  6:55 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).