diff options
| author | Marius Bakke <marius@gnu.org> | 2022-09-10 19:21:39 +0200 |
|---|---|---|
| committer | Marius Bakke <marius@gnu.org> | 2022-09-10 20:08:38 +0200 |
| commit | ae406b91e2aecf2a7c45c456d7e0f4dfd0aeb928 (patch) | |
| tree | 49698949ccd4e4d69d7c0ea8c0fecb7f8b8649b7 /gnu/packages | |
| parent | 1d526f5035ce51305d8f414b8f55066adedb6f91 (diff) | |
gnu: libbsd: Embed absolute references to libmd.
* gnu/packages/libbsd.scm (libbsd)[arguments]: Add phase to embed absolute
libmd references.
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/libbsd.scm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gnu/packages/libbsd.scm b/gnu/packages/libbsd.scm index 9759d1b5adb..79f13890815 100644 --- a/gnu/packages/libbsd.scm +++ b/gnu/packages/libbsd.scm | |||
| @@ -40,6 +40,23 @@ | |||
| 40 | (arguments | 40 | (arguments |
| 41 | (list #:configure-flags #~'("--disable-static") | 41 | (list #:configure-flags #~'("--disable-static") |
| 42 | #:phases #~(modify-phases %standard-phases | 42 | #:phases #~(modify-phases %standard-phases |
| 43 | (add-after 'install 'embed-absolute-libmd-references | ||
| 44 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 45 | (let ((libmd (search-input-file inputs | ||
| 46 | "lib/libmd.so"))) | ||
| 47 | ;; Add absolute references to libmd so it | ||
| 48 | ;; does not need to be propagated. | ||
| 49 | (with-directory-excursion #$output | ||
| 50 | (substitute* "lib/libbsd.so" | ||
| 51 | (("^GROUP") | ||
| 52 | (string-append "SEARCH_DIR(" | ||
| 53 | (dirname libmd) | ||
| 54 | ")\nGROUP"))) | ||
| 55 | (substitute* (find-files "lib/pkgconfig" | ||
| 56 | "\\.pc$") | ||
| 57 | (("-lmd") | ||
| 58 | (string-append "-L" (dirname libmd) | ||
| 59 | " -lmd"))))))) | ||
| 43 | (add-before 'check 'disable-pwcache-test | 60 | (add-before 'check 'disable-pwcache-test |
| 44 | (lambda _ | 61 | (lambda _ |
| 45 | ;; This test expects the presence of a root | 62 | ;; This test expects the presence of a root |
