Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: mail-filter/spamprobe/files/, mail-filter/spamprobe/
Date: Sun, 13 Jun 2021 17:58:41
Message-Id: 1623604433.59b7de1af8fc3b52a49b2f1601b2abd0bca30673.sam@gentoo
1 commit: 59b7de1af8fc3b52a49b2f1601b2abd0bca30673
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 13 17:08:44 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 13 17:13:53 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59b7de1a
7
8 mail-filter/spamprobe: update EAPI 6 -> 7, fix gcc 11 build
9
10 Closes: https://bugs.gentoo.org/787311
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 .../spamprobe/files/spamprobe-1.4d-gcc11-const-comp.patch | 13 +++++++++++++
14 mail-filter/spamprobe/spamprobe-1.4d-r2.ebuild | 4 +++-
15 2 files changed, 16 insertions(+), 1 deletion(-)
16
17 diff --git a/mail-filter/spamprobe/files/spamprobe-1.4d-gcc11-const-comp.patch b/mail-filter/spamprobe/files/spamprobe-1.4d-gcc11-const-comp.patch
18 new file mode 100644
19 index 00000000000..1eec9cc6ee0
20 --- /dev/null
21 +++ b/mail-filter/spamprobe/files/spamprobe-1.4d-gcc11-const-comp.patch
22 @@ -0,0 +1,13 @@
23 +diff --git a/src/includes/LRUCache.h b/src/includes/LRUCache.h
24 +index cf7df30..50467d5 100644
25 +--- a/src/includes/LRUCache.h
26 ++++ b/src/includes/LRUCache.h
27 +@@ -60,7 +60,7 @@ public:
28 + {
29 + public:
30 + bool operator()(const NodeType *a,
31 +- const NodeType *b)
32 ++ const NodeType *b) const
33 + {
34 + return a->key < b->key;
35 + }
36
37 diff --git a/mail-filter/spamprobe/spamprobe-1.4d-r2.ebuild b/mail-filter/spamprobe/spamprobe-1.4d-r2.ebuild
38 index dfe97b87b27..8ff7226aac1 100644
39 --- a/mail-filter/spamprobe/spamprobe-1.4d-r2.ebuild
40 +++ b/mail-filter/spamprobe/spamprobe-1.4d-r2.ebuild
41 @@ -1,7 +1,7 @@
42 # Copyright 1999-2021 Gentoo Authors
43 # Distributed under the terms of the GNU General Public License v2
44
45 -EAPI=6
46 +EAPI=7
47
48 DESCRIPTION="Fast, intelligent, automatic spam detector using Bayesian analysis"
49 HOMEPAGE="http://spamprobe.sourceforge.net/"
50 @@ -26,6 +26,7 @@ PATCHES=(
51 "${FILESDIR}"/${P}+db-5.0.patch
52 "${FILESDIR}"/${P}-gcc47.patch
53 "${FILESDIR}"/${P}-giflib5.patch
54 + "${FILESDIR}"/${P}-gcc11-const-comp.patch
55 )
56
57 src_configure() {
58 @@ -37,6 +38,7 @@ src_configure() {
59
60 src_install() {
61 default
62 +
63 insinto /usr/share/${PN}/contrib
64 doins contrib/*
65 }