unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#51086: tlp error in tlp-func-base
@ 2021-10-07 16:53 Alex Devaure
  2021-10-08 16:44 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Devaure @ 2021-10-07 16:53 UTC (permalink / raw)
  To: 51086

Hi,
During the system boot, tlp generates an error:
/gnu/store/68mpiffl51mcrss7zy26dnqfx3d5v2vv-tlp-1.4.0/share/tlp/tlp-func-base:
line 528 /usr/share/tlp/bat.d/[0-9][0-9]*[a-z]: No such file or
directory.

It looks that the path to the bat.d directory is not modified during the
package creation. I think that the following patch should fix the
problem:
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 34aba8377f..d673a4f281 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -6773,6 +6773,7 @@ interface in sysfs, which can be accomplished with the included udev rules.")
                (setenv "TLP_BIN" (string-append out "/bin"))
                (setenv "TLP_TLIB" (string-append out "/share/tlp"))
                (setenv "TLP_FLIB" (string-append out "/share/tlp/func.d"))
+               (setenv "TLP_BATD" (string-append out "/share/tlp/bat.d"))
                (setenv "TLP_ULIB" (string-append out "/lib/udev"))
                (setenv "TLP_CONFDEF"
                        (string-append out "/share/tlp/defaults.conf"))

Regards,
Alex




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

* bug#51086: tlp error in tlp-func-base
  2021-10-07 16:53 bug#51086: tlp error in tlp-func-base Alex Devaure
@ 2021-10-08 16:44 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2021-10-08 16:44 UTC (permalink / raw)
  To: Alex Devaure; +Cc: 51086-done

Hello,

Alex Devaure <ajadevaure@gmail.com> writes:

> During the system boot, tlp generates an error:
> /gnu/store/68mpiffl51mcrss7zy26dnqfx3d5v2vv-tlp-1.4.0/share/tlp/tlp-func-base:
> line 528 /usr/share/tlp/bat.d/[0-9][0-9]*[a-z]: No such file or
> directory.
>
> It looks that the path to the bat.d directory is not modified during the
> package creation. I think that the following patch should fix the
> problem:
> diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
> index 34aba8377f..d673a4f281 100644
> --- a/gnu/packages/linux.scm
> +++ b/gnu/packages/linux.scm
> @@ -6773,6 +6773,7 @@ interface in sysfs, which can be accomplished with the included udev rules.")
>                 (setenv "TLP_BIN" (string-append out "/bin"))
>                 (setenv "TLP_TLIB" (string-append out "/share/tlp"))
>                 (setenv "TLP_FLIB" (string-append out "/share/tlp/func.d"))
> +               (setenv "TLP_BATD" (string-append out "/share/tlp/bat.d"))
>                 (setenv "TLP_ULIB" (string-append out "/lib/udev"))
>                 (setenv "TLP_CONFDEF"
>                         (string-append out "/share/tlp/defaults.conf"))

Indeed! I created a patch with a proper commit message and applied it in
your name.

Thank you.

Regards,
-- 
Nicolas Goaziou




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

end of thread, other threads:[~2021-10-08 16:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-07 16:53 bug#51086: tlp error in tlp-func-base Alex Devaure
2021-10-08 16:44 ` Nicolas Goaziou

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).