SHA256
1
0
forked from pool/dhcp

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
This commit is contained in:
Nirmoy Das 2017-10-09 08:22:17 +00:00 committed by Git OBS Bridge
parent 853382bddd
commit c3ef98f4f3
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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
##