[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: gnu: ffmpeg: Allow tests to run from the build tree.
From: |
Ludovic Courtès |
Subject: |
02/02: gnu: ffmpeg: Allow tests to run from the build tree. |
Date: |
Thu, 16 Apr 2015 08:54:40 +0000 |
civodul pushed a commit to branch core-updates
in repository guix.
commit 457e528eb910225d55b08f200fabe29c1eebbb52
Author: Ludovic Courtès <address@hidden>
Date: Thu Apr 16 10:54:07 2015 +0200
gnu: ffmpeg: Allow tests to run from the build tree.
* gnu/packages/video.scm (ffmpeg)[arguments]: Add 'set-ld-library-path'
phase.
---
gnu/packages/video.scm | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm
index 693a825..114ad7e 100644
--- a/gnu/packages/video.scm
+++ b/gnu/packages/video.scm
@@ -411,6 +411,16 @@ standards (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and
VC-1/VMW3).")
"--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)