Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package pw3270 for openSUSE:Factory checked 
in at 2023-03-27 18:16:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/pw3270 (Old)
 and      /work/SRC/openSUSE:Factory/.pw3270.new.31432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "pw3270"

Mon Mar 27 18:16:19 2023 rev:12 rq:1074524 version:5.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/pw3270/pw3270.changes    2022-04-12 
21:50:01.047169042 +0200
+++ /work/SRC/openSUSE:Factory/.pw3270.new.31432/pw3270.changes 2023-03-27 
18:16:27.151161143 +0200
@@ -1,0 +2,5 @@
+Sun Mar 26 13:53:07 UTC 2023 - Bernhard Wiedemann <[email protected]>
+
+- Add reproducible.patch to override build date (boo#1047218)
+
+-------------------------------------------------------------------

New:
----
  reproducible.patch

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

Other differences:
------------------
++++++ pw3270.spec ++++++
--- /var/tmp/diff_new_pack.q481wD/_old  2023-03-27 18:16:27.703164056 +0200
+++ /var/tmp/diff_new_pack.q481wD/_new  2023-03-27 18:16:27.707164077 +0200
@@ -30,6 +30,7 @@
 URL:            https://github.com/PerryWerneck/pw3270
 
 Source:         pw3270-%{version}.tar.xz
+Patch0:         reproducible.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
@@ -124,6 +125,7 @@
 #---[ Build & Install 
]-----------------------------------------------------------------------------------------------
 %prep
 %setup
+%patch0 -p1
 
 %global _lto_cflags %{_lto_cflags} -ffat-lto-objects
 NOCONFIGURE=1 ./autogen.sh

++++++ reproducible.patch ++++++
https://github.com/PerryWerneck/pw3270/pull/50

commit cb81bc57072be6f0645defd212399b04dc1d6e63
Author: Bernhard M. Wiedemann <[email protected]>
Date:   Sun Mar 26 15:45:42 2023 +0200

    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 works with different implementations of date.
    
    Also use UTC to be independent of timezone.
    
    This patch was done while working on reproducible builds for openSUSE.

diff --git a/configure.ac b/configure.ac
index 2157c7c5..86b319c2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -119,7 +119,9 @@ case "$host" in
 
 esac
 
-app_release_date=$(date +%Y-%m-%d)
+DATE_FMT="+%Y-%m-%d"
+SOURCE_DATE_EPOCH="${SOURCE_DATE_EPOCH:-$(date +%s)}"
+app_release_date=$(date -u -d "@$SOURCE_DATE_EPOCH" "$DATE_FMT" 2>/dev/null || 
date -u -r "$SOURCE_DATE_EPOCH" "$DATE_FMT" 2>/dev/null || date -u "$DATE_FMT")
 AC_SUBST(RELEASE_DATE,$app_release_date)
 AC_SUBST(OSNAME,$app_cv_osname)
 AC_SUBST(RLS_LDFLAGS,$app_rls_ldflags)

Reply via email to