From 10126734a60c0bb6e1b3a7e10fd9f3cfabfdc9b5 Mon Sep 17 00:00:00 2001 From: Piraty Date: Sat, 28 Nov 2020 20:49:37 +0100 Subject: [PATCH 1/6] linux4.4: update to 4.4.247. build reproducibly --- srcpkgs/linux4.4/template | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/srcpkgs/linux4.4/template b/srcpkgs/linux4.4/template index 196bce255a1..49401ce2a9f 100644 --- a/srcpkgs/linux4.4/template +++ b/srcpkgs/linux4.4/template @@ -1,6 +1,6 @@ # Template file for 'linux4.4' pkgname=linux4.4 -version=4.4.243 +version=4.4.247 revision=1 wrksrc="linux-${version}" short_desc="Linux kernel and modules (${version%.*} series)" @@ -8,7 +8,7 @@ maintainer="Orphaned " license="GPL-2.0-only" homepage="https://www.kernel.org" distfiles="${KERNEL_SITE}/kernel/v4.x/linux-${version}.tar.xz" -checksum=95de46b6bd72f66169629eb0e343b005778539864598eae76c3ca999645d58b5 +checksum=4a6433aaa393545d7446f70d6ddfe4bc6817234564a72cbc997996d27ddd07ca python_version=2 #unverified nocross=yes @@ -41,6 +41,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() { # If there's a file called -dotconfig, use it to # configure the kernel; otherwise use arch defaults and all stuff From ab146d6a11c5e9ed11cbd92ad549b9e664b316e1 Mon Sep 17 00:00:00 2001 From: Piraty Date: Sat, 28 Nov 2020 20:55:04 +0100 Subject: [PATCH 2/6] linux4.9: update to 4.9.246. build reproducibly --- srcpkgs/linux4.9/template | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/srcpkgs/linux4.9/template b/srcpkgs/linux4.9/template index 6572209d09f..dfdd55113e8 100644 --- a/srcpkgs/linux4.9/template +++ b/srcpkgs/linux4.9/template @@ -1,6 +1,6 @@ # Template file for 'linux4.9' pkgname=linux4.9 -version=4.9.243 +version=4.9.246 revision=1 wrksrc="linux-${version}" short_desc="Linux kernel and modules (${version%.*} series)" @@ -8,7 +8,7 @@ maintainer="Orphaned " license="GPL-2.0-only" homepage="https://www.kernel.org" distfiles="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${version}.tar.xz" -checksum=d3aa189ca7fcc6e52d6c0333a0d7acd8789e9a492b32dbf9476e926ffaa73984 +checksum=49e266c7d72d388e8ce6aa486a1018cc0595ae1b9e99934bce5b484fd8dba9f5 python_version=2 #unverified patch_args="-Np1" @@ -41,6 +41,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() { # If there's a file called -dotconfig, use it to # configure the kernel; otherwise use arch defaults and all stuff From 94ed7c9e9bf274f634cb7f86e9e79c0fdd670d34 Mon Sep 17 00:00:00 2001 From: Piraty Date: Sat, 28 Nov 2020 20:53:13 +0100 Subject: [PATCH 3/6] linux4.14: update to 4.14.210. build reproducibly --- srcpkgs/linux4.14/template | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/srcpkgs/linux4.14/template b/srcpkgs/linux4.14/template index ac656bf181f..725cb6f79e8 100644 --- a/srcpkgs/linux4.14/template +++ b/srcpkgs/linux4.14/template @@ -1,6 +1,6 @@ # Template file for 'linux4.14' pkgname=linux4.14 -version=4.14.206 +version=4.14.210 revision=1 wrksrc="linux-${version}" short_desc="Linux kernel and modules (${version%.*} series)" @@ -8,7 +8,7 @@ maintainer="Orphaned " license="GPL-2.0-only" homepage="http://www.kernel.org" distfiles="https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-${version}.tar.xz" -checksum=1c233efaa5063983293a02d4692acc9ced9c03e18857364855d4f612347086ac +checksum=f91851d0b43c39732f9ee3afa1850145aee21e3bc71b3bf4b9a0b8a74dc4fd18 python_version=2 #unverified patch_args="-Np1" @@ -42,6 +42,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.14rc1 misses Documentation/DocBook. We ship the directory from 4.12 here. cp -a $FILESDIR/DocBook -t Documentation From e6a2e01d8df03ffd1d54b933c9adad16cd5fc301 Mon Sep 17 00:00:00 2001 From: Piraty Date: Sat, 28 Nov 2020 20:53:45 +0100 Subject: [PATCH 4/6] 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 981a0c6e2d2..4bd9b677f82 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 From 882cc008058440455da28beafe56c8ed5530bdd7 Mon Sep 17 00:00:00 2001 From: Piraty Date: Sat, 28 Nov 2020 20:56:27 +0100 Subject: [PATCH 5/6] linux5.4: build reproducibly --- srcpkgs/linux5.4/template | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/srcpkgs/linux5.4/template b/srcpkgs/linux5.4/template index 77af6f45148..bd5470da14d 100644 --- a/srcpkgs/linux5.4/template +++ b/srcpkgs/linux5.4/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() { # 5.4 misses Documentation/DocBook. We ship the directory from 4.12 here. cp -a $FILESDIR/DocBook -t Documentation From 75f36d6ca2c6ceda8e1b17b93544d6710894cdac Mon Sep 17 00:00:00 2001 From: Piraty Date: Sat, 28 Nov 2020 20:59:06 +0100 Subject: [PATCH 6/6] linux5.9: build reproducibly --- srcpkgs/linux5.9/template | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/srcpkgs/linux5.9/template b/srcpkgs/linux5.9/template index bf184888713..41f7dc09f69 100644 --- a/srcpkgs/linux5.9/template +++ b/srcpkgs/linux5.9/template @@ -41,6 +41,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 + if [ "$CROSS_BUILD" ]; then _cross="CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-" fi