mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
gnu: libbsd: Embed absolute references to libmd.
* gnu/packages/libbsd.scm (libbsd)[arguments]: Add phase to embed absolute libmd references.
This commit is contained in:
parent
1d526f5035
commit
ae406b91e2
1 changed files with 17 additions and 0 deletions
|
@ -40,6 +40,23 @@ (define-public libbsd
|
||||||
(arguments
|
(arguments
|
||||||
(list #:configure-flags #~'("--disable-static")
|
(list #:configure-flags #~'("--disable-static")
|
||||||
#:phases #~(modify-phases %standard-phases
|
#:phases #~(modify-phases %standard-phases
|
||||||
|
(add-after 'install 'embed-absolute-libmd-references
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(let ((libmd (search-input-file inputs
|
||||||
|
"lib/libmd.so")))
|
||||||
|
;; Add absolute references to libmd so it
|
||||||
|
;; does not need to be propagated.
|
||||||
|
(with-directory-excursion #$output
|
||||||
|
(substitute* "lib/libbsd.so"
|
||||||
|
(("^GROUP")
|
||||||
|
(string-append "SEARCH_DIR("
|
||||||
|
(dirname libmd)
|
||||||
|
")\nGROUP")))
|
||||||
|
(substitute* (find-files "lib/pkgconfig"
|
||||||
|
"\\.pc$")
|
||||||
|
(("-lmd")
|
||||||
|
(string-append "-L" (dirname libmd)
|
||||||
|
" -lmd")))))))
|
||||||
(add-before 'check 'disable-pwcache-test
|
(add-before 'check 'disable-pwcache-test
|
||||||
(lambda _
|
(lambda _
|
||||||
;; This test expects the presence of a root
|
;; This test expects the presence of a root
|
||||||
|
|
Loading…
Reference in a new issue