From 00508796e793d88132d76bdf66bede8b9b7a23c46575abcd41f8a514680950da Mon Sep 17 00:00:00 2001 From: Michael Chang Date: Tue, 25 Jul 2017 06:31:39 +0000 Subject: [PATCH] Accepting request 512282 from home:bmwiedemann:branches:Base:System Make grub2.info build reproducible (boo#1047218) leaving the only remaining diff in grub.xen (some ordering issue) from ./grub-mkstandalone --grub-mkimage=./grub-mkimage -o grub.xen -O x86_64-xen -d grub-core/ /boot/grub/grub.cfg=/home/abuild/rpmbuild/SOURCES/grub2-xen-pv-firmware.cfg http://rb.zq1.de/compare.factory-20170713/grub2-compare.out OBS-URL: https://build.opensuse.org/request/show/512282 OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=273 --- grub2.changes | 5 +++++ grub2.spec | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/grub2.changes b/grub2.changes index ec67cd8..c8d7e76 100644 --- a/grub2.changes +++ b/grub2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jul 24 13:39:25 UTC 2017 - bwiedemann@suse.com + +- Make grub2.info build reproducible (boo#1047218) + ------------------------------------------------------------------- Tue Jul 4 16:56:33 UTC 2017 - arvidjaar@gmail.com diff --git a/grub2.spec b/grub2.spec index cd6de16..f03484c 100644 --- a/grub2.spec +++ b/grub2.spec @@ -524,6 +524,11 @@ swap partition while in resuming %patch409 -p1 %patch410 -p1 %patch411 -p1 +# patches above may update the timestamp of grub.texi +# and via build-aux/mdate-sh they end up in grub2.info, breaking build-compare +[ -z "$SOURCE_DATE_EPOCH" ] ||\ + [ `stat -c %Y docs/grub.texi` -lt $SOURCE_DATE_EPOCH ] ||\ + touch -d@$SOURCE_DATE_EPOCH docs/grub.texi # This simplifies patch handling without need to use git to create patch # that renames file