diff options
author | Fabian Groffen <grobian@gentoo.org> | 2016-02-03 14:48:23 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2016-02-03 14:49:05 +0100 |
commit | 4339d7f48684a02e264e850cbfeac08e9c915460 (patch) | |
tree | 96e1424e1ff97fc40e80130b9c02bdefeb4eb763 /mail-mta/exim | |
parent | net-nds/phpldapadmin: Add eutils inherit for bug 573742 (diff) | |
download | gentoo-4339d7f48684a02e264e850cbfeac08e9c915460.tar.gz gentoo-4339d7f48684a02e264e850cbfeac08e9c915460.tar.bz2 gentoo-4339d7f48684a02e264e850cbfeac08e9c915460.zip |
mail-mta/exim: add patch to avoid TMPDIR issues with distcc, bug #63420
Package-Manager: portage-2.2.20-prefix
Diffstat (limited to 'mail-mta/exim')
-rw-r--r-- | mail-mta/exim/exim-4.86-r2.ebuild | 1 | ||||
-rw-r--r-- | mail-mta/exim/exim-4.87_rc3.ebuild | 1 | ||||
-rw-r--r-- | mail-mta/exim/files/exim-4.86-TMPDIR.patch | 71 |
3 files changed, 73 insertions, 0 deletions
diff --git a/mail-mta/exim/exim-4.86-r2.ebuild b/mail-mta/exim/exim-4.86-r2.ebuild index 02f463959992..8d54cbac9dfd 100644 --- a/mail-mta/exim/exim-4.86-r2.ebuild +++ b/mail-mta/exim/exim-4.86-r2.ebuild @@ -87,6 +87,7 @@ src_prepare() { epatch "${FILESDIR}"/exim-4.76-crosscompile.patch # 266591 epatch "${FILESDIR}"/exim-4.86-radius-type-fix.patch epatch "${FILESDIR}"/exim-4.86-radius-include.patch + epatch "${FILESDIR}"/exim-4.86-TMPDIR.patch # 63420 if use maildir ; then epatch "${FILESDIR}"/exim-4.20-maildir.patch diff --git a/mail-mta/exim/exim-4.87_rc3.ebuild b/mail-mta/exim/exim-4.87_rc3.ebuild index 7c370de52d6a..356e2ffefc0e 100644 --- a/mail-mta/exim/exim-4.87_rc3.ebuild +++ b/mail-mta/exim/exim-4.87_rc3.ebuild @@ -85,6 +85,7 @@ src_prepare() { epatch "${FILESDIR}"/exim-4.82-makefile-freebsd.patch # 235785 epatch "${FILESDIR}"/exim-4.87-as-needed-ldflags.patch # 352265, 391279 epatch "${FILESDIR}"/exim-4.76-crosscompile.patch # 266591 + epatch "${FILESDIR}"/exim-4.86-TMPDIR.patch # 63420 if use maildir ; then epatch "${FILESDIR}"/exim-4.20-maildir.patch diff --git a/mail-mta/exim/files/exim-4.86-TMPDIR.patch b/mail-mta/exim/files/exim-4.86-TMPDIR.patch new file mode 100644 index 000000000000..7fb0a7994339 --- /dev/null +++ b/mail-mta/exim/files/exim-4.86-TMPDIR.patch @@ -0,0 +1,71 @@ +From c36cf51b85cfc86e46226c846914c8d915f9f3c0 Mon Sep 17 00:00:00 2001 +From: Alexander Tsoy <alexander@tsoy.me> +Date: Tue, 2 Feb 2016 20:56:15 +0300 +Subject: [PATCH] Rename build-time option TMPDIR to EXIM_TMPDIR + +--- + src/EDITME | 2 +- + src/config.h.defaults | 2 +- + src/exim.c | 12 ++++++------ + 3 files changed, 8 insertions(+), 8 deletions(-) + +diff --git a/src/EDITME b/src/EDITME +index 30a296e..6afe0c7 100644 +--- a/src/EDITME ++++ b/src/EDITME +@@ -1123,7 +1123,7 @@ SYSTEM_ALIASES_FILE=/etc/aliases + # it replaces the value with what is defined here. Commenting this setting + # suppresses the check altogether. + +-TMPDIR="/tmp" ++EXIM_TMPDIR="/tmp" + + + #------------------------------------------------------------------------------ +diff --git a/src/config.h.defaults b/src/config.h.defaults +index 14de083..c1cf1a9 100644 +--- a/src/config.h.defaults ++++ b/src/config.h.defaults +@@ -150,7 +150,7 @@ it's a default value. */ + + #define TCP_WRAPPERS_DAEMON_NAME "exim" + #define TIMEZONE_DEFAULT +-#define TMPDIR ++#define EXIM_TMPDIR + + #define TRANSPORT_APPENDFILE + #define TRANSPORT_AUTOREPLY +diff --git a/src/exim.c b/src/exim.c +index ebc71dd..c134bf5 100644 +--- a/src/exim.c ++++ b/src/exim.c +@@ -3899,20 +3899,20 @@ if (log_oneline) + temporary files are created; Exim doesn't use these (apart from when delivering + to MBX mailboxes), but called libraries such as DBM libraries may require them. + If TMPDIR is found in the environment, reset it to the value defined in the +-TMPDIR macro, if this macro is defined. */ ++EXIM_TMPDIR macro, if this macro is defined. */ + +-#ifdef TMPDIR ++#ifdef EXIM_TMPDIR + { + uschar **p; + for (p = USS environ; *p != NULL; p++) + { + if (Ustrncmp(*p, "TMPDIR=", 7) == 0 && +- Ustrcmp(*p+7, TMPDIR) != 0) ++ Ustrcmp(*p+7, EXIM_TMPDIR) != 0) + { +- uschar *newp = malloc(Ustrlen(TMPDIR) + 8); +- sprintf(CS newp, "TMPDIR=%s", TMPDIR); ++ uschar *newp = malloc(Ustrlen(EXIM_TMPDIR) + 8); ++ sprintf(CS newp, "TMPDIR=%s", EXIM_TMPDIR); + *p = newp; +- DEBUG(D_any) debug_printf("reset TMPDIR=%s in environment\n", TMPDIR); ++ DEBUG(D_any) debug_printf("reset TMPDIR=%s in environment\n", EXIM_TMPDIR); + } + } + } +-- +2.4.10 + |