mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 13:28:12 -05:00
gnu: wmbattery: Fix UPower-related memory leak.
* gnu/packages/gnustep.scm (wmbattery)[source](snippet): New field. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
65e46ca0ed
commit
64851f4a23
1 changed files with 10 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
;;; GNU Guix --- Functional package management for GNU
|
||||
;;; Copyright © 2014 Ludovic Courtès <ludo@gnu.org>
|
||||
;;; Copyright © 2016 Kei Yamashita <kei@openmailbox.org>
|
||||
;;; Copyright © 2016 Kei Kebreau <kei@openmailbox.org>
|
||||
;;;
|
||||
;;; This file is part of GNU Guix.
|
||||
;;;
|
||||
|
@ -101,7 +101,15 @@ (define-public wmbattery
|
|||
version ".orig.tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"0hi6bivv3xd2k68w08krndfl68wdx7nmc2wjzsmcd4q3qgwgyk44"))))
|
||||
"0hi6bivv3xd2k68w08krndfl68wdx7nmc2wjzsmcd4q3qgwgyk44"))
|
||||
(modules '((guix build utils)))
|
||||
(snippet
|
||||
;; Fix memory leak:
|
||||
;; <https://lists.gnu.org/archive/html/guix-devel/2016-05/msg00466.html>.
|
||||
'(substitute* "upower.c"
|
||||
(("up = up_client_new\\(\\);")
|
||||
(string-append "if (!up)\n"
|
||||
" up = up_client_new();"))))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
`(#:tests? #f ; no "check" target
|
||||
|
|
Loading…
Reference in a new issue