[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/03: gnu: mpv: Use deterministic ordering of shared library dependenci
From: |
guix-commits |
Subject: |
03/03: gnu: mpv: Use deterministic ordering of shared library dependencies. |
Date: |
Tue, 23 Jun 2020 16:27:24 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit a864d407119980ef5cfd4be079b8ec2b8038102b
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Tue Jun 23 22:23:56 2020 +0200
gnu: mpv: Use deterministic ordering of shared library dependencies.
Fixes <https://bugs.gnu.org/42025>.
Reported by Msavoritias <marinus.savoritias@disroot.org>.
* gnu/packages/video.scm (mpv)[arguments]: Add phase 'build-reproducibly'.
---
gnu/packages/video.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index b206fb3..406a2ad 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -1534,6 +1534,14 @@ SVCD, DVD, 3ivx, DivX 3/4/5, WMV and H.264 movies.")
(("\"youtube-dl\",")
(string-append "\"" ytdl "/bin/youtube-dl\",")))
#t)))
+ (add-before 'configure 'build-reproducibly
+ (lambda _
+ ;; Somewhere in the build system library dependencies are
enumerated
+ ;; and passed as linker flags, but the order in which they are
added
+ ;; varies. See <https://github.com/mpv-player/mpv/issues/7855>.
+ ;; Set PYTHONHASHSEED as a workaround for deterministic results.
+ (setenv "PYTHONHASHSEED" "1")
+ #t))
(add-before
'configure 'setup-waf
(lambda* (#:key inputs #:allow-other-keys)