File: repro.patch

package info (click to toggle)
sameboy 1.0.2%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 10,632 kB
  • sloc: ansic: 29,954; objc: 22,249; asm: 1,424; pascal: 1,373; makefile: 1,064; xml: 111
file content (25 lines) | stat: -rw-r--r-- 1,297 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: sort files in a reproductible way
Forwarded: not-needed
Author: Sébastien Noel <sebastien@twolife.be>
--- a/Makefile
+++ b/Makefile
@@ -417,14 +417,14 @@
 
 # Get a list of our source files and their respective object file targets
 
-CORE_SOURCES := $(filter-out $(CORE_FILTER),$(shell ls Core/*.c))
-CORE_HEADERS := $(shell ls Core/*.h)
-SDL_SOURCES := $(shell ls SDL/*.c) $(OPEN_DIALOG) $(patsubst %,SDL/audio/%.c,$(SDL_AUDIO_DRIVERS))
-TESTER_SOURCES := $(shell ls Tester/*.c)
+CORE_SOURCES := $(filter-out $(CORE_FILTER),$(shell ls Core/*.c | LC_ALL=C sort))
+CORE_HEADERS := $(shell ls Core/*.h | LC_ALL=C sort)
+SDL_SOURCES := $(shell ls SDL/*.c | LC_ALL=C sort) $(OPEN_DIALOG) $(patsubst %,SDL/audio/%.c,$(SDL_AUDIO_DRIVERS))
+TESTER_SOURCES := $(shell ls Tester/*.c | LC_ALL=C sort)
 IOS_SOURCES := $(filter-out iOS/installer.m, $(shell ls iOS/*.m)) $(shell ls AppleCommon/*.m)
 COCOA_SOURCES := $(shell ls Cocoa/*.m) $(shell ls HexFiend/*.m) $(shell ls JoyKit/*.m) $(shell ls AppleCommon/*.m)
 QUICKLOOK_SOURCES := $(shell ls QuickLook/*.m) $(shell ls QuickLook/*.c)
-XDG_THUMBNAILER_SOURCES := $(shell ls XdgThumbnailer/*.c)
+XDG_THUMBNAILER_SOURCES := $(shell ls XdgThumbnailer/*.c | LC_ALL=C sort)
 
 ifeq ($(PLATFORM),windows32)
 CORE_SOURCES += $(shell ls Windows/*.c)