diff options
-rw-r--r-- | system/iotop/fix-proc-status-read.patch | 10 | ||||
-rw-r--r-- | system/iotop/iotop.SlackBuild | 4 |
2 files changed, 13 insertions, 1 deletions
diff --git a/system/iotop/fix-proc-status-read.patch b/system/iotop/fix-proc-status-read.patch new file mode 100644 index 0000000000..b88d8b274f --- /dev/null +++ b/system/iotop/fix-proc-status-read.patch @@ -0,0 +1,10 @@ +--- iotop-0.6.orig/iotop/data.py 2013-05-26 18:44:18.000000000 -0400 ++++ iotop-0.6/iotop/data.py 2018-08-18 23:21:03.528110821 -0400 +@@ -193,6 +193,7 @@ + result_dict = {} + try: + for line in open('/proc/%d/status' % pid): ++ if not line.strip(): continue + key, value = line.split(':\t', 1) + result_dict[key] = value.strip() + except IOError: diff --git a/system/iotop/iotop.SlackBuild b/system/iotop/iotop.SlackBuild index 2516bf1d43..e2c8327557 100644 --- a/system/iotop/iotop.SlackBuild +++ b/system/iotop/iotop.SlackBuild @@ -24,7 +24,7 @@ PRGNAM=iotop VERSION=${VERSION:-0.6} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -55,6 +55,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +patch -p1 < $CWD/fix-proc-status-read.patch + sed -i 's|share/man/man8|man/man8|' setup.py python setup.py install --root=$PKG |