From patchwork Thu Apr 11 14:09:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 62929 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 54D2127BBE9; Thu, 11 Apr 2024 15:10:06 +0100 (BST) 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 9116E27BBE2 for ; Thu, 11 Apr 2024 15:10:01 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruv7j-0003EF-Nb; Thu, 11 Apr 2024 10:09:55 -0400 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 1ruv7i-0003E1-Cx for guix-patches@gnu.org; Thu, 11 Apr 2024 10:09:54 -0400 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 1ruv7i-0005in-3e for guix-patches@gnu.org; Thu, 11 Apr 2024 10:09:54 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ruv7q-0002UR-Hq; Thu, 11 Apr 2024 10:10:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70340] [PATCH] gnu: Add restool. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: leo@famulari.name, me@tobias.gr, w@wmeyer.eu, guix-patches@gnu.org Resent-Date: Thu, 11 Apr 2024 14:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70340 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70340@debbugs.gnu.org Cc: Leo Famulari , Tobias Geerinckx-Rice , Wilko Meyer X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Leo Famulari , Tobias Geerinckx-Rice , Wilko Meyer Received: via spool by submit@debbugs.gnu.org id=B.17128445859478 (code B ref -1); Thu, 11 Apr 2024 14:10:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Apr 2024 14:09:45 +0000 Received: from localhost ([127.0.0.1]:57044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruv7X-0002Se-Py for submit@debbugs.gnu.org; Thu, 11 Apr 2024 10:09:45 -0400 Received: from lists.gnu.org ([2001:470:142::17]:57094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ruv7Q-0002Qv-Re for submit@debbugs.gnu.org; Thu, 11 Apr 2024 10:09:41 -0400 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 1ruv7C-00033P-4B for guix-patches@gnu.org; Thu, 11 Apr 2024 10:09:22 -0400 Received: from mira.cbaines.net ([212.71.252.8]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ruv7A-0005cA-4I for guix-patches@gnu.org; Thu, 11 Apr 2024 10:09:21 -0400 Received: from localhost (unknown [212.132.255.10]) by mira.cbaines.net (Postfix) with ESMTPSA id 9870327BBE2 for ; Thu, 11 Apr 2024 15:09:18 +0100 (BST) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 95c7b83d for ; Thu, 11 Apr 2024 14:09:18 +0000 (UTC) From: Christopher Baines Date: Thu, 11 Apr 2024 15:09:17 +0100 Message-ID: <77ec7b6dd38115f0c533a9162ecbe59ec367f957.1712844557.git.mail@cbaines.net> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=212.71.252.8; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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 (restool): New variable. Change-Id: I40fae10c96460a8e7cc86419ed7bb9633aca66e6 --- gnu/packages/linux.scm | 54 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) base-commit: 4e7337536ba41e888a601c92fada8a4adca9d2c6 diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index c66fd80d38..743b98018e 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -10228,6 +10228,60 @@ (define-public renameat2 calls the Linux-specific @code{renameat2} system call.") (license license:expat)))) +(define-public restool + (let ((revision "0") + (commit "46604e41f4c7e54efa62503c6b4629321b21e056")) + (package + (name "restool") + (version (git-version "2.4" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nxp-qoriq/restool.git") + (commit commit))) + (file-name (string-append name "-" version "-checkout")) + (sha256 + (base32 + "1vp86iprdla7fc95lfvjq8wfzwbm2mdy0dil04jvvdz6kq6yyn4j")))) + (build-system gnu-build-system) + (arguments + (list + #:tests? #f ; no tests + #:make-flags + #~(list (string-append "CC=" #$(cc-for-target)) + (string-append "prefix=" #$output) + (string-append "bindir_completion=" #$output + "/share/bash-completion/completions")) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) + (add-after 'install 'wrap-scripts + (lambda _ + (for-each + (lambda (file) + (wrap-program (string-append #$output "/bin/" file) + `("PATH" prefix + (,(string-append #$output "/bin"))))) + '("ls-append-dpl" "ls-debug" "ls-main")))) + #$@(if (not (or (target-x86-64?) (target-x86-32?))) + #~((add-after 'unpack 'remove-manpage + (lambda _ + (substitute* "Makefile" + (("scripts/restool_completion.sh \\$\\(MANPAGE\\)") + "") + (("install -m 0644 -D \\$\\(MANPAGE\\) .*") ""))))) + #~())))) + (native-inputs + (if (or (target-x86-64?) (target-x86-32?)) + (list pandoc) + '())) + (synopsis "Manage DPAA2 containers and objects") + (description "This package provides restool, a user space application to +dynamically create and manage DPAA2 containers and objects.") + (supported-systems (delete "i586-gnu" %supported-systems)) + (home-page "https://github.com/nxp-qoriq/restool") + (license license:bsd-3)))) + (define-public libgpiod (package (name "libgpiod")