* Fix the apt bug that makes it break the circular dependency at a weird point
This is difficult because of the regression potential, should probably be avoided if we can fix it in the Depends themselves ?
* Try making default-jre-headless depend on both openjdk-6-jre-lib and openjdk-6-jre-headless
I tried this and it works : the dependency loop gets arbitrarily broken at that level rather than at tomcat6 level:
...
Setting up openjdk-6-jre-lib (6b12-0ubuntu6) ...
Setting up default-jre-headless (1.6-30ubuntu3.1) ...
Setting up openjdk-6-jre-headless (6b12-0ubuntu6) ...
...
Setting up tomcat6 (6.0.18-0ubuntu3) ...
The interesting thing is that this would fix any package depending on default-jre / default-jre-headless.
* Use the same ugly workaround as in ca-certificates-java postinst
The workaround is creating the missing /etc/$jvm/jvm.cfg file for the time it takes to start tomcat6:
if [ ! -f /etc/$jvm/jvm.cfg ]; then
temp_jvm_cfg=/etc/$jvm/jvm.cfg
mkdir -p /etc/$jvm
printf -- "-server KNOWN\n" > $temp_jvm_cfg
fi
...
[ -z "$temp_jvm_cfg" ] || rm -f $temp_jvm_cfg
* Add a Pre-Depend
That one we already know, and want to avoid if possible.
A few details on the proposed solutions:
* Fix the apt bug that makes it break the circular dependency at a weird point
This is difficult because of the regression potential, should probably be avoided if we can fix it in the Depends themselves ?
* Try making default- jre-headless depend on both openjdk-6-jre-lib and openjdk- 6-jre-headless jre-headless (1.6-30ubuntu3.1) ... 6-jre-headless (6b12-0ubuntu6) ... jre-headless.
I tried this and it works : the dependency loop gets arbitrarily broken at that level rather than at tomcat6 level:
...
Setting up openjdk-6-jre-lib (6b12-0ubuntu6) ...
Setting up default-
Setting up openjdk-
...
Setting up tomcat6 (6.0.18-0ubuntu3) ...
The interesting thing is that this would fix any package depending on default-jre / default-
* Use the same ugly workaround as in ca-certificates -java postinst jvm_cfg= /etc/$jvm/ jvm.cfg
The workaround is creating the missing /etc/$jvm/jvm.cfg file for the time it takes to start tomcat6:
if [ ! -f /etc/$jvm/jvm.cfg ]; then
temp_
mkdir -p /etc/$jvm
printf -- "-server KNOWN\n" > $temp_jvm_cfg
fi
...
[ -z "$temp_jvm_cfg" ] || rm -f $temp_jvm_cfg
* Add a Pre-Depend
That one we already know, and want to avoid if possible.