From e48977e755767232a3ce3f0dc3f9d44c735c5ffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Fri, 16 Jan 2015 21:07:31 +0100 Subject: gnu: e2fsck-static: Use really statically-linked executables. * gnu/packages/linux.scm (e2fsprogs/static): New variable. (e2fsck/static): Use it in 'inputs'. --- gnu/packages/linux.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'gnu/packages') diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index f8bb6e2c1f..4973b27f62 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -562,6 +562,17 @@ slabtop, and skill.") lgpl2.0 ; libext2fs 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 (package (name "e2fsck-static") @@ -587,7 +598,7 @@ slabtop, and skill.") (remove-store-references file) (chmod file #o555)) (scandir source (cut string-prefix? "fsck." <>)))))))) - (inputs `(("e2fsprogs" ,(static-package e2fsprogs)))) + (inputs `(("e2fsprogs" ,e2fsprogs/static))) (synopsis "Statically-linked fsck.* commands from e2fsprogs") (description "This package provides statically-linked command of fsck.ext[234] taken -- cgit v1.2.3