Your message dated Tue, 3 Nov 2026 10:05:27 +0100
with message-id <[email protected]>
and subject line Re: Bug#1021978: spamassassin: non-standard version numbers
break spamassassin's AIDE script
has caused the Debian Bug report #1021978,
regarding aide's spamassassin script does not correctly handle spamassassin
prerelease version strings
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1021978: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021978
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: spamassassin
Version: 4.0.0~rc3-3.1
Severity: normal
X-Debbugs-Cc: [email protected]
Dear Maintainer,
On a recently installed Sid system I tried to set-up AIDE using
aideinit. This failed with the following error messages:
ERROR: /etc/aide/aide.conf.d/21_aide_spamassassin: stderr>
/etc/aide/aide.conf.d/21_aide_spamassassin: line 13: printf: 4.0.0~rc3-3.1:
invalid number
ERROR: /etc/aide/aide.conf.d/21_aide_spamassassin: stderr>
/etc/aide/aide.conf.d/21_aide_spamassassin: line 13: printf: 4.0.0~rc3-3.1:
invalid number
ERROR: /etc/aide/aide.conf.d/21_aide_spamassassin: stderr>
/etc/aide/aide.conf.d/21_aide_spamassassin: line 13: printf: 4.0.0~rc3-3.1:
invalid number
ERROR: /etc/aide/aide.conf.d/21_aide_spamassassin: execution failed (exit
status: 1)
The problem is that the current version number 4.0.0~rc3-3.1 does not
match the expected schema of N.N.N-N. As only the first 3 numbers are
used anyway, I've created a patch (attached) making the regular
expression less rigid by ignoring everything after those 3 numbers.
This works for me.
Best regards, Thomas
-- System Information:
Debian Release: bookworm/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.19.0-2-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages spamassassin depends on:
ii adduser 3.129
ii curl 7.85.0-1
ii libhtml-parser-perl 3.79-1
ii libhttp-date-perl 6.05-2
ii libio-string-perl 1.08-3.1
ii libmail-dkim-perl 1.20220520-1
ii libnet-dns-perl 1.35-1
ii libnetaddr-ip-perl 4.079+dfsg-2
ii libsocket6-perl 0.29-2
ii libsys-hostname-long-perl 1.5-2
ii libwww-perl 6.67-1
ii lsb-base 11.4
ii perl [libarchive-tar-perl] 5.34.0-5
ii sysvinit-utils [lsb-base] 3.05-6
ii w3m 0.5.3+git20220429-1+b1
Versions of packages spamassassin recommends:
ii gnupg 2.2.39-1
ii libbsd-resource-perl 1.2911-2
ii libio-socket-inet6-perl 2.73-1
ii libmail-spf-perl 2.9.0-5
ii perl [libsys-syslog-perl] 5.34.0-5
ii sa-compile 4.0.0~rc3-3.1
ii spamc 4.0.0~rc3-3.1
Versions of packages spamassassin suggests:
ii libdbi-perl 1.643-3+b2
pn libencode-detect-perl <none>
pn libgeoip2-perl <none>
ii libio-socket-ssl-perl 2.075-1
pn libnet-patricia-perl <none>
ii perl [libcompress-zlib-perl] 5.34.0-5
pn pyzor <none>
pn razor <none>
-- no debconf information
--- /usr/share/aide/config/aide/aide.conf.d/21_aide_spamassassin
2022-03-24 09:54:59.000000000 +0100
+++ /etc/aide/aide.conf.d/21_aide_spamassassin 2022-10-18 09:51:30.855881082
+0200
@@ -3,9 +3,9 @@
SAVERSION_QRESULT="$(dpkg-query --show --showformat '${Version}\n'
spamassassin 2>/dev/null)"
if [ -n "${SAVERSION_QRESULT}" ]; then
- SAVERSION_C1="$(echo ${SAVERSION_QRESULT} | sed
's/^\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\)-[[:digit:]]\+$/\1/')"
- SAVERSION_C2="$(echo ${SAVERSION_QRESULT} | sed
's/^\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\)-[[:digit:]]\+$/\2/')"
- SAVERSION_C3="$(echo ${SAVERSION_QRESULT} | sed
's/^\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\)-[[:digit:]]\+$/\3/')"
+ SAVERSION_C1="$(echo ${SAVERSION_QRESULT} | sed
's/^\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\)[-~].*/\1/')"
+ SAVERSION_C2="$(echo ${SAVERSION_QRESULT} | sed
's/^\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\)[-~].*/\2/')"
+ SAVERSION_C3="$(echo ${SAVERSION_QRESULT} | sed
's/^\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\)[-~].*/\3/')"
# insert plausibility checks here
--- End Message ---
--- Begin Message ---
Version: 0.19.5-3
On Tue, Nov 03, 2026 at 08:58:51AM +0100, Thomas Dorner wrote:
Is that still an issue? If not, I intend to close this by the End of
November 2026. Otherwise I'd like to have some current feedback.
No, I didn't encounter that one this year (and the one before?).
You can close it.
Good news, doing so!
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany | lose things." Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421
--- End Message ---