guix-commits
[Top][All Lists]
Advanced

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

01/04: gnu: lsof: Don't capture details about the build machine's kernel


From: guix-commits
Subject: 01/04: gnu: lsof: Don't capture details about the build machine's kernel.
Date: Sat, 30 Nov 2019 17:50:50 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit d70478da2b878350450b976686f29712c06745f3
Author: Ludovic Courtès <address@hidden>
Date:   Sat Nov 30 14:29:42 2019 +0100

    gnu: lsof: Don't capture details about the build machine's kernel.
    
    * gnu/packages/lsof.scm (lsof)[arguments]: In 'configure' phase, set
    "LSOF_SYSINFO" environment variable.
---
 gnu/packages/lsof.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/lsof.scm b/gnu/packages/lsof.scm
index 311e244..e29f3b4 100644
--- a/gnu/packages/lsof.scm
+++ b/gnu/packages/lsof.scm
@@ -2,7 +2,7 @@
 ;;; Copyright © 2013 Andreas Enge <address@hidden>
 ;;; Copyright © 2017 Efraim Flashner <address@hidden>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <address@hidden>
-;;; Copyright © 2018 Ludovic Courtès <address@hidden>
+;;; Copyright © 2018, 2019 Ludovic Courtès <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -69,6 +69,13 @@
           (lambda _
             (setenv "LSOF_CC" "gcc")
             (setenv "LSOF_MAKE" "make")
+
+            ;; By default, the makefile captures the output of 'uname -a'.
+            ;; Provide a fixed output instead to make builds reproducible.
+            (setenv "LSOF_SYSINFO"
+                    (string-append "GNU/" (utsname:sysname (uname))
+                                   " (GNU Guix)"))
+
             (invoke "./Configure" "linux")
             #t))
         (add-after 'configure 'patch-timestamps



reply via email to

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