← Back to team overview

openjdk team mailing list archive

[Bug 291123] Re: Circular dependency between -lib and -jre-headless

 

Matthias:

tomcat6 depends on tomcat6-common, which depends on libtomcat6-java,
which depends on default-jre-headless, which depends on openjdk-6-jre-
headless...

My understanding was that since "a package will not be configured unless
all of the packages listed in its Depends field have been correctly
configured", tomcat6 should not have its postinst run before openjdk-6
-jre-headless is configured... and that apt-get was just trying to do it
to solve the circular dependency between -lib and -jre-headless.

I suppose I got it wrong somewhere ?

-- 
Circular dependency between -lib and -jre-headless
https://bugs.launchpad.net/bugs/291123
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: Won't Fix

Bug description:
openjdk-6-jre-headless depends on openjdk-6-jre-lib, while openjdk-6-jre-lib depends on openjdk-6-jre-headless.

This circular dependency can result in packages depending on default-jre-headless to fail to configure properly. One example of this is bug 288616, where Tomcat 6 fails to start during postinst if the dependency loop was arbitrarily broken at the wrong point.

This should probably be fixed by removing the "Depends: openjdk-6-jre-headless" from openjdk-6-jre-lib as nothing should rely on depending on -jre-lib to install jre-headless.



References