bugmake - Bugs: bug #34806, target-specific variable with...

 
 

bug #34806: target-specific variable with conditional assignment generates garbage

Submitter:  None
Submitted:  Sat 12 Nov 2011 12:06:18 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Duplicate Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  3.81 Operating System:  POSIX-Based
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 13 Nov 2011 04:54:47 PM UTC, comment #2: 

Would it be easy to isolate the related patch for you?  If so, distros could integrate that before 3.83 comes out.  So if it's easy, please attach the patch applied.  Thanks!

Sebastian Pipping <hartwork>
Sun 13 Nov 2011 04:26:04 PM UTC, comment #1: 

This has already been fixed in the current source code and the fix will be available in the next release of GNU make.

Thanks!

Paul D. Smith <psmith>
Group administrator
Sat 12 Nov 2011 12:06:18 AM UTC, original submission:  

Target-specific variable conditional assignment is broken.

The following Makefile:

DEFAULT=1234                                                                                                                                                            
                                                                                                                                                                        
all:    VAR ?= $(DEFAULT)                                                                                                                                               
all:                                                                                                                                                                    
    @echo VAR=$(VAR)

prints '1234' when invoked as 'make' but when invoked as 'make VAR=5678' will print garbage characters.

Anonymous

 

(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 hartwork (Posted a comment)
  • -email is unavailable- added by psmith (Posted a comment)
  •  

    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
    2011-11-13 psmith StatusNone Duplicate
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code