From 70cffc3aa95bf0d2610a9401c5caac3686ba82ad Mon Sep 17 00:00:00 2001 From: Piraty Date: Fri, 4 Dec 2020 18:08:50 +0100 Subject: [PATCH] linux4.19: build reproducibly --- srcpkgs/linux4.19/template | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/srcpkgs/linux4.19/template b/srcpkgs/linux4.19/template index 9274043253b..91bdb042d8f 100644 --- a/srcpkgs/linux4.19/template +++ b/srcpkgs/linux4.19/template @@ -39,6 +39,11 @@ mutable_files=" /usr/lib/modules/${_kernver}/modules.alias.bin /usr/lib/modules/${_kernver}/modules.devname" +# reproducible build +export KBUILD_BUILD_TIMESTAMP=${SOURCE_DATE_EPOCH:-0} +export KBUILD_BUILD_USER=voidlinux +export KBUILD_BUILD_HOST=voidlinux + do_configure() { # 4.19 misses Documentation/DocBook. We ship the directory from 4.12 here. cp -a $FILESDIR/DocBook -t Documentation