From ce170fb4ca85086a9ae5ec8135d8ad3e2c5d51a5 Mon Sep 17 00:00:00 2001 From: Josselin Poiret Date: Sat, 2 Mar 2024 22:46:33 +0100 Subject: gnu: guile-1.8: Add libxcrypt dependency. * gnu/packages/guile.scm (guile-1.8): Add libxcrypt dependency, and include it in the pkg-config file's flags. Change-Id: I050e8d2bee0b6195a6a854338d39a9594b0088b9 --- gnu/packages/guile.scm | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm index dfa26e24ca..89b9869550 100644 --- a/gnu/packages/guile.scm +++ b/gnu/packages/guile.scm @@ -42,6 +42,7 @@ #:use-module (gnu packages bash) #:use-module (gnu packages bdw-gc) #:use-module (gnu packages compression) + #:use-module (gnu packages crypto) #:use-module (gnu packages dbm) #:use-module (gnu packages flex) #:use-module (gnu packages gawk) @@ -109,7 +110,19 @@ ;; The usual /bin/sh... (substitute* "ice-9/popen.scm" - (("/bin/sh") (which "sh")))))) + (("/bin/sh") (which "sh"))))) + (add-after 'install 'add-libxcrypt-reference-pkgconfig + (lambda* (#:key inputs outputs #:allow-other-keys) + (define out (assoc-ref outputs "out")) + (define libxcrypt + (false-if-exception + (dirname (search-input-file inputs "lib/libcrypt.so.1")))) + (when libxcrypt + (substitute* + (find-files (string-append out "/lib/pkgconfig") + ".*\\.pc") + (("-lcrypt") + (string-append "-L" libxcrypt " -lcrypt"))))))) ;; XXX: Several numerical tests and tests related to ;; 'inet-pton' fail on glibc 2.33/GCC 10. Disable them. @@ -122,7 +135,7 @@ `(("self" ,this-package)) '())) - (inputs (list gawk readline)) + (inputs (list gawk libxcrypt readline)) ;; Since `guile-1.8.pc' has "Libs: ... -lgmp -lltdl", these must be ;; propagated. -- cgit v1.2.3