Bug#659474: spamassassin: sa-compile problem on upgrade
I've just gone through an upgrade from a basic squeeze installation on which sa-compile and sa-update had previously run successfully, and I don't see the behavior you're talking about. Had you enabled the cron job and run sa-compile successfully prior to the upgrade? My test system is a virtual machine on which only minimal packages were installed (e.g. nothing was selected from tasksel, and the only individual packages installed were openssh-server, spamassassin, and re2c), so it's hard to see where there might be a missing dependency. For reference, here are the relevant bits from my upgrade transcript: root@squeeze:~# apt-get install spamassassin re2c Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: binutils cpp cpp-4.4 gcc gcc-4.4 libc-dev-bin libc6-dev libdb4.7 libdigest-hmac-perl libdigest-sha1-perl liberror-perl libfont-afm-perl libgmp3c2 libgomp1 libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libio-socket-inet6-perl libmail-spf-perl libmailtools-perl libmpfr4 libnet-dns-perl libnet-ip-perl libnetaddr-ip-perl libsocket6-perl libsys-hostname-long-perl libtimedate-perl liburi-perl libwww-perl linux-libc-dev make manpages-dev perl perl-modules spamc Suggested packages: binutils-doc cpp-doc gcc-4.4-locales gcc-multilib autoconf automake1.9 libtool flex bison gdb gcc-doc gcc-4.4-multilib libmudflap0-4.4-dev gcc-4.4-doc libgcc1-dbg libgomp1-dbg libmudflap0-dbg libcloog-ppl0 libppl-c2 libppl7 glibc-doc libdata-dump-perl libcrypt-ssleay-perl libio-socket-ssl-perl make-doc perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl razor libnet-ident-perl libdbi-perl pyzor libcompress-zlib-perl libmail-dkim-perl Recommended packages: libsys-syslog-perl The following NEW packages will be installed: binutils cpp cpp-4.4 gcc gcc-4.4 libc-dev-bin libc6-dev libdb4.7 libdigest-hmac-perl libdigest-sha1-perl liberror-perl libfont-afm-perl libgmp3c2 libgomp1 libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-tree-perl libio-socket-inet6-perl libmail-spf-perl libmailtools-perl libmpfr4 libnet-dns-perl libnet-ip-perl libnetaddr-ip-perl libsocket6-perl libsys-hostname-long-perl libtimedate-perl liburi-perl libwww-perl linux-libc-dev make manpages-dev perl perl-modules re2c spamassassin spamc 0 upgraded, 38 newly installed, 0 to remove and 0 not upgraded. Need to get 28.9 MB of archives. After this operation, 95.6 MB of additional disk space will be used. Do you want to continue [Y/n]? ... Setting up spamassassin (3.3.1-1) ... SpamAssassin Mail Filter Daemon: disabled, see /etc/default/spamassassin root@squeeze:~# sa-update -v Update available for channel updates.spamassassin.org Update was available, and was downloaded and installed successfully root@squeeze:~# sa-compile Jul 23 23:56:17.520 [5628] info: generic: base extraction starting. this can take a while... Jul 23 23:56:17.520 [5628] info: generic: extracting from rules of type body_0 100% [=] 79.64 rules/sec 00m07s DONE 100% [=] 268.94 bases/sec 00m09s DONE Jul 23 23:56:35.153 [5628] info: body_0: 1039 base strings extracted in 18 seconds cd /tmp/.spamassassin5628tyS9VGtmp cd Mail-SpamAssassin-CompiledRegexps-body_0 re2c -i -b -o scanner1.c scanner1.re re2c -i -b -o scanner2.c scanner2.re re2c -i -b -o scanner3.c scanner3.re re2c -i -b -o scanner4.c scanner4.re re2c -i -b -o scanner5.c scanner5.re re2c -i -b -o scanner6.c scanner6.re /usr/bin/perl Makefile.PL PREFIX=/tmp/.spamassassin5628tyS9VGtmp/ignored INSTALLSITEARCH=/var/lib/spamassassin/compiled/5.010/3.003001 Writing Makefile for Mail::SpamAssassin::CompiledRegexps::body_0 make cp body_0.pm blib/lib/Mail/SpamAssassin/CompiledRegexps/body_0.pm /usr/bin/perl /usr/share/perl/5.10/ExtUtils/xsubpp -typemap /usr/share/perl/5.10/ExtUtils/typemap body_0.xs body_0.xsc mv body_0.xsc body_0.c cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\1.0\ -DXS_VERSION=\1.0\ -fPIC -I/usr/lib/perl/5.10/CORE body_0.c cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\1.0\ -DXS_VERSION=\1.0\ -fPIC -I/usr/lib/perl/5.10/CORE scanner1.c cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\1.0\ -DXS_VERSION=\1.0\ -fPIC -I/usr/lib/perl/5.10/CORE scanner2.c cc -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe
Bug#659474: spamassassin: sa-compile problem on upgrade
On Tue, Jul 24, 2012 at 12:19:46AM -0700, Noah Meyerhans wrote: Had you enabled the cron job and run sa-compile successfully prior to the upgrade? I don't remember. I had not touched the spamassassin setup for years. My test system is a virtual machine on which only minimal packages were installed (e.g. nothing was selected from tasksel, and the only individual packages installed were openssh-server, spamassassin, and re2c), so it's hard to see where there might be a missing dependency. As mentioned in the original report (why did you not cc the original reporter, btw?), the problem existed in between spamassassin upgrade and libc6-dev upgrade. If there was nothing holding back libc6-dev in your test apt-get upgrade (and it's likely that a minimal install would not have anything like that), the problem will not appear. If spamassassin did depend on the proper version of libc6-dev, it too would have been held back until dist-upgrade in my real-world case. $ grep -E 'spamassassin|libc9-dev' /var/log/dpkg.log 2012-07-20 15:27:03 upgrade spamassassin 3.3.1-1 3.3.2-3 2012-07-20 15:27:03 status half-configured spamassassin 3.3.1-1 2012-07-20 15:27:03 status unpacked spamassassin 3.3.1-1 2012-07-20 15:27:03 status half-installed spamassassin 3.3.1-1 2012-07-20 15:27:03 status half-installed spamassassin 3.3.1-1 2012-07-20 15:27:03 status half-installed spamassassin 3.3.1-1 2012-07-20 15:27:04 status unpacked spamassassin 3.3.2-3 2012-07-20 15:27:04 status unpacked spamassassin 3.3.2-3 2012-07-20 15:29:45 configure spamassassin 3.3.2-3 3.3.2-3 2012-07-20 15:29:45 status unpacked spamassassin 3.3.2-3 2012-07-20 15:29:45 status unpacked spamassassin 3.3.2-3 2012-07-20 15:29:45 status unpacked spamassassin 3.3.2-3 2012-07-20 15:29:45 status unpacked spamassassin 3.3.2-3 2012-07-20 15:29:45 status unpacked spamassassin 3.3.2-3 2012-07-20 15:29:45 status unpacked spamassassin 3.3.2-3 2012-07-20 15:29:45 status unpacked spamassassin 3.3.2-3 2012-07-20 15:29:45 status unpacked spamassassin 3.3.2-3 2012-07-20 15:29:45 status unpacked spamassassin 3.3.2-3 2012-07-20 15:29:45 status unpacked spamassassin 3.3.2-3 2012-07-20 15:29:45 status unpacked spamassassin 3.3.2-3 2012-07-20 15:29:45 status half-configured spamassassin 3.3.2-3 2012-07-20 15:49:55 configure spamassassin 3.3.2-3 3.3.2-3 2012-07-20 15:49:55 status half-configured spamassassin 3.3.2-3 2012-07-20 15:58:21 upgrade libc6-dev 2.11.3-3 2.13-33 2012-07-20 15:58:21 status half-configured libc6-dev 2.11.3-3 2012-07-20 15:58:21 status unpacked libc6-dev 2.11.3-3 2012-07-20 15:58:21 status half-installed libc6-dev 2.11.3-3 2012-07-20 15:58:23 status half-installed libc6-dev 2.11.3-3 2012-07-20 15:58:24 status unpacked libc6-dev 2.13-33 2012-07-20 15:58:24 status unpacked libc6-dev 2.13-33 2012-07-20 16:03:12 configure spamassassin:all 3.3.2-3 none 2012-07-20 16:03:12 status half-configured spamassassin:all 3.3.2-3 2012-07-20 16:04:12 status installed spamassassin:all 3.3.2-3 2012-07-20 16:04:13 configure libc6-dev:i386 2.13-33 none 2012-07-20 16:04:13 status unpacked libc6-dev:i386 2.13-33 2012-07-20 16:04:13 status half-configured libc6-dev:i386 2.13-33 2012-07-20 16:04:13 status installed libc6-dev:i386 2.13-33 2012-07-20 16:32:17 status triggers-pending spamassassin:all 3.3.2-3 2012-07-20 16:32:19 trigproc spamassassin:all 3.3.2-3 none 2012-07-20 16:32:19 status half-configured spamassassin:all 3.3.2-3 2012-07-20 16:33:37 status installed spamassassin:all 3.3.2-3 $ For reference, here are the relevant bits from my upgrade transcript: Sorry, you deleted some relevant bits: root@squeeze:~# apt-get upgrade Reading package lists... Done Building dependency tree ... 72 upgraded, 0 newly installed, 0 to remove and 116 not upgraded. What were those 72 packages? An interesting question is what would happen if instead of apt-get upgrade, you'd use apt-get install spamassassin after editing sources.list. That would likely expose the issue. (I may try this myself, in fact.) -- Antti-Juhani Kaijanaho, Jyväskylä, Finland http://antti-juhani.kaijanaho.fi/newblog/ http://www.flickr.com/photos/antti-juhani/ signature.asc Description: Digital signature
Bug#659474: spamassassin: sa-compile problem on upgrade
severity 659474 normal thanks On Tue, Jul 24, 2012 at 11:30:25AM +0300, Antti-Juhani Kaijanaho wrote: On Tue, Jul 24, 2012 at 12:19:46AM -0700, Noah Meyerhans wrote: Had you enabled the cron job and run sa-compile successfully prior to the upgrade? I don't remember. I had not touched the spamassassin setup for years. [...] An interesting question is what would happen if instead of apt-get upgrade, you'd use apt-get install spamassassin after editing sources.list. That would likely expose the issue. (I may try this myself, in fact.) I've now completed this test. No errors detected. Okay, I think it's clear now that this is not a simple dependency problem and is unlikely to hit most upgraders. Hence downgrading back to normal. Looks like both the packaged cronjob and my handcrafted cronjob have been disabled in that system, so the data it tried to compile was probably very old. (Is there some way I could determine how old it is?) Interesting, though, that an upgrade to libc6-dev made it work. -- Antti-Juhani Kaijanaho, Jyväskylä, Finland http://antti-juhani.kaijanaho.fi/newblog/ http://www.flickr.com/photos/antti-juhani/ signature.asc Description: Digital signature
Bug#659474: spamassassin: sa-compile problem on upgrade
severity 659474 serious tags 659474 + confirmed thanks I see the same problem in my squeeze - wheezy upgrade: Preparing to replace spamassassin 3.3.1-1 (using .../spamassassin_3.3.2-3_all.deb) ... Stopping SpamAssassin Mail Filter Daemon: spamd. Unpacking replacement spamassassin ... [ ... lots of other stuff ... ] Setting up spamassassin (3.3.2-3) ... Installing new version of config file /etc/cron.daily/spamassassin ... Warning: The home dir /var/lib/spamassassin you specified already exists. Adding system user `debian-spamd' (UID 117) ... Adding new group `debian-spamd' (GID 114) ... Adding new user `debian-spamd' (UID 117) with group `debian-spamd' ... The home directory `/var/lib/spamassassin' already exists. Not copying from `/etc/skel'. adduser: Warning: The home directory `/var/lib/spamassassin' does not belong to the user you are currently creating. Running sa-compile (may take a long time) In file included from /usr/include/sys/param.h:28, from /usr/lib/perl/5.10/CORE/perl.h:671, from body_0.xs:2: /usr/include/linux/param.h:4:23: error: asm/param.h: Tiedostoa tai hakemistoa ei ole In file included from /usr/include/sys/socket.h:40, from /usr/include/netinet/in.h:25, from /usr/lib/perl/5.10/CORE/perl.h:1151, from body_0.xs:2: /usr/include/bits/socket.h:370:24: error: asm/socket.h: Tiedostoa tai hakemistoa ei ole In file included from /usr/include/bits/errno.h:25, from /usr/include/errno.h:36, from /usr/lib/perl/5.10/CORE/perl.h:1208, from body_0.xs:2: /usr/include/linux/errno.h:4:23: error: asm/errno.h: Tiedostoa tai hakemistoa ei ole In file included from /usr/include/sys/ioctl.h:27, from /usr/lib/perl/5.10/CORE/perl.h:1370, from body_0.xs:2: /usr/include/bits/ioctls.h:24:24: error: asm/ioctls.h: Tiedostoa tai hakemistoa ei ole make: *** [body_0.o] Virhe 1 command 'make /tmp/user/117/.spamassassin18843MVBSv0tmp/log' failed: exit 2 dpkg: error processing spamassassin (--configure): subprocess installed post-installation script returned error exit status 25 Since this apparently reflects inadequate dependencies, it is (in my understanding) per release policy release critical. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#659474: spamassassin: sa-compile problem on upgrade
Package: spamassassin Version: 3.3.2-2 Severity: normal I recently upgraded from Squeeze to testing, and the spamassassin upgrade (to version 3.3.2-2) didn't go smoothly. I have sa-compile enabled. I got the following error when dpkg tried to configure spamassassin: Running sa-compile (may take a long time) In file included from /usr/include/sys/param.h:28, from /usr/lib/perl/5.10/CORE/perl.h:671, from body_0.xs:2: /usr/include/linux/param.h:4:23: error: asm/param.h: No such file or directory In file included from /usr/include/sys/socket.h:40, from /usr/include/netinet/in.h:25, from /usr/lib/perl/5.10/CORE/perl.h:1151, from body_0.xs:2: /usr/include/bits/socket.h:370:24: error: asm/socket.h: No such file or directory In file included from /usr/include/bits/errno.h:25, from /usr/include/errno.h:36, from /usr/lib/perl/5.10/CORE/perl.h:1208, from body_0.xs:2: /usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory In file included from /usr/include/sys/ioctl.h:27, from /usr/lib/perl/5.10/CORE/perl.h:1370, from body_0.xs:2: /usr/include/bits/ioctls.h:24:24: error: asm/ioctls.h: No such file or directory make: *** [body_0.o] Error 1 command 'make /tmp/.spamassassin9777NhcLWftmp/log' failed: exit 2 dpkg: error processing spamassassin (--configure): subprocess installed post-installation script returned error exit status 25 After libc6-dev was upgraded (from 2.11.3-2 to 2.13-26), reconfiguring spamassassin worked fine. So I suppose the dependencies need tweaking. -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (x86_64) Kernel: Linux 2.6.39 (SMP w/8 CPU cores) Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages spamassassin depends on: ii libarchive-tar-perl none ii libhtml-parser-perl 3.69-1+b1 ii libnet-dns-perl 0.66-2+b2 ii libnetaddr-ip-perl 4.058+dfsg-2 ii libsocket6-perl 0.23-1+b2 ii libsys-hostname-long-perl 1.4-2 ii libwww-perl 6.03-1 ii perl5.14.2-7 ii perl-modules [libio-zlib-perl] 5.14.2-7 Versions of packages spamassassin recommends: ii gcc4:4.6.2-4 ii gnupg 1.4.11-3 ii libc6-dev 2.13-26 ii libio-socket-inet6-perl2.69-2 ii libmail-spf-perl 2.007-2 ii make 3.81-8.1 ii perl [libsys-syslog-perl] 5.14.2-7 ii re2c 0.13.5-1 ii spamc 3.3.2-2 Versions of packages spamassassin suggests: pn libdbi-perl 1.616-1+b2 pn libio-socket-ssl-perl 1.54-1 pn libmail-dkim-perl none pn libnet-ident-perl none pn perl [libcompress-zlib-perl] 5.14.2-7 pn pyzor 1:0.5.0-2 pn razor none -- Configuration Files: /etc/default/spamassassin changed [not included] -- 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