Can dependency from "java2-runtime" be replaced by dependency from "java-virtual-machine"?

Bug #337842 reported by Heiko Ettelbrück
2
Affects Status Importance Assigned to Milestone
bouncycastle (Ubuntu)
Fix Released
Medium
Thierry Carrez

Bug Description

Hi,

my actual intention is to use the Bouncycastle JCE provider on an Ubuntu Server installation without GUI (e.g. without X libs installed). I use the JDK which is installed by default, which is openjdk-6-jre-headless.

Trying to install libbcprov-java, apt-get presents a huge list of packages it needs to install in addition because of libbcprov-java's dependencies:

http://packages.ubuntu.com/intrepid/libbcprov-java
Requires: java-gcj-compat OR java2-runtime (virtual package, provided by cacao-oj6-jre, default-jre, java-gcj-compat, openjdk-6-jre,
sun-java5-jre, sun-java6-jre)
--> Currently I need to install at least openjdk-6-jre on top of my current system, just to get the single JCE provider JAR file. Because of the dependencies of "openjdk-6-jre", the following packages are installed on top although I don't need them: fontconfig libgif4 libxi6 libxtst6 ttf-baekmuk ttf-bengali-fonts ttf-indic-fonts-core ttf-kannada-fonts ttf-kochi-gothic ttf-kochi-mincho ttf-oriya-fonts ttf-telugu-fonts ttf-wqy-zenhei

Proposes: java-virtual-machine (virtual package, provided by cacao-oj6-jre-headless, gij, gij-4.2, gij-4.3, jamvm, java-gcj-compat, java-gcj-compat-headless, kaffe-jthreads, kaffe-pthreads, openjdk-6-jre-headless, sablevm, sun-java5-jre, sun-java6-jre)
--> Here's the JDK which was installed by default: openjdk-6-jre-headless

My actual question is: Is it really necessary for the Bouncycastle JCE provider package to require a JRE with GUI support (I can't really imagine that)? If not, would it be possible to replace the dependency from "java2-runtime" by a dependency from "java-virtual-machine"?

Thanks for your feedback and potential change, and best regards
Heiko

Revision history for this message
Thierry Carrez (ttx) wrote :

Runtime dependency should be "default-jre-headless | java2-runtime-headless" so that it works with or without a full JRE and, if nothing installed, pulls our default headless JRE (openjdk-6-jre-headless on amd64/i386).

Changed in bouncycastle (Ubuntu):
assignee: nobody → Thierry Carrez (ttx)
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package bouncycastle - 1.39-2ubuntu3

---------------
bouncycastle (1.39-2ubuntu3) karmic; urgency=low

  * debian/control: Use -headless JRE dependencies (LP: #387884, #337842)
  * debian/control: Only suggest libbcprov-java-gcj on selected architectures,
    build libbcprov-java architecture "any" to have it work (LP: #386307)

 -- Thierry Carrez <email address hidden> Fri, 03 Jul 2009 13:55:51 +0200

Changed in bouncycastle (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.