Hello community,

here is the log from the commit of package x3270 for openSUSE:Factory checked 
in at 2018-08-07 09:43:09
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/x3270 (Old)
 and      /work/SRC/openSUSE:Factory/.x3270.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "x3270"

Tue Aug  7 09:43:09 2018 rev:38 rq:627661 version:3.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/x3270/x3270.changes      2017-01-09 
11:54:33.572145540 +0100
+++ /work/SRC/openSUSE:Factory/.x3270.new/x3270.changes 2018-08-07 
09:43:20.645337797 +0200
@@ -1,0 +2,6 @@
+Sat Jul 14 12:41:10 UTC 2018 - [email protected]
+
+- Add mkversion.patch to have fixed timestamps (boo#1047218)
+- Add reproducible.patch to not add timestamps in .gz header
+
+-------------------------------------------------------------------

New:
----
  mkversion.patch
  reproducible.patch

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

Other differences:
------------------
++++++ x3270.spec ++++++
--- /var/tmp/diff_new_pack.IREYwa/_old  2018-08-07 09:43:21.521339321 +0200
+++ /var/tmp/diff_new_pack.IREYwa/_new  2018-08-07 09:43:21.525339328 +0200
@@ -34,6 +34,8 @@
 Patch102:       x026-offset.diff
 Patch105:       x3270-missing-include.patch
 Patch106:       x3270-missing-file.patch
+Patch107:       reproducible.patch
+Patch108:       mkversion.patch
 BuildRequires:  bdftopcf
 BuildRequires:  fdupes
 BuildRequires:  fontpackages-devel
@@ -105,6 +107,12 @@
 %patch102
 %patch105 -p1
 %patch106 -p1
+%patch107 -p1
+for d in x3270 c3270 s3270 tcl3270 pr3287 ; do
+(cd $d
+%patch108 -p2
+)
+done
 
 %build
 export CFLAGS="%{optflags}"

++++++ mkversion.patch ++++++
commit d2f9fa8d7f59c357449ab2b69141700cb5527135
Author: Bernhard M. Wiedemann <[email protected]>
Date:   Sun Jun 18 19:49:43 2017 +0200

    allow to override build date
    
    to allow reproducible builds of x3270
    
    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.

diff --git a/Common/mkversion.sh b/Common/mkversion.sh
index f5cd712c..33100743 100755
--- a/Common/mkversion.sh
+++ b/Common/mkversion.sh
@@ -40,15 +40,17 @@ export LANG LC_ALL
 set -e
 
 . ${2-./version.txt}
-builddate=`date`
-sccsdate=`date +%Y/%m/%d`
+date="date -u"
+[ -n "$SOURCE_DATE_EPOCH" ] && date="$date -d@$SOURCE_DATE_EPOCH"
+builddate=`$date`
+sccsdate=`$date +%Y/%m/%d`
 user=${LOGNAME-$USER}
 
 # Create an all numeric timestamp for rpqnames.
 # rpq.c will return this string of numbers in bcd format
 # It is OK to change the length (+ or -), but use
 # decimal (0-9) digits only. Length must be even number of digits.
-rpq_timestamp=`date +%Y%m%d%H%M%S`
+rpq_timestamp=`$date +%Y%m%d%H%M%S`
 
 app=${1-x3270}
 cat <<EOF
++++++ reproducible.patch ++++++
commit cfd52cccf0a25c8a3d20cbb2f2e359c9fad8b2ad
Author: Bernhard M. Wiedemann <[email protected]>
Date:   Sun Jun 18 19:40:24 2017 +0200

    Call gzip -n to make build fully reproducible
    
    See https://reproducible-builds.org/ for why that matters

diff --git a/x3270/Makefile.obj.in b/x3270/Makefile.obj.in
index 716c7085..de2f8261 100644
--- a/x3270/Makefile.obj.in
+++ b/x3270/Makefile.obj.in
@@ -82,7 +82,7 @@ x3270: $(OBJS1) $(DEP3270) $(DEP3270I) $(DEP32XX) 
$(DEP3270STUBS)
        $(CC) -o $@ $(OBJS1) $(LDFLAGS) $(LD3270) $(LD3270I) $(LD32XX) 
$(LD3270STUBS) $(LIBS)
 
 %.pcf.gz: %.bdf
-       bdftopcf $< | gzip >$@
+       bdftopcf $< | gzip -n9 >$@
 
 dryrun: dryrun.in
        /bin/cp $< $@

Reply via email to