+++ Michael Terry [2012-07-26 15:10 -0400]:
> 
> This patch should fix it.  /usr/lib/jvm/default-java is provided by
> default-jre-headless.  Which is Depended on by default-jre, which is
> Depended on by default-jdk.  So if you switch the hard-coded Depend on
> openjdk-6-jdk to default-jdk, you should be fine.  Built for me.
> 
> Alternatively, I suppose you could change from the default-java symlink
> to hard-coding openjdk-6 in debian/rules too.  But this way seems nicer,
> since the package doesn't seem to require openjdk-6(?).

I believe the dep was originally set to openjdk-6-jdk because the
package only built with that sun-derived java, not gcj, and
default-jdk on some architectures was gcj. Now things may have changed
in the intervening couple of years so that you don't _need_ openjdk,
but I'm not sure. I've always been a bit vague about exactly how all
this fits together. As you say the packaging should be consistent and
either use /usr/lib/jvm/default-java with default-jdk, or use
/usr/lib/jvm/openjdk-6 with openjdk-6-jdk.

however it sseems that on amd64 the path is
/usr/lib/jvm/java-6-openjdk-amd64 strongly suggesting that it'll be
different on other architectures. Is it always
/usr/lib/jvm/java-6-openjdk-<arch>?

> Thanks for considering the patch.

I'm happy to upload that if it works, but I don't know if it'll work
on all arches. I could run on the various porter machines to try it or
just upload it and see if it works. It'd be nice to understand exactly
what the best thing to do in this sort of circumstance is. 

Neither http://www.debian.org/doc/packaging-manuals/java-policy nor
http://pkg-java.alioth.debian.org/docs/tutorial.html really clarified
this, although it does seem that 'default-jdk' is normally recommended
there. I'll try it, and mail the java list if it doesn't work
everywhere. 

Wookey
-- 
Principal hats:  Linaro, Emdebian, Wookware, Balloonboard, ARM
http://wookware.org/


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to