From patchwork Mon Nov 18 14:59:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ludovic_Court=C3=A8s?= X-Patchwork-Id: 70504 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 ABD3627BBEA; Mon, 18 Nov 2024 15:02:20 +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=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED 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 26B5B27BBE2 for ; Mon, 18 Nov 2024 15:02:20 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tD3GP-000463-3t; Mon, 18 Nov 2024 10:02:08 -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 1tD3FS-0003tw-Fx for guix-patches@gnu.org; Mon, 18 Nov 2024 10:01:10 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tD3FQ-0000Zk-4O for guix-patches@gnu.org; Mon, 18 Nov 2024 10:01:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=jSk3t/7/2euNCHa74qHc04cLvczUuEhm8IegsIYJklo=; b=absHLnX4IWnZc+ZnWghCpOs5WvWBn6moG1dM+HtHUMlLESq9q9itesAbzPrITVJL17Nc7/sWI8ZxOtgCDkv5VmCWOxTtmaHfSHKvCPx9OrRAht/ipqgh8Q89TvnoaJacguM6fh0VVmVcUyHHVc5skyyV0kdV7M6NNVVXezlXmeuSyxO+pklGiHIE769MuOfSrUNmKoGare1ZDOAkGbG9/LGddZS6pU3YZJpuS7lmqHukRX7uxuzpVyYcYe8/keciVyRjKY2EBfFWgnvETs8qGNUrVRpJ0l7mi0OWVsmHm40LWEiqBVceKJy4db5me2NrZRbwGJDhAkXZ7gefitSUaw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tD3FP-00074W-V1; Mon, 18 Nov 2024 10:01:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74419] [PATCH 3/5] gnu: Add libcxi. Resent-From: Ludovic =?utf-8?q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: leo@famulari.name, w@wmeyer.eu, guix-patches@gnu.org Resent-Date: Mon, 18 Nov 2024 15:01:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74419 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74419@debbugs.gnu.org Cc: Ludovic =?utf-8?q?Court=C3=A8s?= , Leo Famulari , Wilko Meyer X-Debbugs-Original-Xcc: Leo Famulari , Wilko Meyer Received: via spool by 74419-submit@debbugs.gnu.org id=B74419.173194202827074 (code B ref 74419); Mon, 18 Nov 2024 15:01:03 +0000 Received: (at 74419) by debbugs.gnu.org; 18 Nov 2024 15:00:28 +0000 Received: from localhost ([127.0.0.1]:34754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tD3Ep-00072c-PA for submit@debbugs.gnu.org; Mon, 18 Nov 2024 10:00:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tD3Em-00071k-FP for 74419@debbugs.gnu.org; Mon, 18 Nov 2024 10:00:24 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tD3Ef-0000Qz-Ho; Mon, 18 Nov 2024 10:00:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=jSk3t/7/2euNCHa74qHc04cLvczUuEhm8IegsIYJklo=; b=ZRuODFMJ7ibblkJoZE1T naqoXYpQTZw2X7HV69CltfNbJ8Dc4trXIuvPHilmibnKccbmAIY7yQ+TNzAFTFK9P6XusivRS3Eyr v1hF9ECprUw/E8AfDkVNrIuCIQNDBAwyvuHiSuTk50aU3UK0eUi+rM9PC8Xy+wDKhZoMx0KbUos1r LRx2gSdH3TBtldoMkZPGkW7iZ+2Ocd0XskQ8wDpw8UnOu5VEfHzsOYlfniStxQSP5xZha/gSP/H74 Z8VJA4zZ8IuGDe6ySNlx7JGEaWWLOzrBxQMUsA0iu2EhoS8HPphPQSFuJebv6ObuZPp/Ox7mQvNjj wmEuUYqE4w9/yw==; From: Ludovic =?utf-8?q?Court=C3=A8s?= Date: Mon, 18 Nov 2024 15:59:18 +0100 Message-ID: X-Mailer: git-send-email 2.46.0 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 From: Ludovic Courtès * gnu/packages/linux.scm (libcxi): New variable. Change-Id: I714d8694c796d5bc3ce4756d5aae576031288699 --- gnu/packages/linux.scm | 55 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 17f743ef11..6b2a0c201e 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -150,6 +150,7 @@ (define-module (gnu packages linux) #:use-module (gnu packages haskell-xyz) #:use-module (gnu packages image) #:use-module (gnu packages kde-frameworks) + #:use-module (gnu packages libevent) #:use-module (gnu packages libunwind) #:use-module (gnu packages libusb) #:use-module (gnu packages llvm) @@ -9046,6 +9047,60 @@ (define-public cxi-driver Currently the Linux driver itself is missing from this package.") (license license:gpl2+)))) +(define-public libcxi + (let ((commit "5b6f8b5d57017c7963debb379d5693c59aca63ed") + (revision "0")) + (package + (name "libcxi") + (version (git-version "1.0.1" revision commit)) + (home-page "https://github.com/HewlettPackard/shs-libcxi") + (source + (origin + (method git-fetch) + (uri (git-reference (url home-page) (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1h3dhird8p11q4ziaxzg1hr5gxcgwx1limzdcyildyaw50dy549g")))) + (build-system gnu-build-system) + (arguments + (list #:configure-flags + #~(list "--disable-static" + (string-append "--with-udevrulesdir=" + #$output "/lib/udev/rules.d")) + + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'set-cassini-file-names + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "utils/cxi_dump_csrs.py" + (("/usr/share/cassini-headers/csr_defs.json") + (search-input-file + inputs + "/share/cassini-headers/csr_defs.json")))))))) + (native-inputs (list autoconf + automake + libtool + pkg-config + python-wrapper)) + (inputs (list libconfig + libuv + fuse-2 + libyaml + libnl + numactl + eudev + (list lm-sensors "lib"))) + (propagated-inputs (list cassini-headers cxi-driver)) + (synopsis "Interface to the Cassini/Slingshot high-speed interconnect") + (description + "Libcxi provides applications with a low-level interface to the +Cray/HPE Cassini high-speed @acronym{NIC, network interface controller}, also +known as Slingshot.") + + ;; License is spelled out in 'cray-libcxi.spec' and in source file + ;; headers. + (license (list license:lgpl2.1+ license:bsd-3))))) ;dual-licensed + (define-public libfabric (package (name "libfabric")