From e09663e5f014244a333b16a43720835b17b14ca6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 8 Jan 2012 03:39:59 +0000 Subject: Fix build failure with newer glibcs #398109 by Markos Chandras. (Portage version: 2.2.0_alpha81/cvs/Linux x86_64) --- mail-mta/mini-qmail/ChangeLog | 8 ++++-- mail-mta/mini-qmail/files/1.06-headers.patch | 37 ++++++++++++++++++++++++++++ mail-mta/mini-qmail/mini-qmail-1.06.ebuild | 8 +++--- 3 files changed, 46 insertions(+), 7 deletions(-) create mode 100644 mail-mta/mini-qmail/files/1.06-headers.patch (limited to 'mail-mta/mini-qmail') 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 +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 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 + #include + #include + #include "substdio.h" +--- a/qmail-qmtpd.c ++++ b/qmail-qmtpd.c +@@ -1,3 +1,4 @@ ++#include + #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 ++#include + + #endif +--- a/substdio.h ++++ b/substdio.h +@@ -1,6 +1,8 @@ + #ifndef SUBSTDIO_H + #define SUBSTDIO_H + ++#include ++ + 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 } -- cgit v1.2.3-65-gdbad