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
This commit is contained in:
Josselin Poiret 2024-03-02 22:46:33 +01:00 committed by Ludovic Courtès
parent 550640a5b7
commit ce170fb4ca
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -42,6 +42,7 @@ (define-module (gnu packages guile)
#: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 @@ (define-public guile-1.8
;; 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 @@ (define-public guile-1.8
`(("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.