1 |
commit: 27b0dc92ffcd4001fcc8489be7cd48029f259c3d |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 18 18:28:21 2018 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Sep 18 18:38:12 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27b0dc92 |
7 |
|
8 |
mail-filter/spamassassin: disable a network test and drop RESTRICT=test. |
9 |
|
10 |
I originally added RESTRICT=test to spamassassin-3.4.2.ebuild because |
11 |
a test was failing, I didn't know why, and we needed to get the new |
12 |
version out to address multiple CVEs. It turns out that the one |
13 |
failing test is not respecting the fact that network access should be |
14 |
disabled in the test suite (upstream bug 7622). |
15 |
|
16 |
In the new revision, we kill that one test in src_prepare(). The rest |
17 |
of the tests should pass, so RESTRICT=test has been removed. |
18 |
|
19 |
Bug: https://bugs.gentoo.org/666348 |
20 |
Bug: https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7622 |
21 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
22 |
|
23 |
.../{spamassassin-3.4.2.ebuild => spamassassin-3.4.2-r1.ebuild} | 8 +++++--- |
24 |
1 file changed, 5 insertions(+), 3 deletions(-) |
25 |
|
26 |
diff --git a/mail-filter/spamassassin/spamassassin-3.4.2.ebuild b/mail-filter/spamassassin/spamassassin-3.4.2-r1.ebuild |
27 |
similarity index 97% |
28 |
rename from mail-filter/spamassassin/spamassassin-3.4.2.ebuild |
29 |
rename to mail-filter/spamassassin/spamassassin-3.4.2-r1.ebuild |
30 |
index 340edb07078..2fd2d38d2b8 100644 |
31 |
--- a/mail-filter/spamassassin/spamassassin-3.4.2.ebuild |
32 |
+++ b/mail-filter/spamassassin/spamassassin-3.4.2-r1.ebuild |
33 |
@@ -16,9 +16,6 @@ SLOT="0" |
34 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~x86-macos" |
35 |
IUSE="berkdb cron ipv6 ldap libressl mysql postgres qmail sqlite ssl test" |
36 |
|
37 |
-# Upstream bug 7622. |
38 |
-RESTRICT=test |
39 |
- |
40 |
# The Makefile.PL script checks for dependencies, but only fails if a |
41 |
# required (i.e. not optional) dependency is missing. We therefore |
42 |
# require most of the optional modules only at runtime. |
43 |
@@ -93,6 +90,11 @@ src_prepare() { |
44 |
# spamd tests themselves -- see src_test), so use a crude |
45 |
# workaround. |
46 |
perl_rm_files t/spamc_*.t || die 'failed to remove spamc tests' |
47 |
+ |
48 |
+ # Upstream bug 7622: this thing needs network access but doesn't |
49 |
+ # respect the 'run_net_tests' setting. |
50 |
+ perl_rm_files t/urilocalbl_geoip.t \ |
51 |
+ || die 'failed to remove urilocalbl_geoip tests' |
52 |
} |
53 |
|
54 |
src_configure() { |