summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/libbsd.scm17
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