From: rain1 <rain1@openmailbox.org>
To: guix-devel@gnu.org
Subject: Re: Reproducible build: linux-libre kernel
Date: Wed, 30 Mar 2016 18:38:04 +0100 [thread overview]
Message-ID: <20160330183804.40ad560f@openmailbox.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 108 bytes --]
Thank you both for looking at the patch and the feedback!
I've put these suggestions into this new version.
[-- Attachment #2: 0001-gnu-linux-libre-Avoid-introducing-timestamps-into-th.patch --]
[-- Type: application/octet-stream, Size: 1538 bytes --]
From 0e10fd8e7790e584c96a42a4c38484316d30bcf7 Mon Sep 17 00:00:00 2001
From: rain1 <rain1@openmailbox.org>
Date: Wed, 30 Mar 2016 13:05:19 +0100
Subject: [PATCH] gnu: linux-libre: Avoid introducing timestamps into the
build.
* gnu/packages/linux.scm (linux-libre)[build-phase]: Set the
KCONFIG_NOTIMESTAMP and KBUILD_BUILD_TIMESTAMP environment variables to
avoid introducing timestamps into the build outputs.
---
gnu/packages/linux.scm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index fb2b671..1400110 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -9,6 +9,7 @@
;;; Copyright © 2016 Christopher Allan Webber <cwebber@dustycloud.org>
;;; Copyright © 2016 Tobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>
;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
+;;; Copyright © 2016 Raymond Nicholson <rain1@openmailbox.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -223,6 +224,10 @@ for SYSTEM and optionally VARIANT, or #f if there is no such configuration."
(let* ((version "4.5")
(build-phase
'(lambda* (#:key system inputs #:allow-other-keys #:rest args)
+ ;; Avoid introducing timestamps
+ (setenv "KCONFIG_NOTIMESTAMP" "1")
+ (setenv "KBUILD_BUILD_TIMESTAMP" (getenv "SOURCE_DATE_EPOCH"))
+
;; Apply the neat patch.
(system* "patch" "-p1" "--force"
"-i" (assoc-ref inputs "patch/freedo+gnu"))
--
2.7.3
next reply other threads:[~2016-03-30 17:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-30 17:38 rain1 [this message]
2016-03-30 19:23 ` Reproducible build: linux-libre kernel Mark H Weaver
2016-03-30 21:25 ` Ludovic Courtès
2016-03-30 22:58 ` Leo Famulari
2016-03-31 8:26 ` Ludovic Courtès
2016-03-31 19:08 ` Leo Famulari
2016-03-31 21:26 ` Ludovic Courtès
-- strict thread matches above, loose matches on Subject: below --
2016-03-30 12:16 rain1
2016-03-30 15:56 ` Leo Famulari
2016-03-30 16:42 ` Mark H Weaver
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160330183804.40ad560f@openmailbox.org \
--to=rain1@openmailbox.org \
--cc=guix-devel@gnu.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).