Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/nload/files/, net-analyzer/nload/
Date: Sun, 26 Aug 2018 07:28:15
Message-Id: 1535267922.fbbbabdd395d8f63c97262c70cd240eb2f66398b.mgorny@gentoo
1 commit: fbbbabdd395d8f63c97262c70cd240eb2f66398b
2 Author: Andrey Mazo <ahippo <AT> yandex <DOT> com>
3 AuthorDate: Sun Aug 12 02:11:12 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 26 07:18:42 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fbbbabdd
7
8 net-analyzer/nload: patch to fix text sliding effect
9
10 Apply the following patch from upstream:
11 8a93886 "Eliminate flicker on some terminals like rxvt (thanks to Alex Wilson)"
12
13 This fixes network utilization graph rendering issue.
14 (the text on the right side of the screen
15 slides to the left together with graph updates)
16
17 Closes: https://bugs.gentoo.org/663402
18 Closes: https://github.com/gentoo/gentoo/pull/9543
19 Package-Manager: Portage-2.3.40, Repoman-2.3.9
20
21 ...0.7.4-Eliminate-flicker-on-some-terminals.patch | 26 ++++++++++++++++++++++
22 net-analyzer/nload/nload-0.7.4-r1.ebuild | 1 +
23 2 files changed, 27 insertions(+)
24
25 diff --git a/net-analyzer/nload/files/nload-0.7.4-Eliminate-flicker-on-some-terminals.patch b/net-analyzer/nload/files/nload-0.7.4-Eliminate-flicker-on-some-terminals.patch
26 new file mode 100644
27 index 00000000000..8d13545c786
28 --- /dev/null
29 +++ b/net-analyzer/nload/files/nload-0.7.4-Eliminate-flicker-on-some-terminals.patch
30 @@ -0,0 +1,26 @@
31 +From 8a93886e0fb33a81b8fe32e88ee106a581fedd34 Mon Sep 17 00:00:00 2001
32 +From: Roland Riegel <roland@×××××××××××××.de>
33 +Date: Sun, 28 Jan 2018 16:59:39 +0100
34 +Subject: [PATCH 1/1] Eliminate flicker on some terminals like rxvt (thanks to
35 + Alex Wilson)
36 +
37 +---
38 + src/window.cpp | 2 +-
39 + 1 file changed, 1 insertion(+), 1 deletion(-)
40 +
41 +diff --git a/src/window.cpp b/src/window.cpp
42 +index bfa7701..2083fd0 100644
43 +--- a/src/window.cpp
44 ++++ b/src/window.cpp
45 +@@ -108,7 +108,7 @@ void Window::refresh()
46 + void Window::clear()
47 + {
48 + if(m_window)
49 +- wclear(m_window);
50 ++ werase(m_window);
51 + }
52 +
53 + // move and resize window
54 +--
55 +2.16.4
56 +
57
58 diff --git a/net-analyzer/nload/nload-0.7.4-r1.ebuild b/net-analyzer/nload/nload-0.7.4-r1.ebuild
59 index d65af8f4202..1de5b572103 100644
60 --- a/net-analyzer/nload/nload-0.7.4-r1.ebuild
61 +++ b/net-analyzer/nload/nload-0.7.4-r1.ebuild
62 @@ -19,6 +19,7 @@ BDEPEND="virtual/pkgconfig"
63
64 PATCHES=(
65 "${FILESDIR}"/${P}-tinfo.patch
66 + "${FILESDIR}"/${P}-Eliminate-flicker-on-some-terminals.patch
67 )
68
69 src_prepare() {