From 2baa196d352183ae0137ac7cc6919dcee64e8336 Mon Sep 17 00:00:00 2001 From: Ade Lovett Date: Wed, 29 Jan 2014 18:21:18 +0000 Subject: Address a reasonably obscure issue with automatic restarting and MAKEFLAGS. No PORTREVISION bump in this case since the confusion and mass hysteria is simply not worth it. PR: 185636 Submitted by: Julien Charbon --- devel/gmake/files/patch-main.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 devel/gmake/files/patch-main.c (limited to 'devel/gmake/files/patch-main.c') diff --git a/devel/gmake/files/patch-main.c b/devel/gmake/files/patch-main.c new file mode 100644 index 000000000000..9935ca7d7c27 --- /dev/null +++ b/devel/gmake/files/patch-main.c @@ -0,0 +1,17 @@ +When gmake automatically restart itself because one of its includes is updated, +the "MAKEFLAGS" environment variable is no more honoured. + +http://savannah.gnu.org/bugs/?30723 + +diff -rU3 -N make-3.82.orig/main.c make-3.82/main.c +--- main.c.orig 2010-07-19 07:10:53.000000000 +0000 ++++ main.c 2014-01-10 10:55:32.000000000 +0000 +@@ -2093,7 +2093,7 @@ + const char *pv = define_makeflags (1, 1); + char *p = alloca (sizeof ("MAKEFLAGS=") + strlen (pv) + 1); + sprintf (p, "MAKEFLAGS=%s", pv); +- putenv (p); ++ putenv (allocated_variable_expand (p)); + } + + if (ISDB (DB_BASIC)) -- cgit v1.2.3