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

 
 

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

Submitter:  kokapui <kokapui>
Submitted:  Sat 12 Nov 2016 01:05:29 AM UTC
   
 
Severity:  3 - Normal Item Group:  Enhancement
Status:  Not A Bug Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  4.2 Operating System:  Any
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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 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 mdorey (Posted a comment)
  • -email is unavailable- added by kokapui (Submitted the item)
  • -email is unavailable- added by kokapui
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-12 psmith StatusNone Not A Bug
        Open/ClosedOpen Closed
    2016-11-12 kokapui Carbon-Copy- Added kokapui

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code