From 3b3046dbcf6a38e1b609a6cebce7db812c7d564d Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Fri, 16 Mar 2018 17:34:08 +0100 Subject: [PATCH] gnu: glib: Build reproducibly. * gnu/packages/glib.scm (glib)[arguments]: Set DETERMINISTIC_BUILD. --- gnu/packages/glib.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/glib.scm b/gnu/packages/glib.scm index b802777192..1581858320 100644 --- a/gnu/packages/glib.scm +++ b/gnu/packages/glib.scm @@ -5,7 +5,7 @@ ;;; Copyright © 2014, 2015, 2016, 2017 Mark H Weaver ;;; Copyright © 2016 Efraim Flashner ;;; Copyright © 2016 Lukas Gradl -;;; Copyright © 2017 Ricardo Wurmus +;;; Copyright © 2017, 2018 Ricardo Wurmus ;;; Copyright © 2017 Petter ;;; Copyright © 2018 Tobias Geerinckx-Rice ;;; Copyright © 2018 Alex Vong @@ -183,6 +183,9 @@ shared NFS home directories.") (modify-phases %standard-phases (add-before 'build 'pre-build (lambda* (#:key inputs outputs #:allow-other-keys) + ;; For building deterministic pyc files + (setenv "DETERMINISTIC_BUILD" "1") + ;; For tests/gdatetime.c. (setenv "TZDIR" (string-append (assoc-ref inputs "tzdata")