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

 
 

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

Submitter:  Agent Zhang <agent>
Submitted:  Sat 09 Jun 2007 05:37:51 PM UTC
   
 
Severity:  3 - Normal Item Group:  Enhancement
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  3.81 Operating System:  Any
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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 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 agent (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
    2008-07-09 psmith Attached File#16072 Removed
    2008-07-09 None Attached File- Added get_php_80x15_2.png, #16072

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code