Message ID | 635599986.289572.1645350831631@office.mailbox.org |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id B7F9627BBEA; Sun, 20 Feb 2022 09:55:23 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED 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 7DDF527BBE9 for <patchwork@mira.cbaines.net>; Sun, 20 Feb 2022 09:55:23 +0000 (GMT) Received: from localhost ([::1]:37922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org>) id 1nLiw6-0001N5-K9 for patchwork@mira.cbaines.net; Sun, 20 Feb 2022 04:55:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56210) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nLivm-0001LY-Mu for guix-patches@gnu.org; Sun, 20 Feb 2022 04:55:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37249) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nLivm-0002h4-DG for guix-patches@gnu.org; Sun, 20 Feb 2022 04:55:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1nLivm-0007at-6o for guix-patches@gnu.org; Sun, 20 Feb 2022 04:55:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54069] [PATCH 0/2] gnu: pciutils: Unbundle pci.ids and use latest. Resent-From: Brendan Tildesley <mail@brendan.scot> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 20 Feb 2022 09:55:02 +0000 Resent-Message-ID: <handler.54069.B.164535084629117@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54069 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54069@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches@gnu.org" <guix-patches@gnu.org> Received: via spool by submit@debbugs.gnu.org id=B.164535084629117 (code B ref -1); Sun, 20 Feb 2022 09:55:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Feb 2022 09:54:06 +0000 Received: from localhost ([127.0.0.1]:59379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1nLiur-0007ZZ-MW for submit@debbugs.gnu.org; Sun, 20 Feb 2022 04:54:05 -0500 Received: from lists.gnu.org ([209.51.188.17]:45144) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mail@brendan.scot>) id 1nLiuq-0007ZS-TU for submit@debbugs.gnu.org; Sun, 20 Feb 2022 04:54:05 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <mail@brendan.scot>) id 1nLiuq-0001HD-7t for guix-patches@gnu.org; Sun, 20 Feb 2022 04:54:04 -0500 Received: from mout-p-101.mailbox.org ([80.241.56.151]:43798) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from <mail@brendan.scot>) id 1nLiun-0002d7-UK for guix-patches@gnu.org; Sun, 20 Feb 2022 04:54:03 -0500 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:105:465:1:4:0]) (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 4K1gkD3j5jz9sR8 for <guix-patches@gnu.org>; Sun, 20 Feb 2022 10:53:56 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot; s=MBO0001; t=1645350834; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RMHpbqQIJYUNVOYxOLv6a1jqZ832PvYRyy2X4ZnlUdc=; b=XLSxVpJ+fBKdMhgG0bxCRs6Xv4jmj7GvU4f4oT0ZcQWhqq1mx23udZ9p1Q42Jjy4eIPyTT YXIj+nywK8N1qX1qoG32I5P4QsJTDOOtOSWB3GKocvSlvXVqrFNaJ1mr460RK+in+aqINN CSKJp5vRyQNdmbrCoJIMoUH4GmrOkTGmSxcwJuAKlkGK/6s51XP3nnRIP7F3Ow2ZZCHdqE +dh+XEC5CiP8YhjakOQI3U1oMc9b0ZEeyKyd6px3F6uoPvYo80hRrNN0v39f4o5tYxLDuD wRJRgrjTk1a86SnppCH0gIeBVqq9ZoMBOcyC/J90RpzQnjz3Ss6loHWk8+YziA== Date: Sun, 20 Feb 2022 10:53:51 +0100 (CET) From: Brendan Tildesley <mail@brendan.scot> Message-ID: <635599986.289572.1645350831631@office.mailbox.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal Received-SPF: pass client-ip=80.241.56.151; envelope-from=mail@brendan.scot; helo=mout-p-101.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-getmail-retrieved-from-mailbox: Patches |
Series |
gnu: pciutils: Unbundle pci.ids and use latest.
|
|
Message
Brendan Tildesley
Feb. 20, 2022, 9:53 a.m. UTC
Completely untested but I needed pci.ids for something and discovered pciutils bundles an old version so I made this patch as something of a suggestion. Looks like it would be a core-updates change.
Comments
Hi Brendan,
> Completely untested but I needed pci.ids for something and discovered pciutils bundles an old version so I made this patch as something of a suggestion. Looks like it would be a core-updates change.
Thanks for this possibility, I've actually had to address something similar in https://issues.guix.gnu.org/53015 where I made a pciutils variant for this purpose. The patch is unmerged currently though.
I think that would work short term for our packaging needs and, as you say, make this bigger change for core updates (or wherever it will best fit). I haven't reviewed this patch, but in this way I think any updates to hwdata will cause pciutils to rebuild, which has many dependents. I'm not sure what is best, maybe: have pciutils use a frozen version of the hwdata with the separate package being a standalone more up to date data?
By the way, I do see in pciutils that share/hwdata/pci.ids.gz though admittedly I never checked to see if that really is gziped. Packages that want a plain pci.ids did not like it though (maybe just from file name?).
Would be great to have others chime in on what the longer term fix would be, in the short term a pciutils variant and/or hwdata standalone package would be helpful.
John
Hi Brendan and Maxim, I'm aware of a couple of programs that want to use the plain pci.ids. True, they could use pciutils for that, but pci.ids is very simple, just a list of hardware ids paired with manufacturer/device names. While we can see if upstream for these programs will move to using pciutils, I could see reasons for not wanting the dependency or wanting more current info (especially in Guix where we would only update pciutils on core-updates). So I would find the separate hwdata package useful for a few packages I have, like mangohud (pending review) and corectrl (not submitted yet). I have to check, but they might only want pci.ids and not anything in pciutils anyway. Also, hwdata provides more data than just pci.ids, which we don't have packaged for Guix as far as I know. As for pciutils itself, I don't have any strong feelings on its pci.ids. Unbundling the included (old) info and using a hwdata package as input makes sense to me and is more flexible. On core-updates we can make that change for pciutils, where at some point we'd want to freeze what hwdata version it uses. Meanwhile, hwdata can be updated regularly (looks like monthly releases) for up-to-date data. I think this would keep pciutils small (zipped pci.ids), unbundled/more up to date, and give us the hwdata as a useful package to use. WDYT?
Hi John, John Kehayias <john.kehayias@protonmail.com> writes: > Hi Brendan and Maxim, > > I'm aware of a couple of programs that want to use the plain > pci.ids. True, they could use pciutils for that, but pci.ids is very > simple, just a list of hardware ids paired with manufacturer/device > names. While we can see if upstream for these programs will move to > using pciutils, I could see reasons for not wanting the dependency or > wanting more current info (especially in Guix where we would only > update pciutils on core-updates). > > So I would find the separate hwdata package useful for a few packages > I have, like mangohud (pending review) and corectrl (not submitted > yet). I have to check, but they might only want pci.ids and not > anything in pciutils anyway. Also, hwdata provides more data than just > pci.ids, which we don't have packaged for Guix as far as I know. > > As for pciutils itself, I don't have any strong feelings on its > pci.ids. Unbundling the included (old) info and using a hwdata package > as input makes sense to me and is more flexible. On core-updates we > can make that change for pciutils, where at some point we'd want to > freeze what hwdata version it uses. Meanwhile, hwdata can be updated > regularly (looks like monthly releases) for up-to-date data. > > I think this would keep pciutils small (zipped pci.ids), > unbundled/more up to date, and give us the hwdata as a useful package > to use. I think your proposition makes a lot of sense; the handful of applications wanting raw pci.ids can have it via hwdata, while our pciutils package can take (a frozen/fixed variant of hwdata) as an input to a get a newer yet compressed pci.ids.gz file. Seems a win/win solution to me! Thank you, Maxim
Hi Maxim, ------- Original Message ------- On Tuesday, February 22nd, 2022 at 4:00 PM, Maxim Cournoyer wrote: > I think your proposition makes a lot of sense; the handful of > applications wanting raw pci.ids can have it via hwdata, while our > pciutils package can take (a frozen/fixed variant of hwdata) as an input > to a get a newer yet compressed pci.ids.gz file. > > Seems a win/win solution to me! > Great! Brendan do you want to update your patches if you agree with this approach? I will test hwdata later for my mangohud patch, but since it is a simple copy install, I don't anticipate any problems. Oh, and if I understand correctly, keeping pciutils with a pci.ids.gz would avoid a profile collision with hwdata's pci.ids (so you can have both pciutils and the extra data of hwdata), right? Which would also be good. Thanks everyone, John
Hi, John Kehayias <john.kehayias@protonmail.com> writes: > Hi Maxim, > > ------- Original Message ------- > > On Tuesday, February 22nd, 2022 at 4:00 PM, Maxim Cournoyer wrote: > >> I think your proposition makes a lot of sense; the handful of >> applications wanting raw pci.ids can have it via hwdata, while our >> pciutils package can take (a frozen/fixed variant of hwdata) as an input >> to a get a newer yet compressed pci.ids.gz file. >> >> Seems a win/win solution to me! >> > > Great! Brendan do you want to update your patches if you agree with > this approach? I will test hwdata later for my mangohud patch, but > since it is a simple copy install, I don't anticipate any problems. > > Oh, and if I understand correctly, keeping pciutils with a pci.ids.gz > would avoid a profile collision with hwdata's pci.ids (so you can have > both pciutils and the extra data of hwdata), right? Which would also > be good. Indeed, I hadn't thought about this but it seems a nice property. Maxim
I can report that the hwdata package installs for me, and a pending package (mangohud) that wanted the pci.ids file is happy with just hwdata; pciutils is no longer needed. I did not do a review of the package definition other than this testing, but it worked and was useful for me.
I have used the ungexp suggestion Ludo made. I don't have any stance on the gexp-ology business, so I just did that. Feel free to change it however one wishes. the hwata updates can go to master, but the rest should be considered for core-updates i think? I have fixed up the pciutils definiton a bit, where I had previously removed the installation of a man page by mistake. Implemented the #:target #f suggestion in hwdata, and fixed a small mistake. I was away from the computer for a week so I hope I haven't forgotten to consider all feedback. Updated hwdata to 357.