From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYeaF-0004oy-Qy for guix-patches@gnu.org; Thu, 28 Jun 2018 17:36:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYeaB-0005y4-RA for guix-patches@gnu.org; Thu, 28 Jun 2018 17:36:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:59304) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fYeaB-0005xg-Nr for guix-patches@gnu.org; Thu, 28 Jun 2018 17:36:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fYeaB-0006FN-HE for guix-patches@gnu.org; Thu, 28 Jun 2018 17:36:03 -0400 Subject: [bug#31999] [PATCH 6/7] gnu: Add libblockdev. Resent-Message-ID: From: Pierre Neidhardt Date: Thu, 28 Jun 2018 23:35:26 +0200 Message-Id: <20180628213527.23318-5-ambrevar@gmail.com> In-Reply-To: <20180628213527.23318-1-ambrevar@gmail.com> References: <20180628213527.23318-1-ambrevar@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 31999@debbugs.gnu.org * gnu/package/disk.scm (libblockdev): New variable. --- gnu/packages/disk.scm | 59 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 58 insertions(+), 1 deletion(-) diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index bb1faae8a..2a458eafb 100644 --- a/gnu/packages/disk.scm +++ b/gnu/packages/disk.scm @@ -65,7 +65,8 @@ #:use-module (gnu packages autotools) #:use-module (gnu packages web) #:use-module (gnu packages documentation) - #:use-module (gnu packages bash)) + #:use-module (gnu packages bash) + #:use-module (gnu packages c)) (define-public parted (package @@ -679,3 +680,59 @@ removal, rebuild and display of properties for ATARAID/DDF1 metadata. @command{dmraid} uses @file{libdevmapper} and the device-mapper kernel runtime to create devices with respective mappings for the ATARAID sets discovered.") (license license:gpl2+))) + +(define-public libblockdev + (package + (name "libblockdev") + (version "2.17") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rhinstaller/libblockdev") + (commit (string-append version "-1")))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "14f52cj2qcnm8i2zb57qfpdk3kij2gb3xgqkbvidmf6sjicq84z2")))) + (build-system gnu-build-system) + (native-inputs + `(("python" ,python) + ("gobject-introspection" ,gobject-introspection) + ("automake" ,automake) + ("autocont" ,autoconf) + ("libtool" ,libtool) + ("glib" ,glib) + ("util-linux" ,util-linux) + ("nss" ,nss) + ("cryptsetup" ,cryptsetup) + ("eudev" ,eudev) + ("pkg-config" ,pkg-config))) + (inputs + `(("btrfs-progs" ,btrfs-progs) + ("dosfstools" ,dosfstools) + ("dmraid" ,dmraid) + ("libbytesize" ,libbytesize) + ("lvm2" ,lvm2) + ("mdadm" ,mdadm) + ("ndctl" ,ndctl) + ("mdadm" ,mdadm) + ("parted" ,parted) + ("volume-key" ,volume-key) + ;; ("xfsprogs" ,xfsprogs) ; TODO: Package? + ("kmod" ,kmod) + )) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'autogen + (lambda _ + (invoke "sh" "autogen.sh")))))) + (home-page "https://github.com/rhinstaller/libblockdev") + (synopsis "A library for manipulating block devices") + (description + "libblockdev is a C library supporting GObject introspection for +manipulation of block devices. It has a plugin-based architecture where each +technology (like LVM, Btrfs, MD RAID, Swap,...) is implemented in a separate +plugin, possibly with multiple implementations (e.g. using LVM CLI or the new +LVM DBus API).") + (license license:lgpl2.1+))) -- 2.17.1