mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
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:
parent
e6c2cec217
commit
a864d40711
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue