summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2017-09-08 13:24:34 +0200
committerFabian Groffen <grobian@gentoo.org>2017-09-08 13:24:34 +0200
commitb7f80ac12485f4e33326acaeec135270a0ab5002 (patch)
treee6b01dca6c270b2b2d7010ef0ea6fe41c7aa94eb /mail-filter
parentx11-drivers/xf86-video-ati: Removed old. (diff)
downloadgentoo-b7f80ac12485f4e33326acaeec135270a0ab5002.tar.gz
gentoo-b7f80ac12485f4e33326acaeec135270a0ab5002.tar.bz2
gentoo-b7f80ac12485f4e33326acaeec135270a0ab5002.zip
mail-filter/libspf2: fix building with GCC5, bug #570486
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/libspf2/files/libspf2-1.2.10-gcc5.patch22
-rw-r--r--mail-filter/libspf2/libspf2-1.2.10.ebuild5
2 files changed, 25 insertions, 2 deletions
diff --git a/mail-filter/libspf2/files/libspf2-1.2.10-gcc5.patch b/mail-filter/libspf2/files/libspf2-1.2.10-gcc5.patch
new file mode 100644
index 000000000000..d36ec96efd77
--- /dev/null
+++ b/mail-filter/libspf2/files/libspf2-1.2.10-gcc5.patch
@@ -0,0 +1,22 @@
+https://github.com/shevek/libspf2/issues/13
+https://bugs.gentoo.org/show_bug.cgi?id=570486
+
+Index: libspf2-1.2.10/src/include/spf_log.h
+===================================================================
+--- libspf2-1.2.10/src/include/spf_log.h
++++ libspf2-1.2.10/src/include/spf_log.h 2015-10-20 23:23:04.579055906 +0200
+@@ -60,10 +60,10 @@
+
+ #if defined( __STDC_VERSION__ ) && __STDC_VERSION__ >= 199901L
+
+-#define SPF_errorf(format, ... ) SPF_errorx( __FILE__, __LINE__, format, __VA_ARGS__ )
+-#define SPF_warningf(format, ... ) SPF_warningx( __FILE__, __LINE__, format, __VA_ARGS__ )
+-#define SPF_infof(format, ... ) SPF_infox( __FILE__, __LINE__, format, __VA_ARGS__ )
+-#define SPF_debugf(format, ... ) SPF_debugx( __FILE__, __LINE__, format, __VA_ARGS__ )
++#define SPF_errorf(...) SPF_errorx( __FILE__, __LINE__, __VA_ARGS__ )
++#define SPF_warningf(...) SPF_warningx( __FILE__, __LINE__, __VA_ARGS__ )
++#define SPF_infof(...) SPF_infox( __FILE__, __LINE__, __VA_ARGS__ )
++#define SPF_debugf(...) SPF_debugx( __FILE__, __LINE__, __VA_ARGS__ )
+
+ #elif defined( __GNUC__ )
+
diff --git a/mail-filter/libspf2/libspf2-1.2.10.ebuild b/mail-filter/libspf2/libspf2-1.2.10.ebuild
index 117a1e816f4c..b5eb7acc548b 100644
--- a/mail-filter/libspf2/libspf2-1.2.10.ebuild
+++ b/mail-filter/libspf2/libspf2-1.2.10.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
-inherit autotools
+inherit autotools eutils
DESCRIPTION="libspf2 implements the Sender Policy Framework, a part of the SPF/SRS protocol pair"
HOMEPAGE="http://www.libspf2.org"
@@ -26,6 +26,7 @@ src_prepare() {
|| die
#eautoreconf
fi
+ epatch "${FILESDIR}"/${P}-gcc5.patch #570486
sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.ac || die
eautoreconf