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'.
This commit is contained in:
Marius Bakke 2020-06-23 22:23:56 +02:00
parent e6c2cec217
commit a864d40711
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -1534,6 +1534,14 @@ (define-public mpv
(("\"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)