← Back to team overview

openjdk team mailing list archive

[Bug 261847] Re: Installing openjdk-6-jre-headless pulls in dbus/avahi

 

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?

-- 
Installing openjdk-6-jre-headless pulls in dbus/avahi
https://bugs.launchpad.net/bugs/261847
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.

Status in “openjdk-6” source package in Ubuntu: Fix Released
Status in openjdk-6 in Ubuntu Intrepid: Fix Released

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.



Follow ups

References