bugmake - Bugs: bug #15373, 3.81-beta4 may ignore overriding...

 
 

bug #15373: 3.81-beta4 may ignore overriding pattern rules

Submitter:  None
Submitted:  Wed 04 Jan 2006 08:25:22 PM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  4.0 Operating System:  POSIX-Based
Fixed Release:  3.81 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 04 Jan 2006 08:43:06 PM UTC, comment #1: 

I just fixed this yesterday.  See this thread on help-make:

http://www.mail-archive.com/help-make%40gnu.org/msg04977.html

It may not look like it at first glance, but it's the same problem you're seeing.

Paul D. Smith <psmith>
Group administrator
Wed 04 Jan 2006 08:25:22 PM UTC, original submission:  

Consider the following five-line Makefile:

$ cat test.makefile
%.o : %.cc #
: rule 1

%.o : %.cc
: rule 2
$

The second rule should override the first, but it doesn't:

$ make -f test.makefile parse.o
: rule 1
$

If the second rule is written as:

%.o : %.cc #
: rule 2

(i.e., with a space and a hash) it works as expected. Similarly if the first rule is written without a comment.

This worked fine with 3.80. This particular make is the Debian-packaged version, running on ia64:

$ make --version
GNU Make 3.81beta4
Copyright (C) 2003  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

This program built for ia64-unknown-linux-gnu
$

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

 

CC list is empty

 

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 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2006-04-01 psmith Fixed Release4.0 3.81
2006-01-04 psmith StatusNone Fixed
    Assigned toNone psmith
    Open/ClosedOpen Closed
    Fixed ReleaseNone 4.0

Back to the top

Powered by Savane 3.13-bb6a.
Corresponding source code