From: "Petteri Räty" <betelgeuse@gentoo.org>
To: "Sven Köhler" <skoehler@upb.de>
Cc: gentoo-java@lists.gentoo.org
Subject: Re: [gentoo-java] Re: JDK used for compiling
Date: Mon, 19 Nov 2007 00:30:08 +0200 [thread overview]
Message-ID: <4740BCF0.1090703@gentoo.org> (raw)
In-Reply-To: <fhqd5c$2ha$1@ger.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 1694 bytes --]
Sven Köhler kirjoitti:
>> On Sun, 2007-11-18 at 20:06 +0100, Sven Köhler wrote:
>>>>> 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".
>>> Oh, and even if i set the system VM to 1.5, it still uses sun-jdk-1.6.
>>> Strange! Look:
>> SYSTEM VM != BUILD VM
>>
>>> 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.
>> http://www.gentoo.org/doc/en/java.xml#doc_chap5
>
> OK, so i don't understand.
>
> Why does commons-daemon use sun-jdk-1.6 to compile while sun-jdk-1.5* is
> installed too?
>
The default choice is the highest version of the default vm set for the
arch.
betelgeuse@pena /usr/share/java-config-2/config $ cat jdk-defaults.conf
# This files contain the default support jdk's
*= sun-jdk blackdown-jdk ibm-jdk-bin jrockit-jdk-bin
On x86 and amd64 this means that the highest version of sun-jdk
installed is used. But yeah I think it would be nicer to use the system
vm in case jdk.conf does not specify anything.
Regards,
Petteri
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
next prev parent reply other threads:[~2007-11-19 9:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-18 15:37 [gentoo-java] JDK used for compiling Sven Köhler
2007-11-18 17:41 ` William L. Thomson Jr.
2007-11-18 19:06 ` [gentoo-java] " Sven Köhler
2007-11-18 21:27 ` William L. Thomson Jr.
2007-11-18 22:08 ` Sven Köhler
2007-11-18 22:30 ` Petteri Räty [this message]
2007-11-19 13:09 ` Sven Köhler
2007-11-19 20:39 ` Petteri Räty
2007-11-19 21:06 ` Sven Köhler
[not found] ` <4740BB94.8050109@lists.obeliks.de>
[not found] ` <4740BD91.1080503@upb.de>
2007-11-18 23:25 ` Bernhard Frauendienst
2007-11-18 23:50 ` Sven Köhler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4740BCF0.1090703@gentoo.org \
--to=betelgeuse@gentoo.org \
--cc=gentoo-java@lists.gentoo.org \
--cc=skoehler@upb.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox