Subject: bug#76848: TLP 1.8 package misses perl

From: Nicolas Goaziou <[email-masked]>
Date: Sat, 08 Mar 2025 20:00:46 +0100

Hello,

glab via Bug reports for GNU Guix <[email-masked]> writes:

> I get an error when executing the command
>
>   $ sudo tlp setcharge 40 60
>   /gnu/store/ypdi8gxswgnshhmxxdj66cb51krx1d63-tlp-1.8.0/share/tlp/bat.d/05-thinkpad:
>   line 651: perl: command not found
>   /gnu/store/ypdi8gxswgnshhmxxdj66cb51krx1d63-tlp-1.8.0/share/tlp/bat.d/05-thinkpad:
>   line 1231: : : integer expression expected
>
> It seems the TLP shell script is employing the wrong perl PATH, and if
> perl is not installed in the current prefix, it fails.

Thank you for the report. I committed a fix on master branch. Could you
confirm it solves your issue?

Regards,
-- 
Nicolas Goaziou