bugmake - Bugs: bug #20133, 'make -p' always uses ':=' for...

 
 

bug #20133: 'make -p' always uses ':=' for pattern-specific variable assignments

Submitted by:  Agent Zhang <agent>
Submitted on:  Sat 09 Jun 2007 05:37:51 PM UTC  
 
Severity: 3 - NormalItem Group: Enhancement
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: 3.81Operating System: Any
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.

 

Thu 14 Jun 2007 09:31:55 PM UTC, comment #1:

I looked at this briefly and it's tough. In order to get the proper behavior for the target-specific variables, make has to modify the way the variable is stored; once that happens it's pretty hard to reconstruct the way the variable originally appeared in the makefile.

I'll look at it more closely; there might be a way to get back the original info.

Paul D. Smith <psmith>
Project Administrator
Sat 09 Jun 2007 05:37:51 PM UTC, original submission:

Hi~

I've found that "make --print-data-base" produces the following bogus output for the pattern-specific variable assignment "%.x: FOO = $(BAR)":

# Pattern-specific Variable Values

%.x :
# makefile (from `a.mk', line 1)
# FOO := $$(BAR)

You see, it's totally wrong...Also, 'make -p' lazily treats both "+=" and "?=" as ":=". Sigh.

It's worth mentioning that target-specific variable assignments work fine though.

As I mentioned earlier in bug-make that I've been building a makefile AST evaluator in Perl atop the database printing feature of make. Now that I've successfully passed 45% of the official test suite, fixing bugs like this will definitely help me (and other people in the future?) proceed more smoothly :)

Thanks!
agentz

Agent Zhang <agent>

 

(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 agent (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
    Wed 09 Jul 2008 12:51:34 PM UTCpsmithAttached File#16072=>Removed
    Wed 09 Jul 2008 07:33:52 AM UTCNoneAttached File-=>Added get_php_80x15_2.png, #16072

    Back to the top


    Powered by Savane 3.1-cleanup1