summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-01-08 03:39:59 +0000
committerMike Frysinger <vapier@gentoo.org>2012-01-08 03:39:59 +0000
commite09663e5f014244a333b16a43720835b17b14ca6 (patch)
treede7b42fae5f9ab01d960bf883d3e04585b1ed38d /mail-mta/mini-qmail
parentrespect CPPFLAGS, and mark cc/ld as local (diff)
downloadgentoo-2-e09663e5f014244a333b16a43720835b17b14ca6.tar.gz
gentoo-2-e09663e5f014244a333b16a43720835b17b14ca6.tar.bz2
gentoo-2-e09663e5f014244a333b16a43720835b17b14ca6.zip
Fix build failure with newer glibcs #398109 by Markos Chandras.
(Portage version: 2.2.0_alpha81/cvs/Linux x86_64)
Diffstat (limited to 'mail-mta/mini-qmail')
-rw-r--r--mail-mta/mini-qmail/ChangeLog8
-rw-r--r--mail-mta/mini-qmail/files/1.06-headers.patch37
-rw-r--r--mail-mta/mini-qmail/mini-qmail-1.06.ebuild8
3 files changed, 46 insertions, 7 deletions
diff --git a/mail-mta/mini-qmail/ChangeLog b/mail-mta/mini-qmail/ChangeLog
index fbe8acea842d..41ef7d535a99 100644
--- a/mail-mta/mini-qmail/ChangeLog
+++ b/mail-mta/mini-qmail/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for mail-mta/mini-qmail
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/mini-qmail/ChangeLog,v 1.15 2011/11/20 08:14:12 vapier Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/mini-qmail/ChangeLog,v 1.16 2012/01/08 03:39:59 vapier Exp $
+
+ 08 Jan 2012; Mike Frysinger <vapier@gentoo.org> +files/1.06-headers.patch,
+ mini-qmail-1.06.ebuild:
+ Fix build failure with newer glibcs #398109 by Markos Chandras.
20 Nov 2011; Mike Frysinger <vapier@gentoo.org> mini-qmail-1.06.ebuild:
Block maildrop #374909 by Diego Elio Pettenò.
diff --git a/mail-mta/mini-qmail/files/1.06-headers.patch b/mail-mta/mini-qmail/files/1.06-headers.patch
new file mode 100644
index 000000000000..566babfa6290
--- /dev/null
+++ b/mail-mta/mini-qmail/files/1.06-headers.patch
@@ -0,0 +1,37 @@
+--- a/qmail-pw2u.c
++++ b/qmail-pw2u.c
+@@ -1,3 +1,4 @@
++#include <unistd.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include "substdio.h"
+--- a/qmail-qmtpd.c
++++ b/qmail-qmtpd.c
+@@ -1,3 +1,4 @@
++#include <unistd.h>
+ #include "stralloc.h"
+ #include "substdio.h"
+ #include "qmail.h"
+--- a/readwrite.h
++++ b/readwrite.h
+@@ -1,7 +1,7 @@
+ #ifndef READWRITE_H
+ #define READWRITE_H
+
+-extern int read();
+-extern int write();
++#include <fcntl.h>
++#include <unistd.h>
+
+ #endif
+--- a/substdio.h
++++ b/substdio.h
+@@ -1,6 +1,8 @@
+ #ifndef SUBSTDIO_H
+ #define SUBSTDIO_H
+
++#include <unistd.h>
++
+ typedef struct substdio {
+ char *x;
+ int p;
diff --git a/mail-mta/mini-qmail/mini-qmail-1.06.ebuild b/mail-mta/mini-qmail/mini-qmail-1.06.ebuild
index 636dab53bb28..6deb82bff631 100644
--- a/mail-mta/mini-qmail/mini-qmail-1.06.ebuild
+++ b/mail-mta/mini-qmail/mini-qmail-1.06.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2011 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/mail-mta/mini-qmail/mini-qmail-1.06.ebuild,v 1.5 2011/11/20 08:14:12 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/mail-mta/mini-qmail/mini-qmail-1.06.ebuild,v 1.6 2012/01/08 03:39:59 vapier Exp $
GENQMAIL_PV=20080406
@@ -45,9 +45,7 @@ src_unpack() {
unpack netqmail-${PV}.tar.gz
cd "${S}"
- epatch "${FILESDIR}"/${PV}-exit.patch
-
- ht_fix_file Makefile*
+ epatch "${FILESDIR}"/${PV}-headers.patch
qmail_src_postunpack
}