Installing openjdk-6-jre-headless pulls in X libraries

Bug #249201 reported by Thierry Carrez
6
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

On current intrepid, when installing openjdk-6-jre-headless on a server platform, all the X libraries generally required for the full openjdk-6-jre get installed as well. It even installs more than what the openjdk-6-jre package would.

This somewhat defeats the purpose of having a -headless package.

Reproduce : on a minimal server install :
$ sudo apt-get install openjdk-6-jre-headless
[...]
The following NEW packages will be installed:
  avahi-daemon bind9-host ca-certificates-java consolekit dbus dbus-x11 defoma
  fastjar file fontconfig fontconfig-config gcj-4.3-base gij-4.3
  hicolor-icon-theme java-common java-gcj-compat java-gcj-compat-headless
  libaccess-bridge-java libasound2 libatk1.0-0 libatk1.0-data
  libavahi-common-data libavahi-common3 libavahi-core5 libbcel-java
  libbind9-40 libcairo2 libcups2 libdaemon0 libdatrie0 libdbus-glib-1-2
  libdns43 libexpat1 libfontconfig1 libfontenc1 libfreetype6 libgcj-bc
  libgcj-common libgcj9-0 libgcj9-0-awt libgcj9-jar libgdbm3 libglib2.0-0
  libglib2.0-data libgnutls26 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common
  libice6 libisc41 libisccc40 libisccfg40 libjpeg62 liblcms1 liblog4j1.2-java
  liblog4j1.2-java-gcj liblwres40 libmagic1 libmx4j-java libnss-mdns
  libpam-ck-connector libpango1.0-0 libpango1.0-common libpixman-1-0
  libpng12-0 libregexp-java libsm6 libthai-data libthai0 libtiff4 libttf2
  libxcb-render-util0 libxcb-render0 libxcomposite1 libxcursor1 libxdamage1
  libxfixes3 libxfont1 libxft2 libxi6 libxml2 libxrandr2 libxrender1 libxtst6
  openjdk-6-jre-headless openjdk-6-jre-lib perl perl-modules rhino sgml-base
  ttf-dejavu ttf-dejavu-core ttf-dejavu-extra tzdata-java x-ttcidfont-conf
  xfonts-encodings xfonts-utils xml-core
[...]
1 upgraded, 98 newly installed, 0 to remove and 17 not upgraded.

$ sudo apt-get install openjdk-6-jre
[...]
The following NEW packages will be installed:
  avahi-daemon bind9-host ca-certificates-java consolekit dbus dbus-x11 defoma
  file fontconfig fontconfig-config java-common lesstif2 libaccess-bridge-java
  libasound2 libavahi-common-data libavahi-common3 libavahi-core5 libbind9-40
  libcups2 libcupsys2 libdaemon0 libdbus-glib-1-2 libdns43 libexpat1
  libfontconfig1 libfontenc1 libfreetype6 libgdbm3 libgif4 libglib2.0-0
  libglib2.0-data libice6 libisc41 libisccc40 libisccfg40 libjpeg62 liblcms1
  liblwres40 libmagic1 libnss-mdns libpam-ck-connector libpng12-0 libsm6
  libttf2 libxfont1 libxi6 libxml2 libxp6 libxt6 libxtst6 openjdk-6-jre
  openjdk-6-jre-headless openjdk-6-jre-lib perl perl-modules rhino sgml-base
  ttf-baekmuk ttf-bengali-fonts ttf-dejavu ttf-dejavu-core ttf-dejavu-extra
  ttf-indic-fonts-core ttf-kannada-fonts ttf-kochi-gothic ttf-kochi-mincho
  ttf-oriya-fonts ttf-telugu-fonts ttf-wqy-zenhei tzdata-java x-ttcidfont-conf
  xfonts-encodings xfonts-utils xml-core
[...]
1 upgraded, 74 newly installed, 0 to remove and 17 not upgraded.

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

> It even installs more than what the openjdk-6-jre package would.

wrong. we're not doing any black magic.

the x libs are installed because libgcj9-awt is recommended; all the java packages now depending on java-gcj-compat-dev | java2-runtime should depend on "default-jre | java2-runtime-headless" instead. please identify these packages, file bug reports and attach patches for these reports.

Changed in openjdk-6:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Thierry Carrez (ttx) wrote :

rhino would be the culprit here (depends on "java-gcj-compat | java1-runtime | java2-runtime"), causing java-gcj-compat-dev to be installed in the -headless case. I'll file a bug and patch about that.

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

rhino bug and debdiff filed in bug 249598

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

fixed in intrepid

Changed in openjdk-6:
status: Confirmed → 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.