From c3ef98f4f3b509e9b44d0d14e6796c82846f2d01c8cc3fe5f29d8dee2df14cd6 Mon Sep 17 00:00:00 2001 From: Nirmoy Das Date: Mon, 9 Oct 2017 08:22:17 +0000 Subject: [PATCH] Accepting request 510075 from home:bmwiedemann:branches:network:dhcp use .gz year instead of current one to make build reproducible OBS-URL: https://build.opensuse.org/request/show/510075 OBS-URL: https://build.opensuse.org/package/show/network:dhcp/dhcp?expand=0&rev=176 --- dhcp.changes | 5 +++++ dhcp.spec | 3 +++ 2 files changed, 8 insertions(+) diff --git a/dhcp.changes b/dhcp.changes index 65db6ae..b922ee8 100644 --- a/dhcp.changes +++ b/dhcp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 13 12:27:59 UTC 2017 - bwiedemann@suse.com + +- use .gz year instead of current one to make build reproducible + ------------------------------------------------------------------- Thu Jul 6 16:17:18 CEST 2017 - ndas@suse.de diff --git a/dhcp.spec b/dhcp.spec index 95a89c4..aa5d269 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -270,6 +270,9 @@ bind_dir=$(ls -1d bind-*) for i in /usr/share/automake-*/config.{sub,guess} ; do install -v -m755 $i $bind_dir/ done +# 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])' < bind.tar.gz) +sed -i "s/stdout, copyright, year/stdout, copyright, \"-$year\"/" $bind_dir/lib/dns/gen.c popd ##