#1021978 aide's spamassassin script does not correctly handle spamassassin prerelease version strings

Package:
aide
Source:
aide
Description:
Advanced Intrusion Detection Environment - dynamic binary
Submitter:
Thomas Dorner
Date:
2023-10-03 14:45:06 UTC
Severity:
normal
#1021978#5
Date:
2022-10-18 08:08:32 UTC
From:
To:
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

#1021978#10
Date:
2022-10-18 14:33:47 UTC
From:
To:
Isn't this an AIDE issue that should be fixed in that package?  The
spamassassin version complies with Debian's package version numbering
expectations.

noah

#1021978#15
Date:
2022-10-21 11:05:21 UTC
From:
To:
On Tue, 18 Oct 2022 07:33:47 -0700 Noah Meyerhans <noahm@debian.org> wrote:

Ooops, you're right, the file
/usr/share/aide/config/aide/aide.conf.d/21_aide_spamassassin
belongs to aide-common.  Could you forward this or should I create a
new report?

Best regards, Thomas
PS: I just noticed that my first reply got lost - at least it does not
appear on https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1021978

#1021978#20
Date:
2022-10-21 15:51:05 UTC
From:
To:
Control: reassign -1 aide
Control: retitle -1 aide's spamassassin script does not correctly handle spamassassin prerelease version strings

Reassinged to aide.

noah

#1021978#31
Date:
2023-10-03 14:13:28 UTC
From:
To:
The current version of the rule does things differently. Can you verify
whether the current version in sid works for you as well? Thanks!

Greetings
Marc

#1021978#36
Date:
2023-10-03 14:32:35 UTC
From:
To:
Sorry Marc, I switched my systems to Bullseye a few months ago and no
longer have a Sid to test with.

Best regards, Thomas

#1021978#41
Date:
2023-10-03 14:35:57 UTC
From:
To:
Ooops, I meant Bookworm!

Best regards, Thomas