From 6d7f1109b9ab5e8eed97b5ce388e3cf1ba4ffd145b5dfe26f10e49a980a672e7 Mon Sep 17 00:00:00 2001 From: Yuchen Lin Date: Tue, 8 Aug 2017 09:58:03 +0000 Subject: [PATCH] Accepting request 512434 from Base:System 1 OBS-URL: https://build.opensuse.org/request/show/512434 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/grub2?expand=0&rev=165 --- 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