Package: spamassassin
Version: 3.3.2-5
Severity: normal

During a upgrade today the postinst failed:
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> Ein Paket konnte nicht installiert werden. Versuch, dies zu lösen:
> spamassassin (3.3.2-5) wird eingerichtet ...
> Running sa-compile (may take a long time)
> /bin/pwd: Öffnen von Verzeichnis „../../..“ nicht möglich: Keine Berechtigung
> /bin/pwd: Öffnen von Verzeichnis „../../..“ nicht möglich: Keine Berechtigung
> Use of chdir('') or chdir(undef) as chdir() is deprecated at 
> /usr/share/perl/5.14/ExtUtils/ParseXS.pm line 1065, <GEN0> line 161.
> /bin/pwd: Öffnen von Verzeichnis „../../..“ nicht möglich: Keine Berechtigung
> /bin/pwd: Öffnen von Verzeichnis „../../../../../../../../../..“ nicht 
> möglich: Keine Berechtigung
> Use of chdir('') or chdir(undef) as chdir() is deprecated at 
> /usr/share/perl/5.14/ExtUtils/Install.pm line 561.
> Use of chdir('') or chdir(undef) as chdir() is deprecated at 
> /usr/share/perl/5.14/ExtUtils/Install.pm line 561.
> Use of chdir('') or chdir(undef) as chdir() is deprecated at 
> /usr/share/perl/5.14/ExtUtils/Install.pm line 561.
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> ERROR: Cannot copy 
> 'blib/arch/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.bs' to 
> '/var/lib/spamassassin/compiled/5.014/3.003002/auto/Mail/SpamAssassin/CompiledRegexps/body_0/body_0.bs':
>  Datei oder Verzeichnis nicht gefunden
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>  at -e line 1
> make: *** [pure_site_install] Fehler 2

I tracked it down to TMPDIR being set to /tmp/user/136 by pam_tmpdir.
See Bug #195290 for reference; perhaps a similar fix should be applied
before invoking sa-learn?

The following worked fine:
 su - debian-spamd
 unset TMPDIR
 sa-compile
so I inserted the following line into /usr/bin/sa-learn to fix it:
 delete $ENV{TMPDIR};

Probably not the right thing to do, since sa-learn can be invoked by any
user, but until sa-learn learns how to correctly work wirh a private
$TMPDIR, I consider that a valid work-around.
-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.7.4 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages spamassassin depends on:
ii  adduser                         3.113+nmu3
pn  libarchive-tar-perl             <none>
ii  libhtml-parser-perl             3.69-2
ii  libnet-dns-perl                 0.68-1.1
ii  libnetaddr-ip-perl              4.062+dfsg-1
ii  libsocket6-perl                 0.23-1+b2
ii  libsys-hostname-long-perl       1.4-2
ii  libwww-perl                     6.04-1
ii  perl                            5.14.2-17
ii  perl-modules [libio-zlib-perl]  5.14.2-17

Versions of packages spamassassin recommends:
ii  gcc                        4:4.7.2-1
ii  gnupg                      1.4.12-7
ii  libc6-dev                  2.13-38
ii  libio-socket-inet6-perl    2.69-2
ii  libmail-spf-perl           2.8.0-1
ii  make                       3.81-8.2
ii  perl [libsys-syslog-perl]  5.14.2-17
ii  re2c                       0.13.5-1
ii  spamc                      3.3.2-5

Versions of packages spamassassin suggests:
ii  libdbi-perl                                  1.622-1
ii  libio-compress-perl [libcompress-zlib-perl]  2.055-1
ii  libio-socket-ssl-perl                        1.76-2
ii  libmail-dkim-perl                            0.39-1
pn  libnet-ident-perl                            <none>
ii  perl [libcompress-zlib-perl]                 5.14.2-17
pn  pyzor                                        <none>
pn  razor                                        <none>

-- Configuration Files:
/etc/default/spamassassin changed:
ENABLED=1
OPTIONS="--create-prefs --max-children 5 --helper-home-dir"
PIDFILE="/var/run/spamd.pid"
CRON=0


-- no debconf information


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to