From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH v2] gnu: Add mtd-utils. Date: Tue, 6 Sep 2016 17:49:41 -0400 Message-ID: <20160906214941.GA28845@jasmine> References: <20160901123357.3233-1-dannym@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="RnlQjJ0d97Da+TV1" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhOFk-0006sI-Ek for guix-devel@gnu.org; Tue, 06 Sep 2016 17:50:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhOFg-0003HU-AE for guix-devel@gnu.org; Tue, 06 Sep 2016 17:49:59 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:40616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhOFd-0003GV-6H for guix-devel@gnu.org; Tue, 06 Sep 2016 17:49:56 -0400 Content-Disposition: inline In-Reply-To: <20160901123357.3233-1-dannym@scratchpost.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Danny Milosavljevic Cc: guix-devel@gnu.org --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Sep 01, 2016 at 02:33:57PM +0200, Danny Milosavljevic wrote: > gnu: Add mtd-utils. > > * gnu/packages/linux.scm (mtd-utils): New variable. Thanks for this patch! I made some adjustments, as attached. I imported the acl module, used #:make-flags to set PREFIX, and made a minor adjustment to the description. What do you think? --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-gnu-Add-mtd-utils.patch" >From dd00ffc45982b393cb458445e875188baf77175f Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Thu, 1 Sep 2016 14:33:57 +0200 Subject: [PATCH] gnu: Add mtd-utils. * gnu/packages/linux.scm (mtd-utils): New variable. Signed-off-by: Leo Famulari --- gnu/packages/linux.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 030e35e..ed96996 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -33,6 +33,7 @@ (define-module (gnu packages linux) #:use-module (gnu packages) + #:use-module (gnu packages acl) #:use-module (gnu packages admin) #:use-module (gnu packages algebra) #:use-module (gnu packages attr) @@ -2929,3 +2930,33 @@ native Linux file system, and has been part of the Linux kernel since version ;; The files src/key_mod/ecryptfs_key_mod_{openssl,pkcs11_helper,tspi}.c ;; grant additional permission to link with OpenSSL. (license license:gpl2+))) + +(define-public mtd-utils + (package + (name "mtd-utils") + (version "1.5.2") + (source (origin + (method url-fetch) + (uri (string-append + "ftp://ftp.infradead.org/pub/mtd-utils/" + "mtd-utils-" version ".tar.bz2")) + (sha256 + (base32 + "007lhsd8yb34l899r4m37whhzdw815cz4fnjbpnblfha524p7dax")))) + (inputs + `(("acl" ,acl) + ("libuuid" ,util-linux) + ("lzo", lzo) + ("zlib" ,zlib))) + (build-system gnu-build-system) + (arguments + `(#:test-target "tests" + #:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))) + #:phases (modify-phases %standard-phases + (delete 'configure)))) + (synopsis "MTD Flash Storage Utilities") + (description "This package provides utilities for testing, partitioning, etc +of flash storage.") + (home-page "http://www.linux-mtd.infradead.org/") + ;; mkfs.ubifs/crc16.h is GPLv2 + (license (list license:gpl2 license:mpl1.1 license:bsd-3)))) -- 2.10.0 --RnlQjJ0d97Da+TV1--