pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/graphics/sxiv sxiv: Avoid 100% CPU usage when sxiv is ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6d68dcbcc50d
branches:  trunk
changeset: 372578:6d68dcbcc50d
user:      leot <leot%pkgsrc.org@localhost>
date:      Sun Dec 10 16:37:52 2017 +0000

description:
sxiv: Avoid 100% CPU usage when sxiv is invoked non-interactively

Add patches/patch-autoreload_nop.c to avoid 100% CPU usage when sxiv is invoked
non-interactively (e.g. in a subshell in background via `( sxiv ... & )').

Bump PKGREVISION

diffstat:

 graphics/sxiv/Makefile                       |   3 ++-
 graphics/sxiv/distinfo                       |   3 ++-
 graphics/sxiv/patches/patch-autoreload_nop.c |  19 +++++++++++++++++++
 3 files changed, 23 insertions(+), 2 deletions(-)

diffs (48 lines):

diff -r 029310d26cae -r 6d68dcbcc50d graphics/sxiv/Makefile
--- a/graphics/sxiv/Makefile    Sun Dec 10 16:36:31 2017 +0000
+++ b/graphics/sxiv/Makefile    Sun Dec 10 16:37:52 2017 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.3 2017/10/28 16:00:04 leot Exp $
+# $NetBSD: Makefile,v 1.4 2017/12/10 16:37:52 leot Exp $
 #
 
 DISTNAME=      sxiv-24
+PKGREVISION=   1
 CATEGORIES=    graphics
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=muennich/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
diff -r 029310d26cae -r 6d68dcbcc50d graphics/sxiv/distinfo
--- a/graphics/sxiv/distinfo    Sun Dec 10 16:36:31 2017 +0000
+++ b/graphics/sxiv/distinfo    Sun Dec 10 16:37:52 2017 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2017/10/28 16:00:04 leot Exp $
+$NetBSD: distinfo,v 1.3 2017/12/10 16:37:52 leot Exp $
 
 SHA1 (sxiv-24.tar.gz) = 47940118169d51dbf02338e76878215ef066013f
 RMD160 (sxiv-24.tar.gz) = 61eaf03ca5c106289d41588f2d882f43ca8a6ff1
 SHA512 (sxiv-24.tar.gz) = e4c9d4e18b4f1999b6441256b4c0d4683a105f1f64d4f754d6f9bc4f467ee1ccc6b6996cec8a210276c5fbec59417627fb838cb4f7be37cce32fa2c5d45d347b
 Size (sxiv-24.tar.gz) = 47148 bytes
+SHA1 (patch-autoreload_nop.c) = ba3c730f1bb0b8ff530594b2c0f3e6a52cd0d1ba
diff -r 029310d26cae -r 6d68dcbcc50d graphics/sxiv/patches/patch-autoreload_nop.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/sxiv/patches/patch-autoreload_nop.c      Sun Dec 10 16:37:52 2017 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-autoreload_nop.c,v 1.1 2017/12/10 16:37:53 leot Exp $
+
+Avoid 100% CPU usage when sxiv is called non-interactively.
+
+Reported upstream as issue #297:
+
+ <https://github.com/muennich/sxiv/issues/297>
+
+--- autoreload_nop.c.orig      2017-10-27 15:25:56.000000000 +0000
++++ autoreload_nop.c
+@@ -20,7 +20,7 @@
+ 
+ void arl_init(arl_t *arl)
+ {
+-      (void) arl;
++      arl->fd = -1;
+ }
+ 
+ void arl_cleanup(arl_t *arl)



Home | Main Index | Thread Index | Old Index