From patchwork Fri Feb 10 15:06:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruno Victal X-Patchwork-Id: 46785 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 3BB1F165D8; Fri, 10 Feb 2023 15:08:34 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id AB4E0165CE for ; Fri, 10 Feb 2023 15:08:32 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQV0T-0002dw-MH; Fri, 10 Feb 2023 10:08:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQV0M-0002cU-JQ for guix-patches@gnu.org; Fri, 10 Feb 2023 10:08:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQV0M-00084p-4V for guix-patches@gnu.org; Fri, 10 Feb 2023 10:08:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQV0L-00076N-No for guix-patches@gnu.org; Fri, 10 Feb 2023 10:08:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61402] [PATCH 1/2] gnu: Add libnvme. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 10 Feb 2023 15:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61402 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61402@debbugs.gnu.org Cc: Bruno Victal Received: via spool by 61402-submit@debbugs.gnu.org id=B61402.167604162527217 (code B ref 61402); Fri, 10 Feb 2023 15:08:01 +0000 Received: (at 61402) by debbugs.gnu.org; 10 Feb 2023 15:07:05 +0000 Received: from localhost ([127.0.0.1]:37894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQUzQ-00074v-Jx for submit@debbugs.gnu.org; Fri, 10 Feb 2023 10:07:04 -0500 Received: from smtpmciv1.myservices.hosting ([185.26.107.237]:41834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQUzN-00074V-3C for 61402@debbugs.gnu.org; Fri, 10 Feb 2023 10:07:03 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.172]) by smtpmciv1.myservices.hosting (Postfix) with ESMTP id 9F56620D6C for <61402@debbugs.gnu.org>; Fri, 10 Feb 2023 16:07:00 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 58A9A80099; Fri, 10 Feb 2023 16:07:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-1.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Adm0i8guxMS8; Fri, 10 Feb 2023 16:06:59 +0100 (CET) Received: from guix-nuc.home.arpa (bl9-118-236.dsl.telepac.pt [85.242.118.236]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 261BA80097; Fri, 10 Feb 2023 16:06:59 +0100 (CET) From: Bruno Victal Date: Fri, 10 Feb 2023 15:06:53 +0000 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/linux.scm (libnvme): New variable. --- gnu/packages/linux.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 639ae5b558..4faa456333 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -5039,6 +5039,35 @@ (define-public hdparm Translation (@dfn{SAT}) are also supported.") (license (license:non-copyleft "file://LICENSE.TXT")))) +(define-public libnvme + (package + (name "libnvme") + (version "1.3") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/linux-nvme/libnvme.git") + (commit (string-append "v" version)))) + (sha256 + (base32 "1fngj5acp2sl4162xalq5simfasnika6gy0xrbi41x09wikvhn7y")) + (file-name (git-file-name name version)))) + (build-system meson-build-system) + (arguments + (list + #:configure-flags #~(list (format #f "-Dhtmldir=~a/share/doc/~a/html" + #$output #$name) + "-Ddocs-build=true" "-Ddocs=all"))) + (native-inputs (list pkg-config perl python python-sphinx)) + ;; libnvme.pc, libnvme-mi.pc lists these in Requires.private. + (propagated-inputs (list dbus json-c openssl)) + (home-page "https://github.com/linux-nvme/libnvme") + (synopsis "C Library for NVM Express on Linux") + (description "libnvme provides type definitions for NVMe specification +structures, enumerations, and bit fields, helper functions to construct, +dispatch, and decode commands and payloads, and utilities to connect, scan, +and manage nvme devices on a Linux system.") + (license license:lgpl2.1+))) + (define-public nvme-cli (package (name "nvme-cli") From patchwork Fri Feb 10 15:06:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruno Victal X-Patchwork-Id: 46786 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 AAA0A165E3; Fri, 10 Feb 2023 15:08:38 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id AD9B4165C3 for ; Fri, 10 Feb 2023 15:08:37 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQV0T-0002fJ-LV; Fri, 10 Feb 2023 10:08:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pQV0O-0002cb-8d for guix-patches@gnu.org; Fri, 10 Feb 2023 10:08:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pQV0M-00084u-E8 for guix-patches@gnu.org; Fri, 10 Feb 2023 10:08:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQV0M-00076V-87 for guix-patches@gnu.org; Fri, 10 Feb 2023 10:08:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#61402] [PATCH 2/2] gnu: nvme-cli: Update to 2.3. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 10 Feb 2023 15:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61402 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61402@debbugs.gnu.org Cc: Bruno Victal Received: via spool by 61402-submit@debbugs.gnu.org id=B61402.167604165127258 (code B ref 61402); Fri, 10 Feb 2023 15:08:02 +0000 Received: (at 61402) by debbugs.gnu.org; 10 Feb 2023 15:07:31 +0000 Received: from localhost ([127.0.0.1]:37897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQUzr-00075a-0I for submit@debbugs.gnu.org; Fri, 10 Feb 2023 10:07:31 -0500 Received: from smtpm2.myservices.hosting ([185.26.105.233]:54884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQUzp-00075R-73 for 61402@debbugs.gnu.org; Fri, 10 Feb 2023 10:07:29 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.172]) by smtpm2.myservices.hosting (Postfix) with ESMTP id 924A520E95 for <61402@debbugs.gnu.org>; Fri, 10 Feb 2023 16:07:28 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 3AC7880096; Fri, 10 Feb 2023 16:07:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-1.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Obc7783wMRMn; Fri, 10 Feb 2023 16:07:28 +0100 (CET) Received: from guix-nuc.home.arpa (bl9-118-236.dsl.telepac.pt [85.242.118.236]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id C2B2C80093; Fri, 10 Feb 2023 16:07:27 +0100 (CET) From: Bruno Victal Date: Fri, 10 Feb 2023 15:06:54 +0000 Message-Id: <9640c9a8c63baa8cdd882c93e3d87bd997f0a20f.1676041036.git.mirai@makinata.eu> X-Mailer: git-send-email 2.38.1 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/linux.scm (nvme-cli): Update to 2.3. [build-system]: Switch to meson-build-system. [arguments]: Remove stages. Build documentation. [native-inputs]: Add pkg-config. [inputs]: Add libnvme, json-c and zlib. --- gnu/packages/linux.scm | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 4faa456333..cc64d5b631 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -5071,7 +5071,7 @@ (define-public libnvme (define-public nvme-cli (package (name "nvme-cli") - (version "1.16") + (version "2.3") (home-page "https://github.com/linux-nvme/nvme-cli") (source (origin (method git-fetch) @@ -5079,22 +5079,16 @@ (define-public nvme-cli (url home-page) (commit (string-append "v" version)))) (sha256 - (base32 "130x5cf6kkcnyg5qd35igii249ysfjnbxp1pxfwkickmqg3d007z")) + (base32 "1f3bhxh2kr94s6glzibrmgxxgs66qyabn8plnw5y0v9cpi78b3qs")) (file-name (git-file-name name version)))) - (build-system gnu-build-system) + (build-system meson-build-system) (arguments - (list #:make-flags - #~(list (string-append "CC=" #$(cc-for-target))) - #:phases - #~(modify-phases %standard-phases - (delete 'configure) ; no ./configure script - (replace 'install - (lambda _ - (invoke "make" "install-spec" "PREFIX=" - (string-append "DESTDIR=" #$output))))) - ;; The tests require sysfs, which is not accessible from from the - ;; build environment. - #:tests? #f)) + (list + #:configure-flags #~(list (format #f "-Dhtmldir=~a/share/doc/~a/html" + #$output #$name) + "-Ddocs=all"))) + (native-inputs (list pkg-config)) + (inputs (list libnvme json-c zlib)) (synopsis "NVM-Express user space tooling for Linux") (description "Nvme-cli is a utility to provide standards compliant tooling for NVM-Express drives. It was made specifically for Linux as it relies on the