From 0f06af6f9d59686c9e033ce9019d5cabb51f99e6379743c173c9b5da480b2450 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 26 Feb 2016 07:55:47 +0000 Subject: [PATCH] Accepting request 361463 from home:bmwiedemann:branches:network - drop a changing timestamp making build reproducible OBS-URL: https://build.opensuse.org/request/show/361463 OBS-URL: https://build.opensuse.org/package/show/network/bind?expand=0&rev=187 --- bind.changes | 5 +++++ bind.spec | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/bind.changes b/bind.changes index 41db4bd..304db61 100644 --- a/bind.changes +++ b/bind.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Feb 25 16:10:45 UTC 2016 - bwiedemann@suse.com + +- drop a changing timestamp making build reproducible + ------------------------------------------------------------------- Fri Feb 12 18:56:28 UTC 2016 - crrodriguez@opensuse.org diff --git a/bind.spec b/bind.spec index f28275c..1241293 100644 --- a/bind.spec +++ b/bind.spec @@ -377,6 +377,10 @@ Name Domain (BIND) DNS server is found in the package named bind. %patch53 %patch101 -p1 %patch102 -p1 +# use the year from source gzip header instead of current one to make reproducible rpms +year=$(perl -e 'sysread(STDIN, $h, 8); print (1900+(gmtime(unpack("l",substr($h,4))))[5])' < %{S:0}) +sed -i "s/stdout, copyright, year/stdout, copyright, \"-$year\"/" lib/dns/gen.c + # modify settings of some files regarding to OS version and vendor function replaceStrings() {