gnu: sbcl-osicat: Fix library path.

* gnu/packages/lisp-xyz.scm (sbcl-osicat)[arguments]: Replace 'cleanup phase
  to preserve the location of libosicat.so so that it can be found when
  loading the system.
This commit is contained in:
Pierre Neidhardt 2020-04-30 16:56:44 +02:00
parent 24599740e7
commit 192177b049
No known key found for this signature in database
GPG key ID: 9BDCF497A4BBCC7F

View file

@ -11533,21 +11533,19 @@ (define-public sbcl-osicat
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'validate-runpath 'cleanup-files
;; The cleanup phase moves files around but we need to keep the
;; directory structure for the grovel-generated library.
(replace 'cleanup
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(lib (string-append out "/lib/sbcl")))
(for-each
delete-file
(filter (lambda (file)
(not (member (basename file)
'("basic-unixint__grovel"
"libosicat.so"
"osicat--system.fasl"
"osicat.asd"
"unixint__grovel"))))
(find-files lib ".*")))
#t))))))
(lib (string-append out "/lib/sbcl/")))
(delete-file-recursively (string-append lib "src"))
(delete-file-recursively (string-append lib "tests"))
(for-each delete-file
(filter (lambda (file)
(not (member (basename file) '("libosicat.so"))))
(find-files (string-append lib "posix") ".*"))))
#t)))))
(inputs
`(("alexandria" ,sbcl-alexandria)
("cffi" ,sbcl-cffi)