unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#50283] HwInfo
@ 2021-08-30 19:31 Raghav Gururajan via Guix-patches via
  2021-08-30 19:35 ` [bug#50283] [PATCH v1 1/2] gnu: Add libx86emu Raghav Gururajan via Guix-patches via
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Raghav Gururajan via Guix-patches via @ 2021-08-30 19:31 UTC (permalink / raw)
  To: 50283


[-- Attachment #1.1.1: Type: text/plain, Size: 0 bytes --]



[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2649 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread
* [bug#49934] Hw-Probe
@ 2021-12-16  5:53 Ricardo Wurmus
  2021-12-25 21:17 ` Raghav Gururajan via Guix-patches via
  0 siblings, 1 reply; 18+ messages in thread
From: Ricardo Wurmus @ 2021-12-16  5:53 UTC (permalink / raw)
  To: 49934; +Cc: Raghav Gururajan

Thanks for the patch!

I’m afraid the 'patch build phase is much too repetitive.  You can
greatly simplify it by doing a substitution like this:

--8<---------------cut here---------------start------------->8---
(substitute* "hw-probe.pl"
  (("Cmd\\(\"([^\"]+)" _ command)
   (string-append "Cmd(\"" (which command))))
--8<---------------cut here---------------end--------------->8---

The regular expression has a sub-group that matches everything after the
opening double quote until it hits another double quote.  That group is
captured as “command”.  We then look up that string in the build
environment with “which” (not the executable of the same name), which
returns the absolute file name corresponding to the command.

-- 
Ricardo




^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-06-24  8:39 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-30 19:31 [bug#50283] HwInfo Raghav Gururajan via Guix-patches via
2021-08-30 19:35 ` [bug#50283] [PATCH v1 1/2] gnu: Add libx86emu Raghav Gururajan via Guix-patches via
2021-08-30 19:35   ` [bug#50283] [PATCH v1 2/2] gnu: Add hwinfo Raghav Gururajan via Guix-patches via
2021-08-30 23:13   ` [bug#50283] [PATCH v1 1/2] gnu: Add libx86emu pelzflorian (Florian Pelz)
2021-08-30 23:27     ` [bug#50283] HwInfo Raghav Gururajan via Guix-patches via
2021-08-31  9:35       ` pelzflorian (Florian Pelz)
2021-08-31  9:41         ` pelzflorian (Florian Pelz)
2021-08-31  9:48           ` pelzflorian (Florian Pelz)
2021-08-30 22:27 ` [bug#50283] [PATCH v2 1/2] gnu: Add libx86emu Raghav Gururajan via Guix-patches via
2021-08-30 22:27   ` [bug#50283] [PATCH v2 2/2] gnu: Add hwinfo Raghav Gururajan via Guix-patches via
2021-08-30 23:33 ` [bug#50283] [PATCH v3 1/2] gnu: Add libx86emu Raghav Gururajan via Guix-patches via
2021-08-30 23:33   ` [bug#50283] [PATCH v3 2/2] gnu: Add hwinfo Raghav Gururajan via Guix-patches via
2021-08-31 11:18     ` phodina via Guix-patches via
2021-09-01  1:28       ` Raghav Gururajan via Guix-patches via
2021-09-18 12:59 ` [bug#50283] Patch status phodina via Guix-patches via
2021-10-01 23:30 ` [bug#50283] HwInfo Raghav Gururajan via Guix-patches via
  -- strict thread matches above, loose matches on Subject: below --
2021-12-16  5:53 [bug#49934] Hw-Probe Ricardo Wurmus
2021-12-25 21:17 ` Raghav Gururajan via Guix-patches via
2022-06-23 15:35   ` [bug#50283] HwInfo Maxim Cournoyer
2022-06-24  8:31     ` Raghav Gururajan via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).