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

Closes: https://bugs.gentoo.org/787311
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2021-06-13 17:08:44 +00:00
parent c3dc785bbc
commit 59b7de1af8
2 changed files with 16 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -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/*
}