guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] gnu: Add wmbattery


From: Kei Yamashita
Subject: Re: [PATCH] gnu: Add wmbattery
Date: Sat, 14 May 2016 22:38:51 -0400

On Fri, 13 May 2016 12:25:07 +0200
Danny Milosavljevic <address@hidden> wrote:

> On Mon, 4 Apr 2016 17:04:51 -0400
> Kei Yamashita <address@hidden> wrote:
> 
> > The source tarball comes from Debian.   
> 
> The wmbattery version
> <http://http.debian.net/debian/pool/main/w/wmbattery/wmbattery_2.50.orig.tar.gz>
> that we use in Guix has a memory leak. It's been eating up all memory
> of my laptop for some time now, so I tracked it down.
> 
> The fix would be:
> 
> diff -ur orig/dockapps-30b9edb/upower.c dockapps-30b9edb/upower.c
> --- orig/dockapps-30b9edb/upower.c    2015-08-31
> 01:58:13.000000000 +0200 +++ dockapps-30b9edb/upower.c
> 2016-05-12 07:21:27.550374114 +0200 @@ -56,7 +56,8 @@
>  
>  int upower_supported(void)
>  {
> -     up = up_client_new();
> +     if (!up)
> +             up = up_client_new();
>  
>       if (!up) {
>               return 0;
> @@ -78,7 +79,8 @@
>       GPtrArray *devices = NULL;
>       static int retries = 0;
>  
> -     up = up_client_new();
> +     if (!up)
> +             up = up_client_new();
>  
>       if (!up)
>               return -1;
> 
> I added Joey Hess, the author of the program, to Cc.
> 
> @Joey Hess: what do you think?

Until the patch is applied upstream, this patch should keep things in
order within Guix.

Attachment: 0001-gnu-wmbattery-Add-patch-upower-phase.patch
Description: Text document

Attachment: pgppP7RSHcCO0.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]