On Wed, Mar 25, 2009 at 5:15 PM, Matthew Johnson <mj...@debian.org> wrote: > On Tue Mar 24 18:53, Dominik Smatana wrote: >> > For the dependency on the library we are now requesting that >> > libraries do not depend on runtimes at all. >> >> Fixed in r8112, I think "Debian policy for Java" ( >> http://www.debian.org/doc/packaging-manuals/java-policy/x105.html ) >> should be updated to stop confusing newbie packagers like me :) > > Yeah, it's on the list of things to do at debconf. > >> > Because we want repeatability you also need to ensure that you always >> > use the same javac to build, no matter what the alternative is. Since >> > you are manually compiling and jaring, may I suggest javahelper, which >> > has a module to do this for you (and also a bunch of other useful >> > things). There is documentation in the javahelper package. > > You still don't explicitly set which javac and jar program you are > using. You must use /usr/lib/jvm/default-jdk/bin/javac instead of javac > (or whichever path you are using). Also, I think the recommended depend > is actually default-jdk-builddep (I always forget that).
Setting JAVA_HOME is the preferred way instead of using complete path for javac. default-jdk-builddep is to be used only when you are also creating a -gcj binary package. By the way, I am not sure how well javahelper and cdbs go. But if you write a small ant build script (if you are familiar with ant) then the ant/cdbs combo will make life easier. Onkar -- To UNSUBSCRIBE, email to debian-java-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org