rudix-mac / rudix

Build system target on macOS with precompiled packages
https://rudix.org
BSD 3-Clause "New" or "Revised" License
194 stars 35 forks source link

Patch order #92

Closed paaguti closed 2 years ago

paaguti commented 5 years ago

Patching always needs an order. Since some time ago, GNU make doesn't make any assumptions on the order of file names returned by $(wildcard ...) (see discussion in https://stackoverflow.com/questions/40558385/gnu-make-wildcard-no-longer-gives-sorted-output-is-there-any-control-switch)

I propose to assure the patch order by 1.- using the suggestion made by the GNU team in http://git.savannah.gnu.org/cgit/make.git/tree/NEWS (comment is from 2010):

$(sort $(wildcard ....))

2.- using a 2/3 digit prefix in the patches to assure the order