gnu: libaio: Do not install the static library.
authorMarius Bakke <mbakke@fastmail.com>
Wed, 12 Feb 2020 15:44:04 +0000 (16:44 +0100)
committerMarius Bakke <mbakke@fastmail.com>
Fri, 14 Feb 2020 17:33:55 +0000 (18:33 +0100)
* gnu/packages/linux.scm (libaio)[arguments]: Add phase 'delete-static-library'.

gnu/packages/linux.scm

index 0dba6a3..ef04a42 100644 (file)
@@ -3826,7 +3826,13 @@ Linux Device Mapper multipathing driver:
        (list "CC=gcc" (string-append "prefix=" %output))
        #:test-target "partcheck" ; need root for a full 'check'
        #:phases
-       (modify-phases %standard-phases (delete 'configure)))) ; no configure script
+       (modify-phases %standard-phases
+         (delete 'configure) ;no configure script
+         (add-after 'install 'delete-static-library
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let ((out (assoc-ref outputs "out")))
+               (delete-file (string-append out "/lib/libaio.a"))
+               #t))))))
     (home-page "https://pagure.io/libaio")
     (synopsis "Linux-native asynchronous I/O access library")
     (description