guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/01: gnu: linux-libre: Avoid introducing timestamps into the build.


From: Mark H. Weaver
Subject: 01/01: gnu: linux-libre: Avoid introducing timestamps into the build.
Date: Wed, 30 Mar 2016 19:22:28 +0000

mhw pushed a commit to branch master
in repository guix.

commit 96e9f097ee1899cf9e41ce2756a684b0a2dc52f3
Author: rain1 <address@hidden>
Date:   Wed Mar 30 13:05:19 2016 +0100

    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 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index fb2b671..3a4c9f1 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -9,6 +9,7 @@
 ;;; Copyright © 2016 Christopher Allan Webber <address@hidden>
 ;;; Copyright © 2016 Tobias Geerinckx-Rice <address@hidden>
 ;;; Copyright © 2016 Alex Kost <address@hidden>
+;;; Copyright © 2016 Raymond Nicholson <address@hidden>
 ;;;
 ;;; 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"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]