From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id sN6uCHaHc2ScQAEASxT56A (envelope-from ) for ; Sun, 28 May 2023 18:55:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aGDFCHaHc2Ta/AAA9RJhRA (envelope-from ) for ; Sun, 28 May 2023 18:55:18 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0386F2AF24 for ; Sun, 28 May 2023 18:55:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3Jfc-00086j-A4; Sun, 28 May 2023 12:55:04 -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 1q3Jfa-00086M-7E for guix-patches@gnu.org; Sun, 28 May 2023 12:55:02 -0400 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 1q3JfZ-0004yS-UQ for guix-patches@gnu.org; Sun, 28 May 2023 12:55:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q3JfZ-0007aU-PK for guix-patches@gnu.org; Sun, 28 May 2023 12:55:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#61057] [PATCH v2 2/2] gnu: flashrom: Wrap PATH to find dmidecode. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 28 May 2023 16:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61057 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 61057@debbugs.gnu.org Cc: Hilton Chain Received: via spool by 61057-submit@debbugs.gnu.org id=B61057.168529284529092 (code B ref 61057); Sun, 28 May 2023 16:55:01 +0000 Received: (at 61057) by debbugs.gnu.org; 28 May 2023 16:54:05 +0000 Received: from localhost ([127.0.0.1]:54621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3Jee-0007Z9-Ug for submit@debbugs.gnu.org; Sun, 28 May 2023 12:54:05 -0400 Received: from mail.boiledscript.com ([144.168.59.46]:43012) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3Jeb-0007YU-0T for 61057@debbugs.gnu.org; Sun, 28 May 2023 12:54:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1685292709; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kgSk5qfc6K2HSbJUev0g7FgUYH/Fy7DfFCL99AErLHY=; b=p05b1obthPYzeXmWL+B/w8FloeOA+c5qFjl5SxXRitPwHvsrUZZA4b3t00a62UXP2Yz9Yk b6erTelUnTZRzSgqPY42Glf4BXoqeRdYsZhJmYeoRI0uFcuPO2v20YjFfdBeza1FWHFIdS GeS+pJryhKKUlgSh+N9YKx2jkM4Pxao0NSf7Y0++SHBFw4kM7hR+0p9rWmDUnlkxdPcktu RBxPUC9eAzuO6koUAgJGGOSiwBO68UfcLnnn3zkYWmYlGlLFKTKM8L1C2CYB4/8lkpKEC+ r/6q9IWycJhrUVaSKQXSPFH1y66BiBaVGaufEE1oZpjPsAuTDK5dBvDYWUFqIg== Date: Mon, 29 May 2023 00:53:58 +0800 Message-Id: <20230528165358.13530-2-hako@ultrarare.space> In-Reply-To: <20230528165358.13530-1-hako@ultrarare.space> References: <20230528165149.13011-1-hako@ultrarare.space> <20230528165358.13530-1-hako@ultrarare.space> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spamd-Bar: -- 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: , Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685292918; a=rsa-sha256; cv=none; b=IoEea7fNncM5AsV1CyuE7oAoAOqCamRrWHpzKbIPk9BkC2Ns8uD8D7KvjtbPVi5Bh2koPA Q79TUPvyOq7w9CdYMYLSiciRS4jJ2uj5TLNptSCV9Ozn9dWhmQDTYCCRduc1t3uSK07RYG QBTDYiS1/NrdTb7tMmcUjFAQVTJ0zEGNWtmCrVT6QEkvz68QW7tJ3UKIsgVsJUO6Rw0nOl XnTaKam3oIDapkakBHb3ClLCiU71XGkA/aQlfd2OrsipQ8MlG75LPIdM7PnsOHAYuRJhio fVX+k1dsgQRlu3nIbXpulMKU0oshj+IJELGVNcAwdao5dVzpedMGtZJWsREDRQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=p05b1obt; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685292918; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=kgSk5qfc6K2HSbJUev0g7FgUYH/Fy7DfFCL99AErLHY=; b=NI7HfeVonSZcFiMLOf7DrpHYrLwmvAs/EOqm5xoT+Nj5Fyq1EbYJKRQJkudfLytwUHwoRf Eouf9NvOGMC/QlbKnaTXTPd+89mCyRIpatQOh4ZrMWEW3Bter6qCWXuZTAme8Ko2tgwUAa Tch8E9oxiSg0GJFdBtCcYFCRUS+xQkhrZlW9E16LgJE7CuOk00YbJL/i3Uf75OK5fDuK/M MMizLvxi+LiKAXUc4Tyt6tIiui+5uGFbRFZbKUBCv0NOsrxCwunnCOZhic7WwnbswoZuxi /6EA133vzHBDeua4cwo3QXbrxp4ZbCRvFeqyNmxF/9G7a1uslKagV3jT8R5IDQ== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=p05b1obt; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.65 X-Spam-Score: -1.65 X-Migadu-Queue-Id: 0386F2AF24 X-TUID: CdeZTtqNDtW9 * gnu/packages/flashing-tools.scm (flashrom)[inputs]: Add bash-minimal. [arguments]<#:phases>: Add phase 'wrap-program. --- gnu/packages/flashing-tools.scm | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/gnu/packages/flashing-tools.scm b/gnu/packages/flashing-tools.scm index a1631b2940..19219a6d7e 100644 --- a/gnu/packages/flashing-tools.scm +++ b/gnu/packages/flashing-tools.scm @@ -41,6 +41,7 @@ (define-module (gnu packages flashing-tools) #:use-module (gnu packages autotools) #:use-module (gnu packages admin) #:use-module (gnu packages base) + #:use-module (gnu packages bash) #:use-module (gnu packages bison) #:use-module (gnu packages boost) #:use-module (gnu packages check) @@ -72,11 +73,20 @@ (define-public flashrom (base32 "08wn2j5vxzzvigflrjypgxxzjp32c76bshrlkzki5l6cad226lx0")))) (build-system meson-build-system) - (inputs (list dmidecode pciutils libusb libftdi libjaylink)) + (inputs (list bash-minimal dmidecode pciutils libusb libftdi libjaylink)) (native-inputs (list cmocka pkg-config)) (arguments (list #:configure-flags - #~'("-Dprogrammer=all"))) + #~'("-Dprogrammer=all") + #:phases + #~(modify-phases %standard-phases + (add-after 'install 'wrap-program + (lambda* (#:key inputs #:allow-other-keys) + (let ((flashrom (string-append #$output "/sbin/flashrom"))) + (wrap-program flashrom + `("PATH" ":" prefix + (,(dirname (search-input-file + inputs "/sbin/dmidecode"))))))))))) (home-page "https://flashrom.org/") (synopsis "Identify, read, write, erase, and verify ROM/flash chips") (description -- 2.40.1