gnu: e2fsck-static: Use really statically-linked executables.

* gnu/packages/linux.scm (e2fsprogs/static): New variable.
  (e2fsck/static): Use it in 'inputs'.
This commit is contained in:
Ludovic Courtès 2015-01-16 21:07:31 +01:00
parent f327b36edb
commit e48977e755
1 changed files with 12 additions and 1 deletions

View File

@ -562,6 +562,17 @@ slabtop, and skill.")
lgpl2.0 ; libext2fs lgpl2.0 ; libext2fs
x11)))) ; libuuid x11)))) ; libuuid
(define e2fsprogs/static
(static-package
(package (inherit e2fsprogs)
(arguments
;; Do not build shared libraries.
(substitute-keyword-arguments (package-arguments e2fsprogs)
((#:configure-flags _)
'(list "--disable-blkid"))
((#:make-flags _)
'(list)))))))
(define-public e2fsck/static (define-public e2fsck/static
(package (package
(name "e2fsck-static") (name "e2fsck-static")
@ -587,7 +598,7 @@ slabtop, and skill.")
(remove-store-references file) (remove-store-references file)
(chmod file #o555)) (chmod file #o555))
(scandir source (cut string-prefix? "fsck." <>)))))))) (scandir source (cut string-prefix? "fsck." <>))))))))
(inputs `(("e2fsprogs" ,(static-package e2fsprogs)))) (inputs `(("e2fsprogs" ,e2fsprogs/static)))
(synopsis "Statically-linked fsck.* commands from e2fsprogs") (synopsis "Statically-linked fsck.* commands from e2fsprogs")
(description (description
"This package provides statically-linked command of fsck.ext[234] taken "This package provides statically-linked command of fsck.ext[234] taken