Hello community,

here is the log from the commit of package tomatoes for openSUSE:Factory 
checked in at 2017-05-31 12:20:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/tomatoes (Old)
 and      /work/SRC/openSUSE:Factory/.tomatoes.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "tomatoes"

Wed May 31 12:20:41 2017 rev:2 rq:499764 version:1.55

Changes:
--------
--- /work/SRC/openSUSE:Factory/tomatoes/tomatoes.changes        2015-06-23 
11:56:03.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.tomatoes.new/tomatoes.changes   2017-05-31 
12:20:42.312243797 +0200
@@ -1,0 +2,6 @@
+Sat May 27 05:17:40 UTC 2017 - bwiedem...@suse.com
+
+- Add reproducible.patch to sort input files to make build reproducible
+  (boo#1041090)
+
+-------------------------------------------------------------------

New:
----
  reproducible.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ tomatoes.spec ++++++
--- /var/tmp/diff_new_pack.M87egP/_old  2017-05-31 12:20:43.004146124 +0200
+++ /var/tmp/diff_new_pack.M87egP/_new  2017-05-31 12:20:43.004146124 +0200
@@ -27,6 +27,7 @@
 Source1:        
http://downloads.sourceforge.net/%{name}/1.5/%{name}-linux-1.5.tar.bz2
 Source2:        %{name}-rpmlintrc
 Source3:        %{name}.desktop
+Patch0:         reproducible.patch
 BuildRequires:  Mesa-devel
 BuildRequires:  dos2unix
 BuildRequires:  gcc-c++
@@ -50,6 +51,7 @@
 
 %prep
 %setup -q -a1
+%patch0 -p1
 
 cp -r tomatoes-1.5/* .
 

++++++ reproducible.patch ++++++
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))
 

Reply via email to