Hello community, here is the log from the commit of package pw3270 for openSUSE:Factory checked in at 2020-03-25 23:46:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/pw3270 (Old) and /work/SRC/openSUSE:Factory/.pw3270.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "pw3270" Wed Mar 25 23:46:43 2020 rev:7 rq:788183 version:5.2 Changes: -------- --- /work/SRC/openSUSE:Factory/pw3270/pw3270.changes 2020-02-20 15:37:39.954768686 +0100 +++ /work/SRC/openSUSE:Factory/.pw3270.new.3160/pw3270.changes 2020-03-25 23:47:45.800060800 +0100 @@ -1,0 +2,5 @@ +Wed Mar 25 08:47:04 UTC 2020 - Bernhard Wiedemann <[email protected]> + +- Add reproducible.patch to make package build reproducible (boo#1047218) + +------------------------------------------------------------------- New: ---- reproducible.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pw3270.spec ++++++ --- /var/tmp/diff_new_pack.zt3ioQ/_old 2020-03-25 23:47:48.392060114 +0100 +++ /var/tmp/diff_new_pack.zt3ioQ/_new 2020-03-25 23:47:48.392060114 +0100 @@ -39,6 +39,7 @@ Url: https://portal.softwarepublico.gov.br/social/pw3270/ Source: pw3270-%{version}.tar.xz +Patch0: reproducible.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -198,6 +199,7 @@ %prep %setup -q -n pw3270-%{version} +%patch0 -p1 %build %global _lto_cflags %{_lto_cflags} -ffat-lto-objects ++++++ reproducible.patch ++++++ https://github.com/PerryWerneck/pw3270/pull/2 Author: Bernhard M. Wiedemann <[email protected]> Date: Thu Dec 5 18:57:54 2019 +0100 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. Also switch to UTC to be independent of timezone. Note: This date call is designed to work with different flavors of date (GNU, BSD and others). If only GNU (Linux) support is needed, the patch can be simplified. This PR was done while working on reproducible builds for openSUSE. Index: pw3270-5.2/branding/Makefile.in =================================================================== --- pw3270-5.2.orig/branding/Makefile.in +++ pw3270-5.2/branding/Makefile.in @@ -51,7 +51,7 @@ $(BINDIR)/%.png: \ @echo $@ ... @$(MKDIR) `dirname $@` - @$(CONVERT) -background transparent $< $@ + @$(CONVERT) -strip -background transparent $< $@ @$(OPTIPNG) -o7 $@ $(BINDIR)/%.ico: \ Index: pw3270-5.2/src/libpw3270cpp/Makefile.in =================================================================== --- pw3270-5.2.orig/src/libpw3270cpp/Makefile.in +++ pw3270-5.2/src/libpw3270cpp/Makefile.in @@ -61,6 +61,13 @@ VALGRIND=@VALGRIND@ INSTALL_DATA=@INSTALL_DATA@ INSTALL_PROGRAM=@INSTALL_PROGRAM@ +DATE_FMT = +%Y%m%d +ifdef SOURCE_DATE_EPOCH + BUILD_DATE ?= $(shell 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)") +else + BUILD_DATE ?= $(shell date "$(DATE_FMT)") +endif + CFLAGS= \ @CFLAGS@ \ -Wno-deprecated-declarations \ @@ -102,7 +109,7 @@ $(OBJRLS)/%.o: \ @$(MKDIR) `dirname $@` @$(CC) $(CFLAGS) \ @RLS_CFLAGS@ \ - -DBUILD_DATE=`date +"%Y%m%d"` \ + -DBUILD_DATE=$(BUILD_DATE) \ -o $@ -c $< $(POTDIR)/%.pot: %.c
