Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package xroachng for openSUSE:Factory 
checked in at 2023-06-11 19:54:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/xroachng (Old)
 and      /work/SRC/openSUSE:Factory/.xroachng.new.15902 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "xroachng"

Sun Jun 11 19:54:35 2023 rev:2 rq:1091834 version:1.0.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/xroachng/xroachng.changes        2023-04-28 
16:23:58.338221748 +0200
+++ /work/SRC/openSUSE:Factory/.xroachng.new.15902/xroachng.changes     
2023-06-11 19:57:25.219934036 +0200
@@ -1,0 +2,5 @@
+Fri Jun  9 04:11:14 UTC 2023 - Bernhard Wiedemann <[email protected]>
+
+- Add reproducible.patch to override build date (boo#1047218)
+
+-------------------------------------------------------------------

New:
----
  reproducible.patch

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

Other differences:
------------------
++++++ xroachng.spec ++++++
--- /var/tmp/diff_new_pack.aTnEJc/_old  2023-06-11 19:57:25.731937124 +0200
+++ /var/tmp/diff_new_pack.aTnEJc/_new  2023-06-11 19:57:25.735937147 +0200
@@ -26,6 +26,7 @@
 Source:         
https://www.ratrabbit.nl/downloads/xroachng/%{name}-%{version}.tar.gz
 # PATCH-FIX-OPENSUSE xroachng-desktop_file.patch -- Fix desktop categories
 Patch0:         xroachng-desktop_file.patch
+Patch1:         reproducible.patch
 BuildRequires:  gcc-c++
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(glib-2.0)

++++++ reproducible.patch ++++++
Date: 2023-06-09
Author: Bernhard M. Wiedemann <bwiedemann suse de>
Subject: Allow to override build date

Allow to override build date with SOURCE_DATE_EPOCH
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of this variable.
This date call only works with GNU date.
Also use UTC/gmtime to be independent of timezone.

%B still causes variations with locales, so ISO 8601 date format is recommended.

Index: xroachng-1.0.3/simplemake.sh
===================================================================
--- xroachng-1.0.3.orig/simplemake.sh
+++ xroachng-1.0.3/simplemake.sh
@@ -66,7 +66,7 @@ $CC -o xroachng *.o $FLAGS || exit 1
 cd ..
 echo "creating man page xroachng.1 in directory $PWD:"
 version=`src/xroachng -v|awk '{print $2}'`
-sed 
"s'SYSTEMTHEMES'$PKGDATADIR/xroachng/themes/*';s/VERSION/$version/;s/DATE/`date 
+'%B %Y'`/" < xroachng.1.tmpl > xroachng.1
+sed 
"s'SYSTEMTHEMES'$PKGDATADIR/xroachng/themes/*';s/VERSION/$version/;s/DATE/`date 
-u -d @${SOURCE_DATE_EPOCH:-$(date +%s)} +'%B %Y'`/" < xroachng.1.tmpl > 
xroachng.1
 
 echo
 echo " ***********************************************************************"
Index: xroachng-1.0.3/Makefile.am
===================================================================
--- xroachng-1.0.3.orig/Makefile.am
+++ xroachng-1.0.3/Makefile.am
@@ -11,7 +11,7 @@ EXTRA_DIST = \
 man_MANS = xroachng.1
 
 xroachng.1: xroachng.1.tmpl
-       sed "s/VERSION/$(VERSION)/;s/DATE/`date +'%B %Y'`/" < $< > $@
+       sed "s/VERSION/$(VERSION)/;s/DATE/`date -u -d 
@${SOURCE_DATE_EPOCH:-$(date +%s)} +'%B %Y'`/" < $< > $@
 
 CLEANFILES = xroachng.1
 
Index: xroachng-1.0.3/Makefile.in
===================================================================
--- xroachng-1.0.3.orig/Makefile.in
+++ xroachng-1.0.3/Makefile.in
@@ -868,7 +868,7 @@ uninstall-man: uninstall-man1
 
 
 xroachng.1: xroachng.1.tmpl
-       sed "s/VERSION/$(VERSION)/;s/DATE/`date +'%B %Y'`/" < $< > $@
+       sed "s/VERSION/$(VERSION)/;s/DATE/`date -u -d 
@${SOURCE_DATE_EPOCH:-$(date +%s)} +'%B %Y'`/" < $< > $@
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.

Reply via email to