Package: suphp-common
Version: 0.6.1-1
Severity: normal
Tags: patch

When suphp-common is removed (not purged) and there are no logfiles in
/var/log/suphp, that directory is removed. This causes the
/etc/logrotate.d/suphp-common script to fail with the following output:

> /etc/cron.daily/logrotate:
> error: error accessing /var/log/suphp: No such file or directory
> error: suphp-common:1 glob failed for /var/log/suphp/*.log
> run-parts: /etc/cron.daily/logrotate exited with return code 1

The simplest solution seems to me to be to put a placeholder file in
/var/log/suphp so it is not removed on package removal. I will attach a
patch that does so, but I am unable to get suphp to build at the moment
and therefore haven't tested it.

-Ted

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.17-2-k7
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)

Versions of packages suphp-common depends on:
ii  debconf [debconf-2.0]   1.5.5            Debian configuration management sy
pn  libapache-mod-suphp | l <none>           (no description available)
ii  libc6                   2.3.6.ds1-5      GNU C Library: Shared libraries
ii  libgcc1                 1:4.2-20060709-1 GCC support library
ii  libstdc++6              4.1.1-15         The GNU Standard C++ Library v3
ii  php4-cgi                4:4.4.4-1        server-side, HTML-embedded scripti

suphp-common recommends no packages.
diff -ru suphp-0.6.1/debian/rules suphp-0.6.1-new/debian/rules
--- suphp-0.6.1/debian/rules    2006-10-07 00:47:26.000000000 +1000
+++ suphp-0.6.1-new/debian/rules        2006-10-07 00:49:28.000000000 +1000
@@ -71,6 +71,7 @@
        find -name ".svn" -type d | xargs rm -rf
        dh_installdirs
        dh_install
+       touch debian/suphp-common/var/log/suphp/.placeholder
        docbook-to-man debian/suphp-common.manpage.sgml > 
debian/suphp-common/usr/share/man/man8/suphp.8
        install -m 644 debian/suphp-common.lintian-override 
debian/suphp-common/usr/share/lintian/overrides/suphp-common
        mv debian/suphp-common/etc/suphp/suphp.conf-example 
debian/suphp-common/etc/suphp/suphp.conf

Reply via email to