Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jan 2014 18:21:18 +0000 (UTC)
From:      Ade Lovett <ade@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r341768 - head/devel/gmake/files
Message-ID:  <201401291821.s0TILIqh081412@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ade
Date: Wed Jan 29 18:21:18 2014
New Revision: 341768
URL: http://svnweb.freebsd.org/changeset/ports/341768
QAT: https://qat.redports.org/buildarchive/r341768/

Log:
  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 <jcharbon@verisign.com>

Added:
  head/devel/gmake/files/patch-main.c   (contents, props changed)

Added: head/devel/gmake/files/patch-main.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/gmake/files/patch-main.c	Wed Jan 29 18:21:18 2014	(r341768)
@@ -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))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401291821.s0TILIqh081412>