1
0
forked from ports/contrib

iotop: use python3

This commit is contained in:
Fredrik Rinnestam 2019-12-20 14:04:51 +01:00
parent cbc5e49aa4
commit 00b2d12c8b
4 changed files with 66 additions and 30 deletions

View File

@ -1,26 +1,28 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/python2.7/
drwxr-xr-x root/root usr/lib/python2.7/site-packages/
drwxr-xr-x root/root usr/lib/python2.7/site-packages/iotop/
-rw-r--r-- root/root usr/lib/python2.7/site-packages/iotop/__init__.py (EMPTY)
-rw-r--r-- root/root usr/lib/python2.7/site-packages/iotop/__init__.pyc
-rw-r--r-- root/root usr/lib/python2.7/site-packages/iotop/data.py
-rw-r--r-- root/root usr/lib/python2.7/site-packages/iotop/data.pyc
-rw-r--r-- root/root usr/lib/python2.7/site-packages/iotop/genetlink.py
-rw-r--r-- root/root usr/lib/python2.7/site-packages/iotop/genetlink.pyc
-rw-r--r-- root/root usr/lib/python2.7/site-packages/iotop/ioprio.py
-rw-r--r-- root/root usr/lib/python2.7/site-packages/iotop/ioprio.pyc
-rw-r--r-- root/root usr/lib/python2.7/site-packages/iotop/netlink.py
-rw-r--r-- root/root usr/lib/python2.7/site-packages/iotop/netlink.pyc
-rw-r--r-- root/root usr/lib/python2.7/site-packages/iotop/ui.py
-rw-r--r-- root/root usr/lib/python2.7/site-packages/iotop/ui.pyc
-rw-r--r-- root/root usr/lib/python2.7/site-packages/iotop/version.py
-rw-r--r-- root/root usr/lib/python2.7/site-packages/iotop/version.pyc
-rw-r--r-- root/root usr/lib/python2.7/site-packages/iotop/vmstat.py
-rw-r--r-- root/root usr/lib/python2.7/site-packages/iotop/vmstat.pyc
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man8/
-rw-r--r-- root/root usr/man/man8/iotop.8.gz
drwxr-xr-x root/root usr/lib/python3.7/
drwxr-xr-x root/root usr/lib/python3.7/site-packages/
drwxr-xr-x root/root usr/lib/python3.7/site-packages/iotop/
-rw-r--r-- root/root usr/lib/python3.7/site-packages/iotop/__init__.py (EMPTY)
drwxr-xr-x root/root usr/lib/python3.7/site-packages/iotop/__pycache__/
-rw-r--r-- root/root usr/lib/python3.7/site-packages/iotop/__pycache__/__init__.cpython-37.pyc
-rw-r--r-- root/root usr/lib/python3.7/site-packages/iotop/__pycache__/data.cpython-37.pyc
-rw-r--r-- root/root usr/lib/python3.7/site-packages/iotop/__pycache__/genetlink.cpython-37.pyc
-rw-r--r-- root/root usr/lib/python3.7/site-packages/iotop/__pycache__/ioprio.cpython-37.pyc
-rw-r--r-- root/root usr/lib/python3.7/site-packages/iotop/__pycache__/netlink.cpython-37.pyc
-rw-r--r-- root/root usr/lib/python3.7/site-packages/iotop/__pycache__/ui.cpython-37.pyc
-rw-r--r-- root/root usr/lib/python3.7/site-packages/iotop/__pycache__/version.cpython-37.pyc
-rw-r--r-- root/root usr/lib/python3.7/site-packages/iotop/__pycache__/vmstat.cpython-37.pyc
-rw-r--r-- root/root usr/lib/python3.7/site-packages/iotop/data.py
-rw-r--r-- root/root usr/lib/python3.7/site-packages/iotop/genetlink.py
-rw-r--r-- root/root usr/lib/python3.7/site-packages/iotop/ioprio.py
-rw-r--r-- root/root usr/lib/python3.7/site-packages/iotop/netlink.py
-rw-r--r-- root/root usr/lib/python3.7/site-packages/iotop/ui.py
-rw-r--r-- root/root usr/lib/python3.7/site-packages/iotop/version.py
-rw-r--r-- root/root usr/lib/python3.7/site-packages/iotop/vmstat.py
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/iotop
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man8/
-rw-r--r-- root/root usr/share/man/man8/iotop.8.gz

View File

@ -1,5 +1,6 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3wgjVZZ89Jycc/evRRdS0qLSY3Sy+ItvpUq94ga/xI0KpiTVgmScbFBo32pMrI6bLNK+8dpD9VAw/QyrmP2GOgc=
SHA256 (Pkgfile) = 2946bf4669f572a7fcf946aaf75b28106f320129c4892bdf5232ef56c8570f34
SHA256 (.footprint) = 4f9cefc2a4dad0bf1064581066f188cb883b53252b6aef9ccc4aab2ee1114220
RWSagIOpLGJF39NYBiMiRV54eoshp5A33j3+u6jAJPEAS2fAtCPZ7G9drzdDmz9kKNYX3pD1cSQcce9QlqXLqRAUbijPzq4BVAE=
SHA256 (Pkgfile) = c34a2b57534d3ee3289a88bf3bd8bf0a29f4ee6637027bcd45cb1e9f38beb3c2
SHA256 (.footprint) = 0b57eaa88ebd97a754877af989e3f9679ef4d96e6e9efcce07be599023b425c8
SHA256 (iotop-0.6.tar.bz2) = 3adea2a24eda49bbbaeb4e6ed2042355b441dbd7161e883067a02bfc8dcef75b
SHA256 (0001-Make-setp.py-compatible-with-python3.patch) = 1f1eb0cfde45911de9429771d90c9a282f5fed23455a9678a8e44e205f4103a3

View File

@ -0,0 +1,30 @@
From 98a5985e52e7041eb96c80dd95fd5c70634f5ee7 Mon Sep 17 00:00:00 2001
From: Justin Lecher <jlec@gentoo.org>
Date: Tue, 18 Jun 2013 08:19:28 +0200
Subject: [PATCH 1/4] Make setp.py compatible with python3
Dictionaries in python 3 do not contain the itervalues() method anymore.
The values() method should be used and can also safely applied for
python 2.
Signed-off-by: Justin Lecher <jlec@gentoo.org>
---
setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index 7150102..9de6068 100755
--- a/setup.py
+++ b/setup.py
@@ -7,7 +7,7 @@ from iotop.version import VERSION
# Dirty hack to make setup.py install the iotop script to sbin/ instead of bin/
# while still honoring the choice of installing into local/ or not.
if hasattr(distutils_install, 'INSTALL_SCHEMES'):
- for d in distutils_install.INSTALL_SCHEMES.itervalues():
+ for d in distutils_install.INSTALL_SCHEMES.values():
if d.get('scripts', '').endswith('/bin'):
d['scripts'] = d['scripts'][:-len('/bin')] + '/sbin'
--
2.24.1

View File

@ -1,17 +1,20 @@
# Description: top like program to display I/O load.
# URL: http://guichaz.free.fr/iotop/
# Maintainer: Fredrik Rinnestam, fredrik at crux dot nu
# Depends on: python
# Depends on: python3
name=iotop
version=0.6
release=1
source=(http://guichaz.free.fr/$name/files/$name-$version.tar.bz2)
release=2
source=(http://guichaz.free.fr/$name/files/$name-$version.tar.bz2 \
0001-Make-setp.py-compatible-with-python3.patch)
build() {
cd $name-$version
chmod ag+r iotop.8
sed -i 's|share/man/man8|man/man8|' setup.py
/usr/bin/python setup.py install --root=$PKG --prefix=/usr
patch -p1 -i $SRC/0001-Make-setp.py-compatible-with-python3.patch
/usr/bin/python3 setup.py install --root=$PKG --prefix=/usr
rm -r $PKG/usr/lib/python*/site-packages/iotop-*.egg-info
}