forked from pool/spacenavd
Herbert Graeber
0b36e206a9
Add reproducible.patch to sort input files to make build reproducible (boo#1041090) OBS-URL: https://build.opensuse.org/request/show/498588 OBS-URL: https://build.opensuse.org/package/show/hardware/spacenavd?expand=0&rev=8
20 lines
775 B
Diff
20 lines
775 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: spacenavd-0.6/Makefile.in
|
|
===================================================================
|
|
--- spacenavd-0.6.orig/Makefile.in
|
|
+++ spacenavd-0.6/Makefile.in
|
|
@@ -1,4 +1,4 @@
|
|
-src = $(wildcard src/*.c) $(wildcard src/serial/*.c) $(wildcard src/magellan/*.c)
|
|
+src = $(sort $(wildcard src/*.c) $(wildcard src/serial/*.c) $(wildcard src/magellan/*.c))
|
|
hdr = $(wildcard src/*.h) $(wildcard src/serial/*.h) $(wildcard src/magellan/*.h)
|
|
obj = $(src:.c=.o)
|
|
dep = $(obj:.o=.d)
|