Source: grub Severity: normal Tags: patch User: [email protected] Usertags: timestamps X-Debbugs-Cc: [email protected]
The help2man version shipped in grub embeds timestamps without respecting the SOURCE_DATE_EPOCH environment variable. https://tests.reproducible-builds.org/debian/issues/unstable/timestamps_in_manpages_generated_by_help2man_issue.html The attached patch switches grub to use help2man from Debian, which generates manpages with a reproducible timestamp. live well, vagrant
From 30203aa2acb600698782127472cbe3f0d499b609 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian <[email protected]> Date: Fri, 29 May 2020 01:58:35 +0000 Subject: [PATCH] Enable reproducible builds by switching to help2man from Debian. The help2man version shipped in grub embeds timestamps without respecting the SOURCE_DATE_EPOCH environment variable. --- debian/control | 1 + debian/rules | 10 ++++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/debian/control b/debian/control index df10b42..3f3c22e 100644 --- a/debian/control +++ b/debian/control @@ -5,6 +5,7 @@ Maintainer: GRUB Maintainers <[email protected]> Uploaders: Robert Millan <[email protected]>, Felix Zielcke <[email protected]>, Colin Watson <[email protected]> Build-Depends: debhelper-compat (= 12), dh-exec, + help2man, texinfo, libncurses5-dev | libncurses-dev, gcc-multilib [amd64] diff --git a/debian/rules b/debian/rules index 9524c6d..d9658eb 100755 --- a/debian/rules +++ b/debian/rules @@ -14,13 +14,11 @@ override_dh_auto_configure: override_dh_auto_build-arch: dh_auto_build - chmod +x docs/help2man - ## the creation of these manpages here is temporary, ## when building grub finally works with the version ## of autoconf in debian we can use MAINTAINER_MODE_TRUE # create man page for grub - ( cd docs && ./help2man \ + ( cd docs && help2man \ --name="the grub shell" \ --include=grub.8.additions \ --section=8 --output=grub.8 \ @@ -28,21 +26,21 @@ override_dh_auto_build-arch: # create man page for grub-install ( cd util && chmod 755 grub-install ) - ( cd docs && ./help2man \ + ( cd docs && help2man \ --name="install GRUB on your drive" \ --include=grub-install.8.additions \ --section=8 --output=grub-install.8 \ ../util/grub-install ) # create man page for mbchk - ( cd docs && ./help2man \ + ( cd docs && help2man \ --name="check the format of a Multiboot kernel" \ --section=1 --output=mbchk.1 \ ../util/mbchk ) # create man page for grub-md5-crypt ( cd util && chmod 755 grub-md5-crypt ) - ( cd docs && ./help2man \ + ( cd docs && help2man \ --name="Encrypt a password in MD5 format" \ --section=8 --output=grub-md5-crypt.8 \ ../util/grub-md5-crypt ) -- 2.20.1
signature.asc
Description: PGP signature

