diff --git a/bind.changes b/bind.changes index 418340c..304db61 100644 --- a/bind.changes +++ b/bind.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +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 + +- Build with --with-randomdev=/dev/urandom otherwise + libisc will use /dev/random to gather entropy and that might + block, short read etc.. + ------------------------------------------------------------------- Wed Jan 20 10:58:15 UTC 2016 - max@suse.com diff --git a/bind.spec b/bind.spec index e1034f3..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() { @@ -441,7 +445,8 @@ CONFIGURE_OPTIONS="\ --with-libxml2 \ --with-dlz-mysql \ --with-dlz-ldap \ - --enable-rrl + --enable-rrl \ + --with-randomdev=/dev/urandom \ " cp -f -p config.guess config.sub contrib/idn/idnkit-1.0-src/ ./configure ${CONFIGURE_OPTIONS}