GNU bug report logs -
#54069
[PATCH 0/2] gnu: pciutils: Unbundle pci.ids and use latest.
Previous Next
Reported by: Brendan Tildesley <mail <at> brendan.scot>
Date: Sun, 20 Feb 2022 09:55:02 UTC
Severity: normal
Tags: patch
Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #92 received at 54069 <at> debbugs.gnu.org (full text, mbox):
Hi!
Maxime Devos <maximedevos <at> telenet.be> skribis:
> Ludovic Courtès schreef op zo 27-02-2022 om 22:23 [+0100]:
>> Can’t we instead do:
>>
>> #~(let* ((usb.ids (string-append #$hwdata:usb "/share/hwdata/usb.ids"))
>> (pci.ids (string-append #$hwdata:pci "/share/hwdata/pci.ids")))
>> …)
>>
>> ?
>
> We could, and that's what the original v2 patch did.
> However, this prevents package transformations:
Right, but maybe that’s good enough?…
Otherwise, we can do:
#~(let* ((usb.ids (string-append
(ungexp (this-package-inputs "hwdata") "usb")
…)))
…)
[...]
> Ludovic Courtès schreef op zo 27-02-2022 om 22:23 [+0100]:
>> I think this is equivalent to:
>>
>> #~(let* ((inputs #$(input-tuples->gexp (package-inputs this-package)))
>> …)
>> …)
>>
>> Am I right?
>
> That's what I suggested initially:
>
>> > #~(let* ((inputs #$(input-tuples->gexp (package-inputs this-
>> package)))
>> > (usb.ids (search-input-file inputs
>> "/share/hwdata/usb.ids"))
>> > (pci.ids (search-input-file inputs
>> "/share/hwdata/pci.ids")))
>> > (list (string-append "-Dwith-usb-ids-path=" usb.ids) [...]))
>> >
>>
>
> However, that lead to errors -- strings like #<package foo [...]>
> appeared in the builder.
Hmm weird.
Thanks,
Ludo’.
This bug report was last modified 3 years and 63 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.