mirror of
git://git.savannah.gnu.org/guix.git
synced 2023-12-14 03:33:07 +01:00
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>
This commit is contained in:
parent
569d7ba38c
commit
4262919ea9
1 changed files with 8 additions and 0 deletions
|
@ -2892,6 +2892,14 @@ provides a simple way to achieve this.")
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "tests/test-umockdev.c"
|
(substitute* "tests/test-umockdev.c"
|
||||||
(("/run") "/tmp"))))
|
(("/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
|
(add-after 'install 'absolute-filenames
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
;; 'patch-shebangs' will take care of the shebang.
|
;; 'patch-shebangs' will take care of the shebang.
|
||||||
|
|
Loading…
Reference in a new issue