1
0
forked from pool/trigger-rally
trigger-rally/reproducible.patch
Ferdinand Thiessen 7acad614d7 Accepting request 621952 from home:bmwiedemann:branches:games
- make compilation independent of build system CPU (boo#1100677)

- Add reproducible.patch to sort input files to make build fully reproducible

OBS-URL: https://build.opensuse.org/request/show/621952
OBS-URL: https://build.opensuse.org/package/show/games/trigger-rally?expand=0&rev=27
2018-07-11 13:30:12 +00:00

40 lines
2.2 KiB
Diff

Index: trigger-rally-0.6.5/src/GNUmakefile
===================================================================
--- trigger-rally-0.6.5.orig/src/GNUmakefile
+++ trigger-rally-0.6.5/src/GNUmakefile
@@ -17,7 +17,7 @@ TR_CFGFILE := $(TR_BINDIR)/$(TR_CFG
TR_DATAFILES := $(shell cd $(TR_DATADIR); find * -type f)
TR_DOCFILES := $(shell cd $(TR_DOCDIR); find * -type f)
PROJDIRS := PEngine PSim TinyXML2 Trigger
-SRCFILES := $(shell find $(PROJDIRS) -type f -name "*.cpp")
+SRCFILES := $(sort $(shell find $(PROJDIRS) -type f -name "*.cpp"))
OBJFILES := $(patsubst %.cpp, %.o, $(SRCFILES))
DEPFILES := $(patsubst %.cpp, %.d, $(SRCFILES))
WARNINGS ?= -Wall -Wextra -pedantic
Index: trigger-rally-0.6.5/src/GNUmakefile.MSYS
===================================================================
--- trigger-rally-0.6.5.orig/src/GNUmakefile.MSYS
+++ trigger-rally-0.6.5/src/GNUmakefile.MSYS
@@ -27,7 +27,7 @@ TR_DLLFILES := \
$(TR_BINDIR)/zlib1.dll
FMODAPIDIR := /c/Program Files (x86)/FMOD SoundSystem/FMOD Studio API Windows/api/lowlevel
PROJDIRS := PEngine PSim TinyXML2 Trigger
-SRCFILES := $(shell find $(PROJDIRS) -type f -name "*.cpp")
+SRCFILES := $(sort $(shell find $(PROJDIRS) -type f -name "*.cpp"))
OBJFILES := $(patsubst %.cpp, %.o, $(SRCFILES))
DEPFILES := $(patsubst %.cpp, %.d, $(SRCFILES))
WARNINGS ?= -Wall -Wextra -pedantic
Index: trigger-rally-0.6.5/src/GNUmakefile.MSYS64
===================================================================
--- trigger-rally-0.6.5.orig/src/GNUmakefile.MSYS64
+++ trigger-rally-0.6.5/src/GNUmakefile.MSYS64
@@ -26,7 +26,7 @@ TR_DLLFILES := \
$(TR_BINDIR)/zlib1.dll
FMODAPIDIR := /c/Program Files (x86)/FMOD SoundSystem/FMOD Studio API Windows/api/lowlevel
PROJDIRS := PEngine PSim TinyXML2 Trigger
-SRCFILES := $(shell find $(PROJDIRS) -type f -name "*.cpp")
+SRCFILES := $(sort $(shell find $(PROJDIRS) -type f -name "*.cpp"))
OBJFILES := $(patsubst %.cpp, %.o, $(SRCFILES))
DEPFILES := $(patsubst %.cpp, %.d, $(SRCFILES))
WARNINGS ?= -Wall -Wextra -pedantic