GNU bug report logs -
#69313
[PATCH] gnu: tlpui: Fix broken package.
Previous Next
Reported by: Juliana Sims <juli <at> incana.org>
Date: Thu, 22 Feb 2024 20:26:02 UTC
Severity: normal
Tags: patch
Done: Juliana Sims <juli <at> incana.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hello,
Juliana Sims <juli <at> incana.org> writes:
> * gnu/packages/linux.scm (tlpui): Fix broken package.
Thank you.
I think the commit message could be expounded a bit, e.g.,
* gnu/packages/linux.scm (tlpui)[arguments]: Fix location for "defaults.conf".
> (add-after 'unpack 'set-absolute-locations
> - (lambda* (#:key inputs #:allow-other-keys)
> - (let ((defaults.conf
> - (search-input-file inputs "/share/tlp/defaults.conf"))
> - (lspci (search-input-file inputs "/bin/lspci"))
> - (lsusb (search-input-file inputs "/bin/lsusb"))
> - (tlp-stat (search-input-file inputs "/bin/tlp-stat")))
> + (lambda _
> + (let ((defaults.conf #$(file-append tlp "/share/tlp/defaults.conf"))
> + (lspci #$(file-append pciutils "/bin/lspci"))
> + (lsusb #$(file-append usbutils "/bin/lsusb"))
> + (tlp-stat #$(file-append tlp "/bin/tlp-stat")))
I'm a bit puzzled here: how does
(search-input-file inputs "/share/tlp/defaults.conf")
differ from
#$(file-append tlp "/share/tlp/defaults.conf")
?
And how does this relate to other changes in the patch (lsusb and lspci)?
> (with-directory-excursion "tlpui"
> (substitute* '("file.py" "settingshelper.py" "statui.py")
> (("\"tlp-stat\"")
> (string-append "'" tlp-stat "'"))
> (("/usr/share/tlp/defaults.conf")
> - (string-append "'" defaults.conf "'")))
> + defaults.conf))
OOC, would this single line suffice to fix the issue? On my side, this
seems to be the case.
Regards,
--
Nicolas Goaziou
This bug report was last modified 1 year and 78 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.