libaccess-bridge-java-jni recommendation pulls X libraries in a -headless install

Bug #395074 reported by Thierry Carrez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

openjdk-6-jre-headless depends on libaccess-bridge-java, which recommends libaccess-bridge-java-jni, which depends on multiple graphical libraries (libglib2.0-0, libgtk2.0-0...)

This ends up pulling 12Mb of extra libraries on a jre-headless install on a server, and jeopardizes the EucalyptusFitOnCdSpec objectives.

A solution could be to have:
* libaccess-bridge-java SUGGEST libaccess-bridge-java-jni
* openjdk-6-jre RECOMMEND libaccess-bridge-java-jni
That way you would get it installed on -jre and not installed on -jre-headless.

I'm not sure it makes sense from a java-access-bridge perspective, though ?

Related branches

Revision history for this message
Matthias Klose (doko) wrote :

no, both packages have to be present, it's just a split to have on package architecture independent.

we have to check how/if openjdk-6-jre-headless works without the bridge.

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

I see. It's far from a complete test, but FWIW I can tell that tomcat6 runs using openjdk-6-jre-headless that doesn't have /usr/share/java/gnome-java-bridge.jar or the JNI package installed. Given the nature of what the bridge does, it seems normal that the jre-headless should work without it. Those requiring the accessibility bridge for Swing GUI applications should use a full JRE anyway...

IF openjdk-6-jre-headless runs OK without the bridge, the the "fix" would be to have openjdk-6-jre-headless SUGGEST libaccess-bridge-java. The full -jre already DEPENDs on it.

Revision history for this message
Matthias Klose (doko) wrote :

already fixed in bzr, just didn"t remove the depdency in the -headless package.

affects: java-access-bridge (Ubuntu) → openjdk-6 (Ubuntu)
Changed in openjdk-6 (Ubuntu):
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openjdk-6 - 6b16~pre4-0ubuntu4

---------------
openjdk-6 (6b16~pre4-0ubuntu4) karmic; urgency=low

  [Edward Nevill]
  * Added Bytecode Interpreter Generator.
  * Added ARM templates for above.
  * Removed olde optimised ARM assebler.
  * Added -g0 because of problems with ld linking -g.
  * Changed alignment to 64 now that as bug is fixed.

  [Matthias Klose]
  * Update IcedTea build infrastructure (20090710).
  * Let the -jre package depend on the access-bridge package, not the
    -jre-headless package. LP: #395074.
  * Suggested by Ed Nevill:
    - Pass -timeout:3 when running the jtreg testsuite on zero architectures.
    - Pass -Xmx256M -vmoption:-Xmx256M on armel for the jtreg testsuite run.
  * Tighten build dependency on llvm-dev.

 -- Matthias Klose <email address hidden> Fri, 03 Jul 2009 18:32:50 +0200

Changed in openjdk-6 (Ubuntu):
status: In Progress → 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.