Skip to content
Snippets Groups Projects
Commit 457e528e authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

gnu: ffmpeg: Allow tests to run from the build tree.

* gnu/packages/video.scm (ffmpeg)[arguments]: Add 'set-ld-library-path'
  phase.
parent f2feb0ce
No related branches found
No related tags found
No related merge requests found
...@@ -411,6 +411,16 @@ (define-public ffmpeg ...@@ -411,6 +411,16 @@ (define-public ffmpeg
"--disable-mipsdspr1" "--disable-mipsdspr1"
"--disable-mipsdspr2" "--disable-mipsdspr2"
"--disable-mipsfpu"))))) "--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 (add-after
'strip 'add-lib-to-runpath 'strip 'add-lib-to-runpath
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment