Github messages for voidlinux
 help / color / mirror / Atom feed
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:33:40 +0100	[thread overview]
Message-ID: <20201202083340.7EC1X-10u-bg3DMNJzrYm6IK9M1Rq3dCUYb52AYITU4@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: 7035 bytes --]

From 10126734a60c0bb6e1b3a7e10fd9f3cfabfdc9b5 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.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 <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=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 <arch>-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 <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 | 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 <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,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 <arch>-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 <piraty1@inbox.ru>
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 <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=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 <piraty1@inbox.ru>
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 <piraty1@inbox.ru>
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 <piraty1@inbox.ru>
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

  parent reply	other threads:[~2020-12-02  8:33 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 ` [PR PATCH] [Updated] " Piraty
2020-12-02  8:33 ` Piraty [this message]
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=20201202083340.7EC1X-10u-bg3DMNJzrYm6IK9M1Rq3dCUYb52AYITU4@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).