mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-27 14:52:05 -05:00
gnu: ffmpeg: Allow tests to run from the build tree.
* gnu/packages/video.scm (ffmpeg)[arguments]: Add 'set-ld-library-path' phase.
This commit is contained in:
parent
f2feb0ce7c
commit
457e528eb9
1 changed files with 10 additions and 0 deletions
|
@ -411,6 +411,16 @@ (define-public ffmpeg
|
|||
"--disable-mipsdspr1"
|
||||
"--disable-mipsdspr2"
|
||||
"--disable-mipsfpu")))))
|
||||
(add-before
|
||||
'check 'set-ld-library-path
|
||||
(lambda _
|
||||
;; Allow $(top_builddir)/ffmpeg to find its dependencies when
|
||||
;; running tests.
|
||||
(let* ((dso (find-files "." "\\.so$"))
|
||||
(path (string-join (map dirname dso) ":")))
|
||||
(format #t "setting LD_LIBRARY_PATH to ~s~%" path)
|
||||
(setenv "LD_LIBRARY_PATH" path)
|
||||
#t)))
|
||||
(add-after
|
||||
'strip 'add-lib-to-runpath
|
||||
(lambda* (#:key outputs #:allow-other-keys)
|
||||
|
|
Loading…
Reference in a new issue