From e07912c6b5ea2ff45d5b923dccad26fef3ca932d Mon Sep 17 00:00:00 2001 From: Kei Yamashita Date: Sat, 14 May 2016 22:27:15 -0400 Subject: [PATCH] gnu: wmbattery: Add `patch-upower' phase. * gnu/packages/gnustep.scm (wmbattery): Add `patch-upower' phase. --- gnu/packages/gnustep.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gnu/packages/gnustep.scm b/gnu/packages/gnustep.scm index 31fca5b..961df0e 100644 --- a/gnu/packages/gnustep.scm +++ b/gnu/packages/gnustep.scm @@ -108,7 +108,13 @@ interface. It is fast, feature rich, easy to configure, and easy to use.") #:phases (modify-phases %standard-phases (add-after 'unpack 'autoconf - (lambda _ (zero? (system* "autoreconf" "-vfi"))))))) + (lambda _ (zero? (system* "autoreconf" "-vfi")))) + (add-before 'configure 'patch-upower + (lambda _ + (substitute* "upower.c" + (("up = up_client_new\\(\\);") + (string-append "if (!up)\n" + " up = up_client_new();")))))))) (inputs `(("glib" ,glib) ("libx11" ,libx11) -- 2.7.4