bugmake - Bugs: bug #20067, Unescaped meta characters in...

 
 

bug #20067: Unescaped meta characters in makefile database outputs

Submitter:  Agent Zhang <agent>
Submitted:  Mon 04 Jun 2007 01:01:53 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:  Medium Effort
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 03 Jul 2010 07:40:57 PM UTC, comment #1: 

It's never been a goal that the output of "make -p" should be a valid makefile that can be reused directly.  I'm leaving this as an enhancement request.

Paul D. Smith <psmith>
Group administrator
Mon 04 Jun 2007 01:01:53 PM UTC, original submission:  

<p>
The bug is that 'make -pg' generates the following stuff for the
rule <code> foo\#bar.ext: ; @echo foo\#bar.ext = '$@' </code>:
</p>

<pre>
 foo#bar.ext:
 #  Implicit rule search has not been done.
 #  Modification time never checked.
 #  File has not been updated.
 #  commands to execute (from `./Makefile_qCzal', line 6):
       @echo foo\#bar.ext = '$@'
</pre>

<p>
where the first "#" character should have been escaped by "\" but doesn't. :(
</p>

<p>
In fact, meta characters like ':', '#', and '\' are all left unescaped in the makefile database output, which could result in ambiguous results and invalid makefile syntax.
</p>

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 (Updated the item)
  • -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
    2010-07-03 psmith Triage StatusNone Medium Effort
    2007-06-14 psmith Item GroupBug Enhancement

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code