[fedora-java] The default java alternative?

Andrew Haley aph at redhat.com
Wed May 6 10:12:30 UTC 2009


Stepan Kasal wrote:

> On Tue, May 05, 2009 at 01:43:59PM -0400, Bill Nottingham wrote:
>> Andrew Overholt (overholt at redhat.com) said: 
>>> * Andrew Haley <aph at redhat.com> [2009-05-05 10:51]:
>>>> The best defaults for koji are probably gcj on non-x86 machines and
>>>> openjdk on x86 machines.
>>> If I say "yum install java-devel" what gets installed?  How is it
>>> determined?
>> Via the comps file. The current java development group is attached. By
>> default, installing the group gets you the 'mandatory' and 'default'
>> packages.
>>
>> The comps file does not have arch-specific bits, so doing gcj on
>> non-x86 and openjdk on x86 isn't really practical, without a lot
>> of metapackages.
> 
> this explanation sort of confuses me.  The current situation really
> *is* what Andrew Haley proposed.
> 
> I guess that though the comps file does not have arch-specific bits,
> the installation is determined by arch-specific dependencies in the
> packages.
> 
> That was exactly what has brought my attention to this:
> the differences between the two java's (e.g. that jni.h is installed
> to the default include path by gcj but not by openjdk, different
> javadocs) make the good old generic
> 	BuildRequires: java-devel
> very problematic, so I had to change it to
> 	BuildRequires: java-1.5.0-gcj-devel
> 
> Well, my package builds fine with gcj and my conscience is clear as I
> have reported this, so all is fine.  :-)

Sure, but it would make much more sense to look for jni.h in the right
place: then it would build with either.  I would like to move jni.h out
of the compiler's default include path, but then God only knows what
else would break.

Andrew.




More information about the fedora-devel-java-list mailing list