mail-filter/spamassassin: Fix sa_txrep test when no dbm

Upstream's fix is way more involved.  I'll leave that for 4.0.2, I
guess.
1c6fe5993c

Closes: https://bugs.gentoo.org/933406
Closes: https://github.com/gentoo/gentoo/pull/36986
Signed-off-by: Philippe Chaintreuil <gentoo_bugs_peep@parallaxshift.com>
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Philippe Chaintreuil
2024-06-02 19:18:49 -04:00
committed by Sam James
parent 4bbea52115
commit ef3433e778
2 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
https://bugs.gentoo.org/933406
--- a/t/sa_txrep.t
+++ b/t/sa_txrep.t
@@ -4,7 +4,11 @@ use lib '.'; use lib 't';
use SATest; sa_t_init("sa_txrep");
-use Test::More tests => 8;
+use Test::More;
+
+my @dbmods = grep eval "require $_", ('DB_File', 'GDBM_File', 'SDBM_File');
+plan skip_all => "No db module is available" unless @dbmods;
+plan tests => 8;
# ---------------------------------------------------------------------------

View File

@@ -91,6 +91,7 @@ VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/spamassassin.apache.org.asc
PATCHES=(
"${FILESDIR}/mention-geoip.cf-in-init.pre.patch"
"${FILESDIR}/4.0.0-tests-dnsbl_subtests.t_001_load-URIDNSBL.patch"
"${FILESDIR}/4.0.1-tests-sa_txrep.t-no-dbm.patch"
)
# There are a few renames and use-dependent ones in src_install as well.