mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 06:18:07 -05:00
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:
parent
550640a5b7
commit
ce170fb4ca
1 changed files with 15 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue