guix-commits
[Top][All Lists]
Advanced

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

01/02: build-system/gnu: Set 'SOURCE_DATE_EPOCH'.


From: Alex Kost
Subject: 01/02: build-system/gnu: Set 'SOURCE_DATE_EPOCH'.
Date: Sat, 14 Nov 2015 20:36:43 +0000

alezost pushed a commit to branch core-updates
in repository guix.

commit f7dbeb376b42e95bc66dcf4cfa283e912f5e7aa4
Author: Alex Kost <address@hidden>
Date:   Sat Nov 14 14:04:43 2015 +0300

    build-system/gnu: Set 'SOURCE_DATE_EPOCH'.
    
    Suggested by Ludovic Court├Ęs <address@hidden>.
    
    * guix/build/gnu-build-system.scm (gnu-build): Set SOURCE_DATE_EPOCH for
      deterministic builds.
---
 guix/build/gnu-build-system.scm |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/guix/build/gnu-build-system.scm b/guix/build/gnu-build-system.scm
index ff7646b..92e15d1 100644
--- a/guix/build/gnu-build-system.scm
+++ b/guix/build/gnu-build-system.scm
@@ -576,6 +576,9 @@ in order.  Return #t if all the PHASES succeeded, #f 
otherwise."
   ;; Encoding/decoding errors shouldn't be silent.
   (fluid-set! %default-port-conversion-strategy 'error)
 
+  ;; Avoid non-determinism related to generated timestamps.
+  (setenv "SOURCE_DATE_EPOCH" "1")
+
   ;; The trick is to #:allow-other-keys everywhere, so that each procedure in
   ;; PHASES can pick the keyword arguments it's interested in.
   (every (match-lambda



reply via email to

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