Re: JDK used for compiling

Sven Köhler <[email protected]>
Newsgroups gmane.linux.gentoo.java
Message-ID <[email protected]>
>> I was conviced, that ebuilds always use the lowest JDK version possible.
>> But it seems, that packages use the System VM - which is 1.6 in my case.
>> But 1.5 is also installed.
> 
> Ebuilds compile source/target based on the lowest JDK version specified
> in the ebuild. Which vm is used is controlled by by the ebuild and/or
> the env. But most times that's restricted just to a version that
> satisfied a virtual. Not specific vms.

Oh good! I was hoping to hear that.

But here, on my machine with default config, i'm compiling
commons-daemon, and it says "using sun-jdk-1.6".
Watch this:

# emerge -1 commons-daemon
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) dev-java/commons-daemon-1.0.1-r2 to /
 * daemon-1.0.1.tar.gz RMD160 SHA1 SHA256 size ;-) ...

       [ ok ]
 * checking ebuild checksums ;-) ...

       [ ok ]
 * checking auxfile checksums ;-) ...

       [ ok ]
 * checking miscfile checksums ;-) ...

       [ ok ]
 * checking daemon-1.0.1.tar.gz ;-) ...

       [ ok ]
 * Using: sun-jdk-1.6
>>> Unpacking source...
>>> Unpacking daemon-1.0.1.tar.gz to
/var/tmp/portage/dev-java/commons-daemon-1.0.1-r2/work


Oh, and even if i set the system VM to 1.5, it still uses sun-jdk-1.6.
Strange! Look:

# java-config -L
The following VMs are available for generation-2:
*)      Sun JDK 1.5.0.13 [sun-jdk-1.5]
2)      Sun JDK 1.6.0.03 [sun-jdk-1.6]


Why that? I don't find any particular line in commons-daemon's ebuild
which specifies, that it should use JDK 1.6 instead of JDK 1.5.
The dependencies are >=virtual/jdk-1.4 and such.


Is this a bug, maybe?
signature.asc (application/pgp-signature, 249 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHQI037Ww7FjRBE4ARAikSAJ9tVA5OnFoDCJ7g6ZP4hc5zGRbZpACg47rR
gxY3KGip/aHb3/3J3ILlJaQ=
=uDoL
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.