From 092b1c7183bdebe4c9f989f7defeb89e35e5a1fd Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 22 Nov 2016 15:37:47 +0100 Subject: conky: MAX_SP-patch, MAX_SP 10->20 --- opt/conky/MAX_SP-Pkgfile.patch | 18 ++++++++++++++++++ opt/conky/MAX_SP.patch.new | 15 +++++++++++++++ opt/conky/MAX_SP_20.patch.new | 11 +++++++++++ 3 files changed, 44 insertions(+) create mode 100644 opt/conky/MAX_SP-Pkgfile.patch create mode 100644 opt/conky/MAX_SP.patch.new create mode 100644 opt/conky/MAX_SP_20.patch.new diff --git a/opt/conky/MAX_SP-Pkgfile.patch b/opt/conky/MAX_SP-Pkgfile.patch new file mode 100644 index 0000000..4cf52cc --- /dev/null +++ b/opt/conky/MAX_SP-Pkgfile.patch @@ -0,0 +1,18 @@ +--- Pkgfile 2015-11-01 14:40:19.045169678 +0100 ++++ Pkgfile 2016-11-22 15:35:51.097814800 +0100 +@@ -6,10 +6,14 @@ + name=conky + version=1.9.0 + release=1 +-source=(http://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.bz2) ++source=(http://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.bz2 ++ MAX_SP.patch ++ MAX_SP_20.patch) + + build() { + cd $name-$version ++ patch -p1 -i ../MAX_SP.patch ++ patch -p1 -i ../MAX_SP_20.patch + ./configure --prefix=/usr \ + --mandir=/usr/man \ + --disable-lua \ diff --git a/opt/conky/MAX_SP.patch.new b/opt/conky/MAX_SP.patch.new new file mode 100644 index 0000000..7a6119d --- /dev/null +++ b/opt/conky/MAX_SP.patch.new @@ -0,0 +1,15 @@ +diff --git a/src/top.c b/src/top.c +index 98907f4..3217c1a 100644 +--- a/src/top.c ++++ b/src/top.c +@@ -661,8 +661,8 @@ int parse_top_args(const char *s, const char *arg, struct text_object *obj) + free(obj->data.opaque); + return 0; + } +- if (n < 1 || n > 10) { +- NORM_ERR("invalid num arg for top. Must be between 1 and 10."); ++ if (n < 1 || n > MAX_SP) { ++ NORM_ERR("invalid num arg for top. Must be between 1 and %d.", MAX_SP); + free(td->s); + free(obj->data.opaque); + return 0; diff --git a/opt/conky/MAX_SP_20.patch.new b/opt/conky/MAX_SP_20.patch.new new file mode 100644 index 0000000..6e5db89 --- /dev/null +++ b/opt/conky/MAX_SP_20.patch.new @@ -0,0 +1,11 @@ +--- a/src/top.h 2012-05-03 23:08:27.000000000 +0200 ++++ b/src/top.h 2016-11-22 15:34:06.804553823 +0100 +@@ -78,7 +78,7 @@ + #define PROCFS_TEMPLATE_MEM "/proc/%d/statm" + #define PROCFS_TEMPLATE_IO "/proc/%d/io" + #define PROCFS_CMDLINE_TEMPLATE "/proc/%d/cmdline" +-#define MAX_SP 10 // number of elements to sort ++#define MAX_SP 20 // number of elements to sort + + enum top_field { + TOP_CPU, -- cgit v1.2.3-70-g09d2