summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEray Aslan <eras@gentoo.org>2011-08-15 07:23:57 +0000
committerEray Aslan <eras@gentoo.org>2011-08-15 07:23:57 +0000
commit957a2533bbcd0af18ab2f0e0eae84d8bdf8ae4e2 (patch)
tree9b8a76df3cc32b0813b94c94006da7adb602dceb /mail-filter/maildrop
parentVersion bump. (diff)
downloadgentoo-2-957a2533bbcd0af18ab2f0e0eae84d8bdf8ae4e2.tar.gz
gentoo-2-957a2533bbcd0af18ab2f0e0eae84d8bdf8ae4e2.tar.bz2
gentoo-2-957a2533bbcd0af18ab2f0e0eae84d8bdf8ae4e2.zip
Fix segfault in reformime on some arches - bug #379101
(Portage version: 2.1.10.11/cvs/Linux x86_64)
Diffstat (limited to 'mail-filter/maildrop')
-rw-r--r--mail-filter/maildrop/ChangeLog6
-rw-r--r--mail-filter/maildrop/files/maildrop-2.5.4-reformime.patch14
-rw-r--r--mail-filter/maildrop/maildrop-2.5.4.ebuild3
3 files changed, 21 insertions, 2 deletions
diff --git a/mail-filter/maildrop/ChangeLog b/mail-filter/maildrop/ChangeLog
index a9d8a24af5c3..f247e15d125a 100644
--- a/mail-filter/maildrop/ChangeLog
+++ b/mail-filter/maildrop/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for mail-filter/maildrop
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/ChangeLog,v 1.115 2011/08/09 12:53:36 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/ChangeLog,v 1.116 2011/08/15 07:23:57 eras Exp $
+
+ 15 Aug 2011; Eray Aslan <eras@gentoo.org> maildrop-2.5.4.ebuild,
+ +files/maildrop-2.5.4-reformime.patch:
+ Fix segfault in reformime on some arches - bug #379101
09 Aug 2011; Kacper Kowalik <xarthisius@gentoo.org> maildrop-2.5.4.ebuild:
ppc/ppc64 stable wrt #376563
diff --git a/mail-filter/maildrop/files/maildrop-2.5.4-reformime.patch b/mail-filter/maildrop/files/maildrop-2.5.4-reformime.patch
new file mode 100644
index 000000000000..4eb24a4a2d18
--- /dev/null
+++ b/mail-filter/maildrop/files/maildrop-2.5.4-reformime.patch
@@ -0,0 +1,14 @@
+some arches put argv into readonly memory - bug #379101
+Index: rfc2045/reformime.c
+===================================================================
+--- rfc2045/reformime.c (revision 102)
++++ rfc2045/reformime.c (working copy)
+@@ -996,7 +996,7 @@
+ case 's':
+ if (!optarg && argn < argc)
+ optarg=argv[argn++];
+- if (optarg && *optarg) section=optarg;
++ if (optarg && *optarg) section=strdup(optarg);
+ break;
+ case 'i':
+ doinfo=1;
diff --git a/mail-filter/maildrop/maildrop-2.5.4.ebuild b/mail-filter/maildrop/maildrop-2.5.4.ebuild
index bda05dee0eb3..254ccd7f9b74 100644
--- a/mail-filter/maildrop/maildrop-2.5.4.ebuild
+++ b/mail-filter/maildrop/maildrop-2.5.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/maildrop-2.5.4.ebuild,v 1.8 2011/08/09 12:53:36 xarthisius Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-filter/maildrop/maildrop-2.5.4.ebuild,v 1.9 2011/08/15 07:23:57 eras Exp $
EAPI=4
@@ -62,6 +62,7 @@ src_prepare() {
's~AC_MSG_ERROR(Cannot determine default mailbox)~SPOOLDIR="./.maildir"~' \
"${S}"/maildrop/configure.in || die "sed failed"
epatch "${FILESDIR}"/${PN}-testsuite.patch
+ epatch "${FILESDIR}/${P}-reformime.patch"
eautoreconf
}