pkgsrc-Changes archive

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

CVS commit: pkgsrc/graphics/sxiv



Module Name:    pkgsrc
Committed By:   leot
Date:           Sun Dec 10 16:37:53 UTC 2017

Modified Files:
        pkgsrc/graphics/sxiv: Makefile distinfo
Added Files:
        pkgsrc/graphics/sxiv/patches: patch-autoreload_nop.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/graphics/sxiv/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/graphics/sxiv/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/sxiv/patches/patch-autoreload_nop.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/sxiv/Makefile
diff -u pkgsrc/graphics/sxiv/Makefile:1.3 pkgsrc/graphics/sxiv/Makefile:1.4
--- pkgsrc/graphics/sxiv/Makefile:1.3   Sat Oct 28 16:00:04 2017
+++ pkgsrc/graphics/sxiv/Makefile       Sun Dec 10 16:37:52 2017
@@ -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}

Index: pkgsrc/graphics/sxiv/distinfo
diff -u pkgsrc/graphics/sxiv/distinfo:1.2 pkgsrc/graphics/sxiv/distinfo:1.3
--- pkgsrc/graphics/sxiv/distinfo:1.2   Sat Oct 28 16:00:04 2017
+++ pkgsrc/graphics/sxiv/distinfo       Sun Dec 10 16:37:52 2017
@@ -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

Added files:

Index: pkgsrc/graphics/sxiv/patches/patch-autoreload_nop.c
diff -u /dev/null pkgsrc/graphics/sxiv/patches/patch-autoreload_nop.c:1.1
--- /dev/null   Sun Dec 10 16:37:53 2017
+++ pkgsrc/graphics/sxiv/patches/patch-autoreload_nop.c Sun Dec 10 16:37:53 2017
@@ -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