diff --git a/mail-filter/spamassassin/files/4.0.1-tests-sa_txrep.t-no-dbm.patch b/mail-filter/spamassassin/files/4.0.1-tests-sa_txrep.t-no-dbm.patch new file mode 100644 index 0000000000000..6d6b4dd9a0249 --- /dev/null +++ b/mail-filter/spamassassin/files/4.0.1-tests-sa_txrep.t-no-dbm.patch @@ -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; + + # --------------------------------------------------------------------------- + diff --git a/mail-filter/spamassassin/spamassassin-4.0.1.ebuild b/mail-filter/spamassassin/spamassassin-4.0.1.ebuild index d778722d02cce..4e04f9b1ff8d1 100644 --- a/mail-filter/spamassassin/spamassassin-4.0.1.ebuild +++ b/mail-filter/spamassassin/spamassassin-4.0.1.ebuild @@ -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.