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

Submitted by:  Jun Chen <chjfth>
Submitted on:  Thu 11 Jan 2007 02:23:15 AM UTC  
 
Severity: 3 - NormalItem Group: Enhancement
Status: DuplicatePrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 3.81Operating System: None
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 01 May 2007 04:44:37 AM UTCpsmithStatusNone=>Duplicate
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1