* [bug#41358] lm-sensors: pwmconfig is broken
@ 2020-05-17 12:46 Nicolò Balzarotti
2020-05-17 15:12 ` bug#41358: " Tobias Geerinckx-Rice via Guix-patches via
0 siblings, 1 reply; 3+ messages in thread
From: Nicolò Balzarotti @ 2020-05-17 12:46 UTC (permalink / raw)
To: 41358
[-- Attachment #1: Type: text/plain, Size: 302 bytes --]
Hello guix!
The current version of lm-sensors adjust grep path in the pwmconfig
script, replacing grep->/gnu/store/.../grep. However, the script is
using egrep, leading to the non-existant e/gnu/store/.../grep path.
The attached patch fixes is actually replacing egrep->/gnu/store/../egrep
Thanks!
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-lm-sensors-Use-correct-egrep-path.patch --]
[-- Type: text/x-patch, Size: 1007 bytes --]
From 1a0395630547868385312198659d5fda39845cbe Mon Sep 17 00:00:00 2001
From: nixo <nicolo@nixo.xyz>
Date: Sun, 17 May 2020 14:39:17 +0200
Subject: [PATCH] gnu: lm-sensors: Use correct egrep path.
---
gnu/packages/linux.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 290090456f..6dd4fdf747 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -3541,9 +3541,9 @@ country-specific regulations for the wireless spectrum.")
(("cat ")
(string-append (assoc-ref inputs "coreutils")
"/bin/cat "))
- (("grep ")
+ (("egrep ")
(string-append (assoc-ref inputs "grep")
- "/bin/grep "))
+ "/bin/egrep "))
(("sed -e")
(string-append (assoc-ref inputs "sed")
"/bin/sed -e"))
--
2.26.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* bug#41358: lm-sensors: pwmconfig is broken
2020-05-17 12:46 [bug#41358] lm-sensors: pwmconfig is broken Nicolò Balzarotti
@ 2020-05-17 15:12 ` Tobias Geerinckx-Rice via Guix-patches via
2020-05-17 15:19 ` [bug#41358] " Nicolò Balzarotti
0 siblings, 1 reply; 3+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2020-05-17 15:12 UTC (permalink / raw)
To: Nicolò Balzarotti; +Cc: 41358-done
[-- Attachment #1: Type: text/plain, Size: 622 bytes --]
Nicolò,
Nicolò Balzarotti 写道:
> The current version of lm-sensors adjust grep path in the
> pwmconfig
> script, replacing grep->/gnu/store/.../grep. However, the
> script is
> using egrep, leading to the non-existant e/gnu/store/.../grep
> path.
> The attached patch fixes is actually replacing
> egrep->/gnu/store/../egrep
Thanks!
As it was, this change would in turn break fancontrol which does
use plain ‘grep’:
INTERVAL=$(grep -E '^INTERVAL=.*$' $1 | …
I've modified it to match either and pushed as
074cd595bbcd343f86aad09794d8781846ff1927.
Kind regards,
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [bug#41358] lm-sensors: pwmconfig is broken
2020-05-17 15:12 ` bug#41358: " Tobias Geerinckx-Rice via Guix-patches via
@ 2020-05-17 15:19 ` Nicolò Balzarotti
0 siblings, 0 replies; 3+ messages in thread
From: Nicolò Balzarotti @ 2020-05-17 15:19 UTC (permalink / raw)
To: me, 41358; +Cc: 41358-done
Hi Tobias!
Tobias Geerinckx-Rice via Guix-patches via <guix-patches@gnu.org>
writes:
> Nicolò,
>
> Nicolò Balzarotti 写道:
>> The current version of lm-sensors adjust grep path in the
>> pwmconfig
>> script, replacing grep->/gnu/store/.../grep. However, the
>> script is
>> using egrep, leading to the non-existant e/gnu/store/.../grep
>> path.
>> The attached patch fixes is actually replacing
>> egrep->/gnu/store/../egrep
>
> Thanks!
>
> As it was, this change would in turn break fancontrol which does
> use plain ‘grep’:
>
> INTERVAL=$(grep -E '^INTERVAL=.*$' $1 | …
>
Sorry for missing that
> I've modified it to match either and pushed as
> 074cd595bbcd343f86aad09794d8781846ff1927.
>
Thanks!
Nicolò
> Kind regards,
>
> T G-R
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-17 15:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-17 12:46 [bug#41358] lm-sensors: pwmconfig is broken Nicolò Balzarotti
2020-05-17 15:12 ` bug#41358: " Tobias Geerinckx-Rice via Guix-patches via
2020-05-17 15:19 ` [bug#41358] " Nicolò Balzarotti
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.