🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #494

GNU Make 3.56: Feature: no variables in environment

#494
From: Chip Salzenberg
Date: Wed, 11 Oct 1989 15:56
32 lines
1285 bytes
[FEATURE]

Include all variables in child environment only if VARS_IN_ENV is defined.
   Large variable definitions can swamp a child's environment, resulting
   in exec() failure with E2BIG.
You may want to reverse the #ifdef and make NO_VARS_IN_ENV definable
   from make's Makefile.

Index: variable.c
***************
*** 383,389 ****
  	      register char *p = v->name;
  
! 	      if (v->origin == o_default
! 		  || streq (p, "MAKELEVEL"))
  		continue;
  
  	      if (*p != '_' && (*p < 'A' || *p > 'Z')
--- 383,395 ----
  	      register char *p = v->name;
  
! #ifdef VARS_IN_ENV
! 	      if (v->origin == o_default)
  		continue;
+ #else
+ 	      if ((v->origin != o_env) && (v->origin != o_env_override))
+ 		continue;
+ #endif
+ 	      if (streq (p, "MAKELEVEL"))
+ 		continue;
  
  	      if (*p != '_' && (*p < 'A' || *p > 'Z')
Technical Details
Message-ID: <m0gElJh-0002SKC@ateng.ateng.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ateng.ateng.com!chip

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ateng.ateng.com!chip
From: chip@ateng.ateng.com (Chip Salzenberg)
Newsgroups: gnu.utils.bug
Subject: GNU Make 3.56: Feature: no variables in environment
Message-ID: <m0gElJh-0002SKC@ateng.ateng.com>
Date: 11 Oct 89 15:56:32 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 32