From: Piraty <Piraty@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] Build kernels reproducibly
Date: Wed, 02 Dec 2020 09:17:54 +0100 [thread overview]
Message-ID: <20201202081754._5ybxUY4hwU7HM96pjrPeqo8IiCTBKum-nYV0A4PBMA@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26775@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 400 bytes --]
There is an updated pull request by Piraty against master on the void-packages repository
https://github.com/Piraty/void-packages kernel-repro
https://github.com/void-linux/void-packages/pull/26775
Build kernels reproducibly
https://www.kernel.org/doc/html/v5.9/kbuild/reproducible-builds.html
[ci skip]
A patch file from https://github.com/void-linux/void-packages/pull/26775.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-kernel-repro-26775.patch --]
[-- Type: text/x-diff, Size: 6897 bytes --]
From 64592aaa0e9276252f81d87ecb99ba1647c9ea7f Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Sat, 28 Nov 2020 20:49:37 +0100
Subject: [PATCH 1/6] linux4.4: update to 4.4.246.
build reproducibly
---
srcpkgs/linux4.4/template | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/linux4.4/template b/srcpkgs/linux4.4/template
index 196bce255a1..6c63346db28 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.246
revision=1
wrksrc="linux-${version}"
short_desc="Linux kernel and modules (${version%.*} series)"
@@ -8,7 +8,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-only"
homepage="https://www.kernel.org"
distfiles="${KERNEL_SITE}/kernel/v4.x/linux-${version}.tar.xz"
-checksum=95de46b6bd72f66169629eb0e343b005778539864598eae76c3ca999645d58b5
+checksum=9e0bdebf18a12d0c899e5e4042e715e24a70ab0fd986a3f4c67c8ec2710bad97
python_version=2 #unverified
nocross=yes
@@ -41,6 +41,10 @@ mutable_files="
/usr/lib/modules/${_kernver}/modules.alias.bin
/usr/lib/modules/${_kernver}/modules.devname"
+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 <arch>-dotconfig, use it to
# configure the kernel; otherwise use arch defaults and all stuff
From 71783b57a81014bda7ffd90f8653935d89dd60ab Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
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 | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/linux4.9/template b/srcpkgs/linux4.9/template
index 6572209d09f..f3f6a376c1e 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 <orphan@voidlinux.org>"
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,10 @@ mutable_files="
/usr/lib/modules/${_kernver}/modules.alias.bin
/usr/lib/modules/${_kernver}/modules.devname"
+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 <arch>-dotconfig, use it to
# configure the kernel; otherwise use arch defaults and all stuff
From b8ca6f67c87afb7e0f2e262106f5eca1be675665 Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Sat, 28 Nov 2020 20:53:13 +0100
Subject: [PATCH 3/6] linux4.14: update to 4.14.209.
build reproducibly
---
srcpkgs/linux4.14/template | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/srcpkgs/linux4.14/template b/srcpkgs/linux4.14/template
index ac656bf181f..171002c85a2 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.209
revision=1
wrksrc="linux-${version}"
short_desc="Linux kernel and modules (${version%.*} series)"
@@ -8,7 +8,7 @@ maintainer="Orphaned <orphan@voidlinux.org>"
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=cb02465cc8f1972cc14707b25d779c8668d220c39e68a24bb23afd4c58182b9c
python_version=2 #unverified
patch_args="-Np1"
@@ -42,6 +42,10 @@ mutable_files="
/usr/lib/modules/${_kernver}/modules.alias.bin
/usr/lib/modules/${_kernver}/modules.devname"
+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 e42b6a3d2d727121eb3f2a6ec6d69df549616265 Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Sat, 28 Nov 2020 20:53:45 +0100
Subject: [PATCH 4/6] linux4.19: build reproducibly
---
srcpkgs/linux4.19/template | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/srcpkgs/linux4.19/template b/srcpkgs/linux4.19/template
index 981a0c6e2d2..f90bdd77bdf 100644
--- a/srcpkgs/linux4.19/template
+++ b/srcpkgs/linux4.19/template
@@ -39,6 +39,10 @@ mutable_files="
/usr/lib/modules/${_kernver}/modules.alias.bin
/usr/lib/modules/${_kernver}/modules.devname"
+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 f6486003337fe2b8f70bff073aa1b05ed67bfab0 Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Sat, 28 Nov 2020 20:56:27 +0100
Subject: [PATCH 5/6] linux5.4: build reproducibly
---
srcpkgs/linux5.4/template | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/srcpkgs/linux5.4/template b/srcpkgs/linux5.4/template
index 77af6f45148..06ad7961a58 100644
--- a/srcpkgs/linux5.4/template
+++ b/srcpkgs/linux5.4/template
@@ -39,6 +39,10 @@ mutable_files="
/usr/lib/modules/${_kernver}/modules.alias.bin
/usr/lib/modules/${_kernver}/modules.devname"
+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 8580fa4ce6fcd824ec663d63f23e20068f591c75 Mon Sep 17 00:00:00 2001
From: Piraty <piraty1@inbox.ru>
Date: Sat, 28 Nov 2020 20:59:06 +0100
Subject: [PATCH 6/6] linux5.9: build reproducibly
---
srcpkgs/linux5.9/template | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/srcpkgs/linux5.9/template b/srcpkgs/linux5.9/template
index bf184888713..ca4baa925ad 100644
--- a/srcpkgs/linux5.9/template
+++ b/srcpkgs/linux5.9/template
@@ -41,6 +41,10 @@ mutable_files="
/usr/lib/modules/${_kernver}/modules.alias.bin
/usr/lib/modules/${_kernver}/modules.devname"
+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
next prev parent reply other threads:[~2020-12-02 8:17 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-26775@inbox.vuxu.org>
2020-11-30 20:59 ` Piraty
2020-12-02 8:17 ` Piraty [this message]
2020-12-02 8:33 ` [PR PATCH] [Updated] " Piraty
2020-12-02 8:42 ` Piraty
2020-12-02 14:10 ` pullmoll
2020-12-02 14:11 ` pullmoll
2020-12-04 17:34 ` Piraty
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201202081754._5ybxUY4hwU7HM96pjrPeqo8IiCTBKum-nYV0A4PBMA@z \
--to=piraty@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).