SHA256
1
0
forked from pool/spacenavd
Dominique Leuenberger 2017-05-31 10:18:18 +00:00 committed by Git OBS Bridge
commit be60053259
3 changed files with 28 additions and 0 deletions

19
reproducible.patch Normal file
View File

@ -0,0 +1,19 @@
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)

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat May 27 05:26:02 UTC 2017 - bwiedemann@suse.com
- Add reproducible.patch to sort input files to make build reproducible
(boo#1041090)
-------------------------------------------------------------------
Sun Oct 30 17:43:38 UTC 2016 - jengelh@inai.de

View File

@ -19,6 +19,8 @@ Source1: spacenavd.8.gz
Source2: spnavrc
Source3: xinitrc-%{name}
Source4: %{name}.service
# PATCH-FIX-UPSTREAM bmwiedemann https://sourceforge.net/p/spacenav/patches/6/
Patch0: reproducible.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: xorg-x11
BuildRequires: xorg-x11-devel
@ -37,6 +39,7 @@ any program that was written for the 3Dconnexion driver.
%prep
%setup -q
%patch0 -p1
%build
%configure