GNU bug report logs - #77187
[PATCH] gnu: tlp: Wrap sbin folder

Previous Next

Package: guix-patches;

Reported by: Rutherther <rutherther <at> ditigal.xyz>

Date: Sat, 22 Mar 2025 17:02:02 UTC

Severity: normal

Tags: patch

Done: Ian Eure <ian <at> retrospec.tv>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Rutherther <rutherther <at> ditigal.xyz>
To: 77187 <at> debbugs.gnu.org
Cc: Rutherther <rutherther <at> ditigal.xyz>, Leo Famulari <leo <at> famulari.name>, Wilko Meyer <w <at> wmeyer.eu>
Subject: [bug#77187] [PATCH] gnu: tlp: Wrap sbin folder
Date: Sat, 22 Mar 2025 18:00:22 +0100
Seems that tlp recently introduced sbin
folder, this has broken the wrapping for
tlp script. The tlp script can fail in
finding runtime dependencies.

* gnu/packages/linux.scm (tlp): Wrap sbin folder

Change-Id: Id006f21fb42e385dade732b9d237b045f3a863e7
---
 gnu/packages/linux.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index b0dc6cbcfd..9bbed7c1df 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -8230,7 +8230,9 @@ (define-public tlp
           (add-after 'install 'wrap
             (lambda* (#:key inputs outputs #:allow-other-keys)
               (let* ((bin (string-append (assoc-ref outputs "out") "/bin"))
-                     (bin-files (find-files bin ".*")))
+                     (sbin (string-append (assoc-ref outputs "out") "/sbin"))
+                     (bin-files (find-files bin ".*"))
+                     (sbin-files (find-files sbin ".*")))
                 (define (bin-directory input-name)
                   (let ((p (assoc-ref inputs input-name)))
                     (and p (string-append p "/bin"))))
@@ -8260,7 +8262,7 @@ (define-public tlp
                                                 "pciutils"
                                                 "rfkill"
                                                 "wireless-tools"))))))
-                          bin-files)))))))
+                          (append bin-files sbin-files))))))))
     (home-page "https://linrunner.de/en/tlp/tlp.html")
     (synopsis "Power management tool for Linux")
     (description "TLP is a power management tool for Linux.  It comes with

base-commit: fbfd2b93831978aadbb96f32cafdab997b04c6c6
prerequisite-patch-id: cf473eb15513404ca1d287f5b7eca109c848203c
prerequisite-patch-id: a46e75bdd193acb5e276e0aa31c77197a3254699
-- 
2.49.0




This bug report was last modified 62 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.