From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +GimL+PFKWJ8bwEAgWs5BA (envelope-from ) for ; Thu, 10 Mar 2022 10:33:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id OFoxKOPFKWK2MAAAG6o9tA (envelope-from ) for ; Thu, 10 Mar 2022 10:33:23 +0100 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 4EF512A957 for ; Thu, 10 Mar 2022 10:33:23 +0100 (CET) Received: from localhost ([::1]:46814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSFAg-0001K3-A5 for larch@yhetil.org; Thu, 10 Mar 2022 04:33:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50142) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSFAN-0001Hd-Sr for guix-patches@gnu.org; Thu, 10 Mar 2022 04:33:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:39317) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nSFAN-0005Pb-Jj for guix-patches@gnu.org; Thu, 10 Mar 2022 04:33:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nSFAN-0002Wr-GR for guix-patches@gnu.org; Thu, 10 Mar 2022 04:33:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54069] [PATCH v3 4/7] gnu: pciutils: Unbundle pci.ids and use latest. Resent-From: Brendan Tildesley Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 10 Mar 2022 09:33:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54069 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54069@debbugs.gnu.org Cc: John Kehayias , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Maxime Devos , Maxim Cournoyer Received: via spool by 54069-submit@debbugs.gnu.org id=B54069.16469047679633 (code B ref 54069); Thu, 10 Mar 2022 09:33:03 +0000 Received: (at 54069) by debbugs.gnu.org; 10 Mar 2022 09:32:47 +0000 Received: from localhost ([127.0.0.1]:33198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSFA7-0002VJ-J5 for submit@debbugs.gnu.org; Thu, 10 Mar 2022 04:32:47 -0500 Received: from mout-p-101.mailbox.org ([80.241.56.151]:34882) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSFA5-0002V2-HR for 54069@debbugs.gnu.org; Thu, 10 Mar 2022 04:32:46 -0500 Received: from smtp202.mailbox.org (smtp202.mailbox.org [80.241.60.245]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4KDkPM4ppGz9sks; Thu, 10 Mar 2022 10:32:39 +0100 (CET) From: Brendan Tildesley DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot; s=MBO0001; t=1646904757; 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=mIdm/DZN9elqrSdPNkI6GwtW3ryHQx5St81iJ8XjCyA=; b=XWDQ+BuK9ck+6S/Jrb0yew+sogpMKWcA6BH2qZfANNruXHDnJkWaqliAeTOuPHkJkd9ioZ +v1/tTxIhTnFAjLr9ReR/oEOXyNf9LDMe0cpOcyqlmBbwADteDQHZdYh09IFAjDwjm9m89 gvuJkrh3NqA1IF9lkj9sA3Pnh3gdGXPoH2r7jibf9xGMXXOXCMnRgdy4JAjMwInA5f8pKa TqXCCJcM/ve8hpFBZkYVGzCo3mQjW8+0jk9LWtaf6/j9sg3Vy7GpQP9f/6RVFV/n3zfd5w fBThdftFGhZZ/9ieLvpuOOHpf98Qyq1mRALiEVt22HHeDktOM1zpbglZ1ionGA== Date: Thu, 10 Mar 2022 20:31:42 +1100 Message-Id: <20220310093145.31649-5-mail@brendan.scot> In-Reply-To: <20220310093145.31649-1-mail@brendan.scot> References: <20220310093145.31649-1-mail@brendan.scot> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646904803; h=from:from:sender:sender: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=mIdm/DZN9elqrSdPNkI6GwtW3ryHQx5St81iJ8XjCyA=; b=CjV0+6TIPHADj4IPS2LoPBde7Yr0km2+pKhoJun1ON2VQ9vDm/N5A0kL2ekq/m0r3UoftT fqelg5xm8M+Fshe5VKFMyxtmWU0oFlAqIotY3/WL46kPwGhSj6MzKSsmwOO55kv2nR0SvU QCBHI58r9RIbO7OYCBSwHwz/ZNCC0YNPYbzeUDAXUE/NbKFNUopfna0vql8A2HXR9oRdVC JCMKJJ+knbR+T6W+4BHoqW9IovdEI8QdjhNNlx7uxql28GQRwJrUzmnp+OoeiVr4ksTPi1 5mFyLR3afBE8lvryqopbZcbw863fGbEemsHcyO8Sv288oVXyRVKr0Tig2r/H7A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646904803; a=rsa-sha256; cv=none; b=ZdwlOQeu3Ou5M81jS8g9lUHCcAcJCfsAl9B3cbH/jXQ8Nv0x365fplXJvdnjgQMoWDHL0h nA1xqgvM+rF3Vq2+5R+u9axFupfpAP4NzPsrJSb/HQMcJo9svrje5aEEzSKxnGlmHPJ88t 4opeSDAc5Rd49aJdY0vQciqLaigdkh5wftTAXPkNFLyZocj5iDdbAUrt90XfYzDrlnPzwi i6nPCX68FjSnYLE+K9RKQup7YlUKiOw/TRrBhZyzUq8Y//wPlylNb1XNs/sNqbgJfo2Wh2 HzwEF9UJRroUsXN0waqtKJXfaw17Smii2uC43mtPG/a3/CwLT37I1RKXfmbd2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=brendan.scot header.s=MBO0001 header.b=XWDQ+BuK; dmarc=none; 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: 2.30 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=brendan.scot header.s=MBO0001 header.b=XWDQ+BuK; dmarc=none; 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-Queue-Id: 4EF512A957 X-Spam-Score: 2.30 X-Migadu-Scanner: scn0.migadu.com X-TUID: 7YH7/rCTeBwn * gnu/packages/pciutils.scm (pciutils): [inputs]: Add hwdata:pci for latest pci.ids file. [arguments]: Don't install update-pciids script or it's man page. Don't install bundled old pci.ids file, use hwdata instead. Copy the pci.ids over so it can be gzipped. --- gnu/packages/pciutils.scm | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/gnu/packages/pciutils.scm b/gnu/packages/pciutils.scm index 41ba10f1e1..648d1385e4 100644 --- a/gnu/packages/pciutils.scm +++ b/gnu/packages/pciutils.scm @@ -93,8 +93,13 @@ (define-public pciutils (arguments `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'unbundle-pci.ids + (lambda* (#:key inputs outputs #:allow-other-keys) + (copy-file (string-append (assoc-ref inputs "hwdata:pci") + "/share/hwdata/pci.ids") + "pci.ids"))) (replace 'configure - (lambda* (#:key outputs #:allow-other-keys) + (lambda* (#:key inputs outputs #:allow-other-keys) ;; There's no 'configure' script, just a raw makefile. (substitute* "Makefile" ,@(if (%current-target-system) @@ -124,13 +129,19 @@ (define-public pciutils (("^SHARED=.*$") ;; Build libpciutils.so. "SHARED := yes\n") + (("^ZLIB=.*$") ;; Ask for zlib support, for 'pci.ids.gz' decompression. "ZLIB := yes\n") (("^IDSDIR=.*$") ;; Installation directory of 'pci.ids.gz'. - "IDSDIR = $(SHAREDIR)/hwdata\n")))) + "IDSDIR = $(SHAREDIR)/hwdata\n") + ;; Don't install update script or its man page, + ((".*INSTALL.*update-pciids .*") "") + (("update-pciids update-pciids.8 ") "") + (("(.*INSTALL.*)(update-pciids.8)(.*)" _ a _ b) + (string-append a b))))) (replace 'install (lambda* (#:key outputs #:allow-other-keys) ;; Install the commands, library, and .pc files. @@ -159,7 +170,8 @@ (define-public pciutils ,@(if (hurd-target?) `(("hurd-patch" ,(search-patch "pciutils-hurd-fix.patch"))) '()) - ("zlib" ,zlib))) + ("zlib" ,zlib) + ("hwdata:pci" ,hwdata "pci"))) (home-page "https://mj.ucw.cz/sw/pciutils/") (synopsis "Programs for inspecting and manipulating PCI devices") (description -- 2.34.0