[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] gnu: powertop: Patch absolute file names.
From: |
Ricardo Wurmus |
Subject: |
Re: [PATCH] gnu: powertop: Patch absolute file names. |
Date: |
Tue, 19 Apr 2016 08:19:06 +0200 |
User-agent: |
mu4e 0.9.13; emacs 24.5.1 |
Mathieu Lirzin <address@hidden> writes:
> * gnu/packages/linux.scm (powertop)[inputs]: Add kmod.
> [arguments]: Patch absolute file names. Before that launching powertop
> was failing because 'modprobe' was not found.
Looks good to me, but I have one thing to nitpick below.
> + (lambda* (#:key inputs #:allow-other-keys)
> + (let ((kmod (assoc-ref inputs "kmod")))
> + (substitute* (find-files "src" ".*\\.cpp" )
> + (("/sbin/modprobe") (string-append kmod "/bin/modprobe"))
> + ;; These programs are only needed to calibrate, so using
> + ;; relative file names avoids adding extra inputs. When
> they
> + ;; are missing powertop gracefully handle it.
Should it not be “handles”?
> + (("/usr/bin/xset") "xset")
> + (("/usr/sbin/hciconfig") "hciconfig") ;XXX:not packaged yet
> + (("/usr/bin/hcitool") "hcitool")) ;XXX:not packaged yet
> + #t))))))
~~ Ricardo