Re: Selecting a javac which supports at least Java5

2007-03-10 Thread Florian Weimer
* Marcus Better: > Yes, that is the only correct way. We must be sure that the package > builds with identical results on different systems, It's not so much that we need identical results, but the result must use the same ABI, which isn't true across major Java versions. -- To UNSUBSCRIBE, em

Re: Selecting a javac which supports at least Java5

2007-03-10 Thread Marcus Better
Benjamin Mesing wrote: > I want to build a package which requires Java 5. Therefore I > build-depend on (sun-java5-jdk | sun-java6-jdk). Please don't do this, just select one of them. > How do I ensure, that the correct compiler is used. > Is the only way, to explicitly set the java > compiler p

Re: Selecting a javac which supports at least Java5

2007-03-10 Thread Michael Koch
On Sat, Mar 10, 2007 at 12:59:53PM +0100, Eric Lavarde wrote: > Hi, > > you might use the cdbs system and add the variable as follows: > JAVA_HOME_DIRS := /usr/lib/jvm/java-1.5.0 /usr/lib/jvm/java-1.6.0 > (in order of preference) > > Note: some sponsors refuse the CDBS system, but I don't t

Re: Selecting a javac which supports at least Java5

2007-03-10 Thread Eric Lavarde
Hi, you might use the cdbs system and add the variable as follows: JAVA_HOME_DIRS := /usr/lib/jvm/java-1.5.0 /usr/lib/jvm/java-1.6.0 (in order of preference) Note: some sponsors refuse the CDBS system, but I don't think this is the case within the Debian-Java community. Hope this helps,

Selecting a javac which supports at least Java5

2007-03-10 Thread Benjamin Mesing
[Please CC, I am not subscribed] Hello, I want to build a package which requires Java 5. Therefore I build-depend on (sun-java5-jdk | sun-java6-jdk). How do I ensure, that the correct compiler is used. E.g. if a free java compiler is installed, /usr/bin/javac might point to the free compiler whi