Installing openjdk-6-jre-headless pulls in dbus/avahi

Bug #261847 reported by Thierry Carrez
4
Affects Status Importance Assigned to Milestone
openjdk-6 (Ubuntu)
Fix Released
Critical
Unassigned
Intrepid
Fix Released
Critical
Unassigned

Bug Description

On a current intrepid setup, installing openjdk-6-jre-headless pulls in several packages that might not be suitable for a server setup : avahi-daemon, dbus, consolekit, dbus-x11...

They are pulled in through the libnss-mdns Recommends, as well as 24 other packages. Complete list follows:
avahi-daemon libavahi-common3 libavahi-common-data libavahi-core5 libdaemon0 libdbus-1-3 libexpat1 dbus consolekit libck-connector0 libdbus-glib-1-2 libglib2.0-0 libglib2.0-data libpam-ck-connector dbus-x11 bind9-host libbind9-40 libcap2 libdns43 libisc44 libisccfg40 libisccc40 liblwres40 libxml2 xml-core sgml-base perl perl-modules

As we want to promote usage of Java-based software on Ubuntu server, we might need a basic openjdk-6-jre-headless package that can be used as a dependency for a Java server package without pulling in too many packages.

I propose to downgrade the libnss-mdns recommend to a suggest (for openjdk-6-jre-headless), resulting in going from 37 dependencies for that runtime on a bare install to a more healthy 9.

According to the changelog, this Recommend was added for 6b09-1~pre1, but I am not sure it qualifies for something you want to find on all but specific setups ?

Proposed patch follows.

Related branches

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

openjdk-6_6b11-6ubuntu2.debdiff

Rick Clark (dendrobates)
Changed in openjdk-6:
importance: Undecided → Critical
milestone: none → intrepid-alpha-6
status: New → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

mdz tested the program from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=477211 and apparently it works fine without libnss-mdns installed. Matthias, does that change the situation here? Is this due to a mismatch between system nsswitch.conf and the available non-default-bit packages in a biarch environment, rather than being something we need to worry about in the normal case?

Matthias Klose (doko)
Changed in openjdk-6:
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openjdk-6 - 6b11-6ubuntu2

---------------
openjdk-6 (6b11-6ubuntu2) intrepid; urgency=low

  * Update IcedTea build infrastructure (20080906).
  * openjdk-6-jre-headless: Make libnss-mdns a suggestion instead of
    a recommendation. LP: #261847.

 -- Matthias Klose <email address hidden> Mon, 08 Sep 2008 22:08:31 +0200

Changed in openjdk-6:
status: In Progress → Fix Released
Revision history for this message
Loïc Minier (lool) wrote :

Shall we keep a task to add a libmdns -> libmdns32 depends?

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

> Shall we keep a task to add a libmdns -> libmdns32 depends

do we want to force installation of 32bit libraries?

Revision history for this message
Loïc Minier (lool) wrote :

Not really, but I think this would be more sensible than the jdk -> libmdns dep; the jdks have absolutely nothing to do with mdns whatsoever, they just use libc's resolver like any other app.

The only difference will all other packages using libc's resolver is that they are more likely to be used as 32-bits apps under 64-bits.

Ideally, we would express something like "libmdns depends on lib32mdns if you have ia32-libs".

Or perhaps we should simply make sure that if this happens, some sensible message is thrown instead of silently failing the name resolution queries?

Revision history for this message
Matthias Klose (doko) wrote : Re: [Openjdk] [Bug 261847] Re: Installing openjdk-6-jre-headless pulls in dbus/avahi

Loïc Minier schrieb:
> Ideally, we would express something like "libmdns depends on lib32mdns
> if you have ia32-libs".

yes, that would be helpful for the -gcj packages as well.

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

The libnss-mdns Recommend was reintroduced in 6b12~pre1-0ubuntu1

Changed in openjdk-6:
status: Fix Released → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openjdk-6 - 6b12~pre1-0ubuntu3

---------------
openjdk-6 (6b12~pre1-0ubuntu3) intrepid; urgency=low

  * Update IcedTea build infrastructure (20080915).
  * Reapply: openjdk-6-jre-headless: Make libnss-mdns a suggestion
    instead of a recommendation. LP: #261847.
  * Build-depend against fixed fastjar. LP: #267177.

 -- Matthias Klose <email address hidden> Mon, 15 Sep 2008 20:16:51 +0200

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