commit:     59b7de1af8fc3b52a49b2f1601b2abd0bca30673
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 13 17:08:44 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jun 13 17:13:53 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59b7de1a

mail-filter/spamprobe: update EAPI 6 -> 7, fix gcc 11 build

Closes: https://bugs.gentoo.org/787311
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../spamprobe/files/spamprobe-1.4d-gcc11-const-comp.patch   | 13 +++++++++++++
 mail-filter/spamprobe/spamprobe-1.4d-r2.ebuild              |  4 +++-
 2 files changed, 16 insertions(+), 1 deletion(-)

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
new file mode 100644
index 00000000000..1eec9cc6ee0
--- /dev/null
+++ b/mail-filter/spamprobe/files/spamprobe-1.4d-gcc11-const-comp.patch
@@ -0,0 +1,13 @@
+diff --git a/src/includes/LRUCache.h b/src/includes/LRUCache.h
+index cf7df30..50467d5 100644
+--- a/src/includes/LRUCache.h
++++ b/src/includes/LRUCache.h
+@@ -60,7 +60,7 @@ public:
+   {
+   public:
+     bool operator()(const NodeType *a,
+-                    const NodeType *b)
++                    const NodeType *b) const
+     {
+       return a->key < b->key;
+     }

diff --git a/mail-filter/spamprobe/spamprobe-1.4d-r2.ebuild 
b/mail-filter/spamprobe/spamprobe-1.4d-r2.ebuild
index dfe97b87b27..8ff7226aac1 100644
--- a/mail-filter/spamprobe/spamprobe-1.4d-r2.ebuild
+++ b/mail-filter/spamprobe/spamprobe-1.4d-r2.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 DESCRIPTION="Fast, intelligent, automatic spam detector using Bayesian 
analysis"
 HOMEPAGE="http://spamprobe.sourceforge.net/";
@@ -26,6 +26,7 @@ PATCHES=(
        "${FILESDIR}"/${P}+db-5.0.patch
        "${FILESDIR}"/${P}-gcc47.patch
        "${FILESDIR}"/${P}-giflib5.patch
+       "${FILESDIR}"/${P}-gcc11-const-comp.patch
 )
 
 src_configure() {
@@ -37,6 +38,7 @@ src_configure() {
 
 src_install() {
        default
+
        insinto /usr/share/${PN}/contrib
        doins contrib/*
 }

Reply via email to