summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2011-04-07 11:41:00 +0000
committerAlfredo Tupone <tupone@gentoo.org>2011-04-07 11:41:00 +0000
commit40c7e6ccd89aaa1d2998b618bcf9950aefa2b5a6 (patch)
tree75cf9a7b936c5c804f4850366cbc4c3550caa35c /mail-filter
parent[bump] dev-perl/CDB_File-0.970.0 (diff)
downloadgentoo-2-40c7e6ccd89aaa1d2998b618bcf9950aefa2b5a6.tar.gz
gentoo-2-40c7e6ccd89aaa1d2998b618bcf9950aefa2b5a6.tar.bz2
gentoo-2-40c7e6ccd89aaa1d2998b618bcf9950aefa2b5a6.zip
Fix build with gcc-4.6.0. Bug #362047
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'mail-filter')
-rw-r--r--mail-filter/spamdyke/ChangeLog6
-rw-r--r--mail-filter/spamdyke/files/spamdyke-4.2.0-gcc46.patch10
-rw-r--r--mail-filter/spamdyke/spamdyke-4.2.0.ebuild5
3 files changed, 19 insertions, 2 deletions
diff --git a/mail-filter/spamdyke/ChangeLog b/mail-filter/spamdyke/ChangeLog
index 64d8ddf05b40..c194a9787bc7 100644
--- a/mail-filter/spamdyke/ChangeLog
+++ b/mail-filter/spamdyke/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for mail-filter/spamdyke
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamdyke/ChangeLog,v 1.18 2011/02/25 08:08:46 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamdyke/ChangeLog,v 1.19 2011/04/07 11:41:00 tupone Exp $
+
+ 07 Apr 2011; Alfredo Tupone <tupone@gentoo.org> spamdyke-4.2.0.ebuild,
+ +files/spamdyke-4.2.0-gcc46.patch:
+ Fix build with gcc-4.6.0. Bug #362047 by Diego Elio Pettenò
*spamdyke-4.2.0 (25 Feb 2011)
diff --git a/mail-filter/spamdyke/files/spamdyke-4.2.0-gcc46.patch b/mail-filter/spamdyke/files/spamdyke-4.2.0-gcc46.patch
new file mode 100644
index 000000000000..f9428bee6bf0
--- /dev/null
+++ b/mail-filter/spamdyke/files/spamdyke-4.2.0-gcc46.patch
@@ -0,0 +1,10 @@
+--- configure.ac.old 2011-04-07 09:37:58.000000000 +0200
++++ configure.ac 2011-04-07 09:38:12.000000000 +0200
+@@ -22,7 +22,6 @@
+ AC_CONFIG_HEADER([config.h])
+
+ AC_LANG_WERROR
+-CFLAGS=-Wall
+
+ # Checks for programs.
+ AC_PROG_CC([[gcc]])
diff --git a/mail-filter/spamdyke/spamdyke-4.2.0.ebuild b/mail-filter/spamdyke/spamdyke-4.2.0.ebuild
index a21fdf5d0d7f..ea09c254e1f2 100644
--- a/mail-filter/spamdyke/spamdyke-4.2.0.ebuild
+++ b/mail-filter/spamdyke/spamdyke-4.2.0.ebuild
@@ -1,8 +1,9 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamdyke/spamdyke-4.2.0.ebuild,v 1.1 2011/02/25 08:08:46 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/spamdyke/spamdyke-4.2.0.ebuild,v 1.2 2011/04/07 11:41:00 tupone Exp $
EAPI="2"
+inherit eutils autotools
DESCRIPTION="A drop-in connection-time spam filter for qmail"
HOMEPAGE="http://www.spamdyke.org/"
@@ -20,6 +21,7 @@ RDEPEND="${DEPEND}
S=${WORKDIR}/${P}/${PN}
src_prepare() {
+ epatch "${FILESDIR}"/${P}-gcc46.patch
echo "# Configuration option for ${PN}" > ${PN}.conf
if use tls; then
echo "tls-certificate-file=/var/qmail/control/clientcert.pem" \
@@ -34,6 +36,7 @@ src_prepare() {
sed -i \
-e "/STRIP_CMD/d" \
Makefile.in || die "sed on Makefile.in failed"
+ eautoreconf
}
src_configure() {