From patchwork Sat Nov 5 12:55:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Marius Bakke X-Patchwork-Id: 17225 Received: (qmail 5828 invoked by uid 89); 5 Nov 2016 12:56:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.2 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=D*ch, statistics, U*david X-Spam-Status: No, score=-4.2 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 05 Nov 2016 12:56:21 +0000 Received: from localhost ([::1]:47694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c30WB-0001pj-Nz for patchwork@sourceware.org; Sat, 05 Nov 2016 08:56:19 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38889) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c30Vk-0001aD-OL for guix-devel@gnu.org; Sat, 05 Nov 2016 08:55:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c30Vj-0001JR-61 for guix-devel@gnu.org; Sat, 05 Nov 2016 08:55:52 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:38513) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c30Vj-0001IY-0P for guix-devel@gnu.org; Sat, 05 Nov 2016 08:55:51 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A7C8E2052F; Sat, 5 Nov 2016 08:55:50 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Sat, 05 Nov 2016 08:55:50 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=TdqTT7YL/l9wtdi a/lFuAg7w5ho=; b=fYSLrtKufJB1kCEGbEeyO0R3yL95sJCbk/bklu5XoBCtVwB Dj7103nKvUDyKfnIlPKAOe4PUzJC6i2bZWRhshZS6F6ar4VXnR+F6hJSqIaivv6J ttfiaTqWkm05f+D9PDrmpSd6tm2OhtM0VhapWRKqMLFwcJamlc8igp4kikl0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=TdqTT7YL/l9wtdia/lFuAg7w5ho=; b=S4KBuGygSGwbC7R/uEIm UD0a19MDdxRNF6wnbIGkL+z+mxhcGzS/uB8mkas0pk5KVKBuN2sGW0WI2rwDEKRf swwTWJJt9p6D4aanYldmJIpK6L/tXn9Z048ii4fLF0rO5CP0fSizIrn470oTy5e1 UE7Jamn6ygaxWBsEbKv3hTU= X-ME-Sender: X-Sasl-enc: 2P9chXOXc7QO+HTSa5or5A9fSn6QmXCToEc5LICu5Agt 1478350549 Received: from localhost (169.243.187.81.in-addr.arpa [81.187.243.169]) by mail.messagingengine.com (Postfix) with ESMTPA id 64547CC027; Sat, 5 Nov 2016 08:55:49 -0400 (EDT) From: Marius Bakke To: guix-devel@gnu.org Subject: [PATCH 4/6] gnu: Add efivar. Date: Sat, 5 Nov 2016 12:55:09 +0000 Message-Id: <20161105125511.29383-5-mbakke@fastmail.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161105125511.29383-1-mbakke@fastmail.com> References: <20161105125511.29383-1-mbakke@fastmail.com> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.26 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marius Bakke Errors-To: guix-devel-bounces+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" * gnu/packages/linux.scm (efivar): New variable. --- gnu/packages/linux.scm | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 3fdce5d..86e9ff5 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -15,6 +15,7 @@ ;;; Copyright © 2016 Ricardo Wurmus ;;; Copyright © 2016 David Craven ;;; Copyright © 2016 John Darrington +;;; Copyright © 2016 Marius Bakke ;;; ;;; This file is part of GNU Guix. ;;; @@ -62,6 +63,7 @@ #:use-module (gnu packages perl) #:use-module (gnu packages pciutils) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages popt) #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages readline) @@ -3118,3 +3120,38 @@ activity of the GPU as a whole, which is also accurate during OpenCL computations, as well as separate component statistics that are only meaningful under OpenGL graphics workloads.") (license license:gpl3))) + +(define-public efivar + (package + (name "efivar") + (version "30") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/rhinstaller/" name + "/releases/download/" version "/" name + "-" version ".tar.bz2")) + (sha256 + (base32 + "12qjnm44yi55ffqxjpgrxy82s89yjziy84w2rfjjknsd8flj0mqz")))) + (build-system gnu-build-system) + (arguments + `(;; Tests require a UEFI system and is not detected in the chroot. + #:tests? #f + #:make-flags (list (string-append "prefix=" %output) + (string-append "libdir=" %output "/lib") + (string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")) + #:phases + (modify-phases %standard-phases + (delete 'configure)))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("popt" ,popt))) + (home-page "https://github.com/rhinstaller/efivar") + (synopsis "Tool and library to manipulate EFI variables") + (description "This package provides a library and a command line +interface to the UEFI variable facility.") + (license + (list license:lgpl2.1+ + (license:non-copyleft "file://src/crc32.c" + "See src/crc32.c in the distribution.")))))