summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
author宋文武 <iyzsong@gmail.com>2015-04-15 12:04:51 +0800
committer宋文武 <iyzsong@gmail.com>2015-04-15 12:04:51 +0800
commitfee4693e4289c7b53903312fab48b3f574273edf (patch)
treef6b98b15f5988c20b9cc7b0a45b7102b745f0b26 /gnu
parent23a22af694e408bf59cb780fc7bb8658d897f6ac (diff)
downloadguix-fee4693e4289c7b53903312fab48b3f574273edf.tar.gz
gnu: recode: Fix tests.
* gnu/packages/textutils.scm (recode): Rename phase 'fix-setup-py to 'pre-check.
  Set LD_LIBRARY_PATH to "$(pwd)/src/.libs" in pre-check phase.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/textutils.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index d6cc577e7d..c9483697df 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -44,11 +44,13 @@
     (arguments
      '(#:phases
        (alist-cons-before
-        'check 'fix-setup-py
+        'check 'pre-check
         (lambda _
           (substitute* "tests/setup.py"
             (("([[:space:]]*)include_dirs=.*" all space)
-             (string-append all space "library_dirs=['../src/.libs'],\n"))))
+             (string-append all space "library_dirs=['../src/.libs'],\n")))
+          ;; The test extension 'Recode.so' lacks RUNPATH for 'librecode.so'.
+          (setenv "LD_LIBRARY_PATH" (string-append (getcwd) "/src/.libs")))
         %standard-phases)))
     (home-page "https://github.com/pinard/Recode")
     (synopsis "Text encoding converter")