Hello community,

here is the log from the commit of package nsnake for openSUSE:Factory checked 
in at 2019-01-26 22:22:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nsnake (Old)
 and      /work/SRC/openSUSE:Factory/.nsnake.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nsnake"

Sat Jan 26 22:22:17 2019 rev:2 rq:668630 version:3.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/nsnake/nsnake.changes    2019-01-24 
14:11:00.695528751 +0100
+++ /work/SRC/openSUSE:Factory/.nsnake.new.28833/nsnake.changes 2019-01-26 
22:22:19.566860019 +0100
@@ -1,0 +2,6 @@
+Fri Jan 25 11:40:14 UTC 2019 - Bernhard Wiedemann <[email protected]>
+
+- Add reproducible.patch to override build date (boo#1047218)
+  and to sort file lists (boo#1041090)
+
+-------------------------------------------------------------------

New:
----
  reproducible.patch

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

Other differences:
------------------
++++++ nsnake.spec ++++++
--- /var/tmp/diff_new_pack.Fa7a8A/_old  2019-01-26 22:22:20.062859618 +0100
+++ /var/tmp/diff_new_pack.Fa7a8A/_new  2019-01-26 22:22:20.066859615 +0100
@@ -26,6 +26,7 @@
 #Git-Clone:     https://github.com/alexdantas/nSnake.git
 Source:         
https://github.com/alexdantas/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
 Patch0:         nsnake-3.0.1-ESCDELAY.patch
+Patch1:         reproducible.patch
 BuildRequires:  gcc-c++
 BuildRequires:  hicolor-icon-theme
 BuildRequires:  ncurses-devel
@@ -43,6 +44,7 @@
 %prep
 %setup -q -n nSnake-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 make %{?_smp_mflags}

++++++ reproducible.patch ++++++
Integrated into https://github.com/distropatches/nSnake

Author: Bernhard M. Wiedemann <[email protected]>
Date:   Fri Jan 25 11:38:17 2019 +0100

    Sort input file list
    
    so that nsnake builds in a reproducible way
    in spite of indeterministic filesystem readdir order

Author: Bernhard M. Wiedemann <[email protected]>
Date:   Fri Jan 25 11:37:06 2019 +0100

    Use ChangeLog date instead of build date

    in order to make builds reproducible.
    See https://reproducible-builds.org/ for why this is good.

Index: nSnake-3.0.1/Makefile
===================================================================
--- nSnake-3.0.1.orig/Makefile
+++ nSnake-3.0.1/Makefile
@@ -39,7 +39,7 @@
 # General Info
 PACKAGE = nsnake
 VERSION = 3.0.0
-DATE    = $(shell date "+%b%Y")
+DATE    = $(shell date -u -r ChangeLog "+%b%Y")
 
 # Install dirs
 PREFIX      = /usr
@@ -69,8 +69,8 @@ INCLUDESDIR = -I"src/" -I"deps/"
 LIBSDIR     =
 
 # All source files
-CFILES   = $(shell find src -type f -name '*.c')
-CXXFILES = $(shell find src -type f -name '*.cpp')
+CFILES   = $(sort $(shell find src -type f -name '*.c'))
+CXXFILES = $(sort $(shell find src -type f -name '*.cpp'))
 OBJECTS  = $(CFILES:.c=.o) \
            $(CXXFILES:.cpp=.o)
 

Reply via email to