bugmake - Bugs: bug #18755, exported var-define and var-define...

 
 

bug #18755: exported var-define and var-define from command line should appear in $(shell ) env

Submitter:  Jun Chen <chjfth>
Submitted:  Thu 11 Jan 2007 02:23:15 AM UTC
   
 
Severity:  3 - Normal Item Group:  Enhancement
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  3.81 Operating System:  None
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 01 May 2007 04:44:37 AM UTC, comment #1: 

Yes, they did; I'm closing this as a duplicate of bug #10593

There is info there about why it works the way it does, and in fact in the regression test suite there is a test (commented out) that shows that the simple implementation of this feature (also commented out, as the above bug shows) leads to an infinite recursion.

That's not to say that a more complicated implementation couldn't resolve this problem, which is why the original bug is still open.

Paul D. Smith <psmith>
Group administrator
Thu 11 Jan 2007 02:23:15 AM UTC, original submission:  


See the following makefile:

=======
export EXVAR = exval

_temp := $(shell echo "EXVAR = $${EXVAR}, CMDVAR = $${CMDVAR}" 1>&2)

all:
=======

``make CMDVAR=cmdval'' currently outputs:

-------
EXVAR = , CMDVAR =
make: `all' is up to date.
-------

But in some situation, the following output is expected:

-------
EXVAR = exval, CMDVAR = cmdval
make: `all' is up to date.
-------

I encountered this problem when I was working on my GnumakeUniproc project in the past year(http://sf.net/projects/gnumakeuniproc), and I have to find a workaround for it -- unfortunately.

I hope GNUmake's next version gives a option to enable my suggested behavior.

By the way, an anonymous person has posted such issue two years ago. https://savannah.gnu.org/bugs/?10593

Jun Chen <chjfth>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by chjfth (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-05-01 psmith StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code