Subject: bug#76532: closed (Re: bug#76532: tlp-shepherd-service cannot launch bin/tlp -- it's sbin/tlp now)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 24 Feb 2025 22:25:02 +0000

Your bug report

#76532: tlp-shepherd-service cannot launch bin/tlp -- it's sbin/tlp now

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
76532: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=76532
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#76532: tlp-shepherd-service cannot launch bin/tlp -- it's sbin/tlp now
From: Nicolas Goaziou <[email-masked]>
To: Simen Endsjø <[email-masked]>
Cc: [email-masked]
Date: Mon, 24 Feb 2025 23:23:47 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

Simen Endsjø <[email-masked]> writes:

> tlp-shepherd-service tries to start bin/tlp, but looks like the binary
> has relocated to sbin/tlp somewhere between 1.5 and 1.8 (updated in
> 0b8ceaa1cd26a73059a69d8df50f5de3775eaf37).

Indeed!

> diff --git a/gnu/services/pm.scm b/gnu/services/pm.scm
> index 64b64e01fb..9b8066a38f 100644
> --- a/gnu/services/pm.scm
> +++ b/gnu/services/pm.scm
> @@ -448,7 +448,7 @@ (define-configuration tlp-configuration
>
>  (define (tlp-shepherd-service config)
>    (let* ((tlp-bin (file-append
> -                   (tlp-configuration-tlp config) "/bin/tlp"))
> +                   (tlp-configuration-tlp config) "/sbin/tlp"))
>           (tlp-action (lambda args
>                         #~(lambda _
>                             (zero? (system* #$tlp-bin #$@args))))))

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou

Subject: tlp-shepherd-service cannot launch bin/tlp -- it's sbin/tlp now
From: Simen Endsjø <[email-masked]>
To: [email-masked]
Date: Mon, 24 Feb 2025 21:14:10 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

tlp-shepherd-service tries to start bin/tlp, but looks like the binary has relocated to sbin/tlp somewhere between 1.5 and 1.8 (updated in 0b8ceaa1cd26a73059a69d8df50f5de3775eaf37).

diff --git a/gnu/services/pm.scm b/gnu/services/pm.scm
index 64b64e01fb..9b8066a38f 100644
--- a/gnu/services/pm.scm
+++ b/gnu/services/pm.scm
@@ -448,7 +448,7 @@ (define-configuration tlp-configuration

 (define (tlp-shepherd-service config)
   (let* ((tlp-bin (file-append
-                   (tlp-configuration-tlp config) "/bin/tlp"))
+                   (tlp-configuration-tlp config) "/sbin/tlp"))
          (tlp-action (lambda args
                        #~(lambda _
                            (zero? (system* #$tlp-bin #$@args))))))