Please find attached a patch, backported from testing, for this bug. It build the symlink (/etc/tomcat5.5/policy.d/05solr.policy -> ../../solr/tomcat.policy) in the postinst maintainer script. This prevents the condition that triggers the bug.
-- Jan-Pascal van Best janpas...@vanbest.org, janpas...@vanbest.eu http://www.vanbest.org/janpascal/ GPG key fingerprint 4617 E5FB C56D ACB6 7C8C DE64 3A4C B270 1A89 CC23
Index: debian/solr-tomcat5.5.links =================================================================== --- debian/solr-tomcat5.5.links (.../tags/solr/1.2.0+ds1-3) (revision 6280) +++ debian/solr-tomcat5.5.links (.../branches/solr/1.2.0+ds1-3+lenny) (working copy) @@ -1,2 +1 @@ /etc/solr/solr-tomcat5.5.xml /etc/tomcat5.5/Catalina/localhost/solr.xml -/etc/solr/tomcat.policy /etc/tomcat5.5/policy.d/05solr.policy Index: debian/solr-tomcat5.5.postrm =================================================================== --- debian/solr-tomcat5.5.postrm (.../tags/solr/1.2.0+ds1-3) (revision 6280) +++ debian/solr-tomcat5.5.postrm (.../branches/solr/1.2.0+ds1-3+lenny) (working copy) @@ -17,6 +17,8 @@ fi fi + rm -f /etc/tomcat5.5/policy.d/05solr.policy + # Is there a way not to restart tomcat if it is due to be removed, too? if [ -x /usr/sbin/invoke-rc.d ]; then invoke-rc.d tomcat5.5 restart || true Index: debian/rules =================================================================== --- debian/rules (.../tags/solr/1.2.0+ds1-3) (revision 6280) +++ debian/rules (.../branches/solr/1.2.0+ds1-3+lenny) (working copy) @@ -59,9 +59,9 @@ rm -f $(COMMON_INSTDIR)/usr/share/solr/META-INF/LICENSE.txt install/solr-tomcat5.5:: - # Configure tomcat (also see solr-tomcat5.5.links) + # Configure tomcat (also see solr-tomcat5.5.links and solr-tomcat5.5.post{inst,rm}) install --mode 0644 debian/solr-tomcat5.5.xml $(TOMCAT_INSTDIR)/etc/solr/ - install --mode 0644 debian/tomcat.policy $(TOMCAT_INSTDIR)/etc/solr/tomcat.policy + install --mode 0644 debian/tomcat.policy $(TOMCAT_INSTDIR)/etc/solr/ #install/solr-jetty:: # # Configure Jetty Index: debian/solr-tomcat5.5.postinst =================================================================== --- debian/solr-tomcat5.5.postinst (.../tags/solr/1.2.0+ds1-3) (revision 6280) +++ debian/solr-tomcat5.5.postinst (.../branches/solr/1.2.0+ds1-3+lenny) (working copy) @@ -22,6 +22,8 @@ chown -R tomcat55:root /var/lib/solr/data fi + ln -sf /etc/solr/tomcat.policy /etc/tomcat5.5/policy.d/05solr.policy + ;; abort-upgrade|abort-remove|abort-deconfigure)
signature.asc
Description: OpenPGP digital signature