guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

10/12: gnu: umockdev: Reference libumockdev by absolute path.


From: guix-commits
Subject: 10/12: gnu: umockdev: Reference libumockdev by absolute path.
Date: Fri, 18 Feb 2022 08:15:59 -0500 (EST)

civodul pushed a commit to branch master
in repository guix.

commit 4262919ea9db4d5723e1233146b523333ab2728f
Author: Maxime Devos <maximedevos@telenet.be>
AuthorDate: Thu Feb 17 19:02:08 2022 +0000

    gnu: umockdev: Reference libumockdev by absolute path.
    
    * gnu/packages/check.scm
      (umockdev)[arguments]<#:phases>{absolute-introspection-library}:
      New phase.
    
    Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
 gnu/packages/check.scm | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 68a0ac7a84..058effab5c 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -2892,6 +2892,14 @@ provides a simple way to achieve this.")
                  (lambda _
                    (substitute* "tests/test-umockdev.c"
                      (("/run") "/tmp"))))
+               ;; Avoid having to set 'LD_LIBRARY_PATH' to use umockdev
+               ;; via introspection.
+               (add-after 'unpack 'absolute-introspection-library
+                 (lambda _
+                   (substitute* "Makefile.in"
+                     (("g-ir-compiler -l libumockdev")
+                      (string-append "g-ir-compiler -l " #$output
+                                     "/lib/libumockdev")))))
                (add-after 'install 'absolute-filenames
                  (lambda* (#:key inputs #:allow-other-keys)
                    ;; 'patch-shebangs' will take care of the shebang.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]