#721648 Upgrade fails if sa-compile was previously run as root

#721648#5
Date:
2013-09-02 18:05:05 UTC
From:
To:
Setting up spamassassin (3.3.2-6.1) ...
Running sa-compile (may take a long time)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create
'/var/lib/spamassassin/compiled/5.018/3.003002/Mail/SpamAssassin/CompiledRegexps'
mkdir /var/lib/spamassassin/compiled/5.018: Permission denied at
/usr/share/perl/5.18/ExtUtils/Install.pm line 469.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  at -e line 1.
make: *** [pure_site_install] Error 13
command 'make install >>/tmp/.spamassassin21507ExrTc9tmp/log' failed: exit 2
dpkg: error processing spamassassin (--configure):
  subprocess installed post-installation script returned error exit
status 25


richard@deodand:~$ ls -la /var/lib/spamassassin/compiled/
total 12
drwxrwxr-x 3 root         root         4096 Aug  6 21:23 .
drwxr-xr-x 5 debian-spamd debian-spamd 4096 Sep  2 07:38 ..
drwxrwxr-x 3 root         root         4096 Aug  6 21:23 5.014

The answer may be as simple as documenting the postinst's expectations
in README.Debian.

ttfn/rjk