From patchwork Sun Mar 15 17:36:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vincent Legoll X-Patchwork-Id: 20692 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id EDFD527BBEA; Sun, 15 Mar 2020 17:38:26 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 7306727BBE4 for ; Sun, 15 Mar 2020 17:38:26 +0000 (GMT) Received: from localhost ([::1]:56416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDXDV-0000Om-S8 for patchwork@mira.cbaines.net; Sun, 15 Mar 2020 13:38:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60278) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDXDA-0000O9-6k for guix-patches@gnu.org; Sun, 15 Mar 2020 13:38:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDXD8-0002VQ-Q6 for guix-patches@gnu.org; Sun, 15 Mar 2020 13:38:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57723) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jDXD8-0002Tf-L8 for guix-patches@gnu.org; Sun, 15 Mar 2020 13:38:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jDXD8-0002mS-I8 for guix-patches@gnu.org; Sun, 15 Mar 2020 13:38:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#40032] [PATCH] gnu: Add nvme-cli Resent-From: Vincent Legoll Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 15 Mar 2020 17:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40032 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Leo Famulari Cc: 40032@debbugs.gnu.org Received: via spool by 40032-submit@debbugs.gnu.org id=B40032.158429383410624 (code B ref 40032); Sun, 15 Mar 2020 17:38:02 +0000 Received: (at 40032) by debbugs.gnu.org; 15 Mar 2020 17:37:14 +0000 Received: from localhost ([127.0.0.1]:35463 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jDXCL-0002lI-Qy for submit@debbugs.gnu.org; Sun, 15 Mar 2020 13:37:14 -0400 Received: from mail-il1-f196.google.com ([209.85.166.196]:36718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jDXCJ-0002ku-E0 for 40032@debbugs.gnu.org; Sun, 15 Mar 2020 13:37:11 -0400 Received: by mail-il1-f196.google.com with SMTP id h3so14212971ils.3 for <40032@debbugs.gnu.org>; Sun, 15 Mar 2020 10:37:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ArpUpRuAAxfut6NubHZXpK1r9ehzer7Y0rR7R/AAnRQ=; b=SV5LExnzZWoFuJIOwbl6CY0XBLcmb2esVZ/5QAmjBiM5BOvXasfVYrZFmuRVW+HViZ 4amqUxvvUQzErtDHoi4I0A7b4yUATNICY1TmfMKQQBafT+Z7+TnCn4FUlk6gy8qZelBY pSrJFCmIm+w4Q2PU0CnEWAnYyhsfMD6nlEJtVZOAJtpza1WOtWgBazuhJsrbqGxpRjPi 39OLynIy4EZxs3UFpG6rJhcLHc+oDk2rQaRyJWUyu6a9x3beF7GLI71SPtrn89wlajZy 8KF9SGgrE7+575eEslxWuF35AUajOoVY0wd/y4IJ1XGNibUgwlaNQefJ18RK56+4HpfQ 1g3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ArpUpRuAAxfut6NubHZXpK1r9ehzer7Y0rR7R/AAnRQ=; b=UjOQPxAb1Kx8aBOaGLyIzz/OTgm7oc0tXJstx0UegkohgDcWJ46RkceRhLuu6v+lVm 1Q5hNVFZLhqmw5JSJy+m8j+tNAdfgKKORam5Z/TEp0E3Bvy8ozODjgQZEN0NiKANoyQS z8V+u/+WKAfk54w60YCcDJ0CjozWAle0Kezmc4rlaKc+KWJBNjbUOEgxb+eBKf0+lzPX 3TtOZ9m/KlZFItKooM/zfMZ1zyxihE5L4MoD8+763uHqrbBQTPCwh3p94LXHh+7FIeqO F0SGM8tC2DN0lQALTAipG2tdZpHv6Y878gHDVJ7bpqAHpp9cD4zNyzit0UAAeFyYSmyn 0wkA== X-Gm-Message-State: ANhLgQ0LuHkiW5gprmAWW/bwQkkrqXCiQnczu3S3sdXzZPfbtquU67Ym mTWCA3iuHaQ+SPUge65HwwdOIX8B4wcCawPnKoc= X-Google-Smtp-Source: ADFU+vskalH2LoZreNhLNw7fgBPPaS2A2HGsaG/JHXgHNWikacDzCVwIjxiz0m8aC+NE3evcuadb/epDL1TD0Sp629s= X-Received: by 2002:a92:8c42:: with SMTP id o63mr22315876ild.189.1584293825874; Sun, 15 Mar 2020 10:37:05 -0700 (PDT) MIME-Version: 1.0 References: <20200312181513.GA8595@jasmine.lan> <20200315172242.GA26892@jasmine.lan> In-Reply-To: <20200315172242.GA26892@jasmine.lan> From: Vincent Legoll Date: Sun, 15 Mar 2020 18:36:54 +0100 Message-ID: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Like the following ? On Sun, Mar 15, 2020 at 6:22 PM Leo Famulari wrote: > > On Sun, Mar 15, 2020 at 06:07:44PM +0100, Vincent Legoll wrote: > > It looks like the tests require the presence of /sys/devices... > > > > Should I just add that explanation as comment ? > > Yeah, I would say that they require sysfs, which is not accessible from > the build environment. > > One could check with "ls -l /sys" in a build phase, or check the docs: > > https://guix.gnu.org/manual/en/html_node/Build-Environment-Setup.html > > Can you send a revised patch? From 4f794f64ca5438773fc9980bbf0cf5739144dc87 Mon Sep 17 00:00:00 2001 From: Vincent Legoll Date: Thu, 12 Mar 2020 01:51:12 +0100 Subject: [PATCH] gnu: Add nvme-cli * gnu/packages/linux.scm (nvme-cli): New variable. --- gnu/packages/linux.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 688d9eefaf..e8cc01d288 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -3577,6 +3577,36 @@ IDE driver subsystem. Many external USB drive enclosures with SCSI-ATA Command Translation (@dfn{SAT}) are also supported.") (license (license:non-copyleft "file://LICENSE.TXT")))) +(define-public nvme-cli + (package + (name "nvme-cli") + (version "1.10.1") + (home-page "https://github.com/linux-nvme/nvme-cli") + (source (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit (string-append "v" version)))) + (sha256 + (base32 "12wp2wxmsw2v8m9bhvwvdbhdgx1md8iilhbl19sfzz2araiwi2x8")) + (file-name (git-file-name name version)))) + (build-system gnu-build-system) + (arguments + `(#:make-flags (list "CC=gcc") + #:phases (modify-phases %standard-phases + (delete 'configure) + (replace 'install + (lambda _ + (zero? (system* "make" "install-spec" "PREFIX=" + (string-append "DESTDIR=" %output)))))) + #:tests? #f)) ; The tests require sysfs, which is not accessible from + ; the build environment + (synopsis "NVM-Express user space tooling for Linux") + (description "Utility to provide standards compliant tooling for NVM-Express +drives. It was made specifically for Linux as it relies on the IOCTLs defined +by the mainline kernel driver.") + (license license:gpl2+))) + (define-public rfkill (package (name "rfkill") -- 2.25.1