bugmake - Bugs: bug #18116, filter_out functions seems to...

 
 

bug #18116: filter_out functions seems to always return an empty result

Submitter:  None
Submitted:  Thu 26 Oct 2006 09:43:03 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Not A Bug 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
   

Thu 26 Oct 2006 12:00:50 PM UTC, comment #2: 

As Philip says, the problem is in the makefile.  If you still have issues after correcting that, post it here.

Cheers!

Paul D. Smith <psmith>
Group administrator
Thu 26 Oct 2006 11:00:00 AM UTC, comment #1: 


> test=$(filter_out $(mains),$(objects))


You misspelled the function: it's "filter-out" with a hyphen, not an underbar.


Philip Guenther

Anonymous
Thu 26 Oct 2006 09:43:03 AM UTC, original submission:  

Here is an instance of Makefile that shows the issue (from the example given in the manual):
### begin example
objects=main1.o foo.o main2.o bar.o
mains=main1.o main2.o
test=$(filter_out $(mains),$(objects))

all:
@echo "objects: " $(objects)
@echo "mains: " $(mains)
@echo "test: "  $(test)

### end example
tmp $ make
objects:  main1.o foo.o main2.o bar.o
mains:  main1.o main2.o
test:

The last line of output should be test: foo.o bar.o
OTOH filter works as expected

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

Date Changed by Updated Field Previous Value => Replaced by
2006-10-26 psmith StatusNone Not A Bug
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-caa5.
Corresponding source code