bugmake - Bugs: bug #49590, wildcard no longer give sorted...

 
 

bug #49590: wildcard no longer give sorted output in version 4.2

Submitted by:  kokapui <kokapui>
Submitted on:  Sat 12 Nov 2016 01:05:29 AM UTC  
 
Severity: 3 - NormalItem Group: Enhancement
Status: Not A BugPrivacy: Public
Assigned to: NoneOpen/Closed: Closed
Component Version: 4.2Operating System: Any
Fixed Release: NoneTriage Status: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 12 Nov 2016 01:12:04 AM UTC, comment #1:

http://git.savannah.gnu.org/cgit/make.git/tree/NEWS

Version 3.82 (28 Jul 2010)
...

  • WARNING: Backward-incompatibility!

Wildcards were not documented as returning sorted values, but the results
have been sorted up until this release.. If your makefiles require sorted
results from wildcard expansions, use the $(sort ...) function to request
it explicitly.

Martin Dorey <mdorey>
Sat 12 Nov 2016 01:05:29 AM UTC, original submission:

The wildcard function returns sorted results in version 3.81, but it does do the same in version 4.2. Is there any compile/runtime switch to control this behavior? Or is it a bug?

Below shows the results from two version of GNU make.

$ ls a.mk a0.svp a1.svp a2.svp a3.svp a4.svp a5.svp a6.svp a7.svp a8.svp a9.svp

$ cat a.mk

SRC_FILES := $(wildcard *.svp)

all: @echo $(SRC_FILES)

$ make -f a.mk all
a0.svp a1.svp a2.svp a3.svp a4.svp a5.svp a6.svp a7.svp a8.svp a9.svp

$ ~/sandbox/bin/make -f a.mk all
a0.svp a1.svp a6.svp a5.svp a9.svp a4.svp a3.svp a2.svp a7.svp a8.svp

$make –v | head -n 1

GNU Make 3.81

$ ~/sandbox/bin/make -v | head -n 1

GNU Make 4.2

kokapui <kokapui>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by psmith (Updated the item)
  • -unavailable- added by mdorey (Posted a comment)
  • -unavailable- added by kokapui (Submitted the item)
  • -unavailable- added by kokapui
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 12 Nov 2016 01:44:56 AM UTCpsmithStatusNone=>Not A Bug
      Open/ClosedOpen=>Closed
    Sat 12 Nov 2016 01:05:29 AM UTCkokapuiCarbon-Copy-=>Added kokapui

    Back to the top


    Powered by Savane 3.1-cleanup1