Package: tomcat5.5 Severity: minor Version: 5.5.26-3 Tags: patch User: [EMAIL PROTECTED] Usertags: origin-ubuntu intrepid
A superfluous /etc/tomcat5.5/tomcat5.5 -> /etc/tomcat5.5 link is created on install. This is confusing, and makes purging files fail because /etc/tomcat5.5 is never empty. Analysis: tomcat5.5.links creates a link : /var/lib/tomcat5.5/conf -> /etc/tomcat5.5 but then in tomcat5.5.postinst there is : ln -sf /etc/tomcat5.5 /var/lib/tomcat5.5/conf This creates a tomcat5.5 link inside /var/lib/tomcat5.5/conf, which points to /etc/tomcat5.5. Final result is a /etc/tomcat5.5/tomcat5.5 -> /etc/tomcat5.5 link. Obvious solution is to drop the ln -sf in postinst, see attached patch. -- Thierry Carrez
diff -u tomcat5.5-5.5.26/debian/tomcat5.5.postinst tomcat5.5-5.5.26/debian/tomcat5.5.postinst --- tomcat5.5-5.5.26/debian/tomcat5.5.postinst +++ tomcat5.5-5.5.26/debian/tomcat5.5.postinst @@ -25,7 +25,6 @@ chmod -R 770 /etc/tomcat5.5 chmod 750 /var/log/tomcat5.5 /etc/tomcat5.5 chmod 700 /var/cache/tomcat5.5 - ln -sf /etc/tomcat5.5 /var/lib/tomcat5.5/conf # Moving conffiles. if dpkg --compare-versions "$2" le "5.5.25-4"; then