SHA256
1
0
forked from pool/tomatoes
Files
tomatoes/reproducible.patch
Ferdinand Thiessen e39f30003a Accepting request 498586 from home:bmwiedemann:branches:games
Add reproducible.patch to sort input files to make build reproducible
  (boo#1041090)

OBS-URL: https://build.opensuse.org/request/show/498586
OBS-URL: https://build.opensuse.org/package/show/games/tomatoes?expand=0&rev=6
2017-05-30 13:18:51 +00:00

23 lines
652 B
Diff

sort input files (boo#1041090)
when building packages (e.g. for openSUSE Linux)
(random) filesystem order of input files
influences ordering of functions in the output,
thus without the patch, builds (in disposable VMs) would differ.
See https://reproducible-builds.org/ for why this matters.
Index: tomatoes-1.55/makefile
===================================================================
--- tomatoes-1.55.orig/makefile
+++ tomatoes-1.55/makefile
@@ -53,7 +53,7 @@ endif
endif
# Source and object files
-SOURCES = $(wildcard src/*.cpp)
+SOURCES = $(sort $(wildcard src/*.cpp))
OBJS = $(SOURCES:.cpp=.o)
OBJS := $(subst src/,obj/,$(OBJS))