bugmake - Bugs: bug #32871, Incorrect content returned by...

 
 

bug #32871: Incorrect content returned by $(value) in recipe for target specific variable

Submitted by:  None
Submitted on:  Mon 21 Mar 2011 07:11:39 PM UTC  
Votes:  1  
 
Severity: 3 - NormalItem Group: Bug
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: 3.82Operating System: POSIX-Based
Fixed Release: NoneTriage Status: Verified

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Mon 02 May 2011 12:20:15 PM UTC, comment #1:

I agree, this is a bug.

Paul D. Smith <psmith>
Project Administrator
Mon 21 Mar 2011 07:11:39 PM UTC, original submission:

If a global variable is added to as a target specific variable, then using $(value ...) in a recipe gets the wrong value.

Given the attached makefile, when built with GNU Make 3.82 I get the following output:

$(value DEFS) = FOO
$(DEFS) = BAR FOO

but I was expecting to get:

$(value DEFS) = BAR FOO
$(DEFS) = BAR FOO

Maybe I misunderstand the $(value) function, but as DEFS does not contain reference to any other variable I was expecting the content of DEFS to be the same as the expanded value of DEFS.

regards,
Rob.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #22981:  makefile added by None (109B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rubrown (Voted in favor of this item)
  • -unavailable- added by psmith (Posted a comment)
  •  

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

    Only logged-in users can vote.

     

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

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 03 Apr 2012 03:29:52 AM UTCrubrownCarbon-Copy-=>Added rubrown
    Mon 02 May 2011 12:20:15 PM UTCpsmithTriage StatusNone=>Verified
    Mon 21 Mar 2011 07:11:39 PM UTCNoneAttached File-=>Added makefile, #22981

    Back to the top


    Powered by Savane 3.1-cleanup