mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 06:48:18 -07:00
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:
@@ -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;
|
||||
}
|
||||
@@ -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/*
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user