summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-11-22 15:37:47 +0100
committerErich Eckner <git@eckner.net>2016-11-22 15:37:47 +0100
commit092b1c7183bdebe4c9f989f7defeb89e35e5a1fd (patch)
tree68ae2da9b94282cce02b269a110e8962751ce847
parent4a678f5dcccdc5cce98e6f7fd070e00caed2a1da (diff)
downloadcrux-patches-092b1c7183bdebe4c9f989f7defeb89e35e5a1fd.tar.xz
conky: MAX_SP-patch, MAX_SP 10->20
-rw-r--r--opt/conky/MAX_SP-Pkgfile.patch18
-rw-r--r--opt/conky/MAX_SP.patch.new15
-rw-r--r--opt/conky/MAX_SP_20.patch.new11
3 files changed, 44 insertions, 0 deletions
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,