diff options
author | Juergen Daubert <jue@jue.li> | 2020-09-13 12:27:47 +0200 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2020-09-13 12:27:47 +0200 |
commit | 92a1b87afed00fed9368049053d69d0203e0f8e1 (patch) | |
tree | e2f0f0a2722574a1c5990e5dde1a88777a11cbc4 /nfs-utils | |
parent | 2f75a4125c890e5df964d44d0e572203bd885d93 (diff) | |
download | opt-92a1b87afed00fed9368049053d69d0203e0f8e1.tar.gz opt-92a1b87afed00fed9368049053d69d0203e0f8e1.tar.xz |
nfs-utils: patch to convert scripts to python3
Diffstat (limited to 'nfs-utils')
-rw-r--r-- | nfs-utils/.signature | 5 | ||||
-rw-r--r-- | nfs-utils/Pkgfile | 9 | ||||
-rw-r--r-- | nfs-utils/python3.patch | 37 |
3 files changed, 46 insertions, 5 deletions
diff --git a/nfs-utils/.signature b/nfs-utils/.signature index 906a1c55b..4052045ae 100644 --- a/nfs-utils/.signature +++ b/nfs-utils/.signature @@ -1,6 +1,6 @@ untrusted comment: verify with /etc/ports/opt.pub -RWSE3ohX2g5d/btrLpOAAbUaCHXLl9Amej8Liw/ZpJFqxa1rYapuwgVbucqDhhJNzRMB0NKuouzuUjf6VZA66oLMOAvqrC235wU= -SHA256 (Pkgfile) = 845f4cf20c96313c1616623ca0027951f4705fb89b63d51289c1a723efe6eecb +RWSE3ohX2g5d/QF/LNLstnwt2fh8UXm87Rj79PMcJO3wd7kLXPpqWLjbY4tyWGMO2FbqdiCA1pNJH69x5gyU56di1LQyAkGUIgI= +SHA256 (Pkgfile) = d98cd14e1f306d9d68027eb27cce73b098177c1de9952e4916c3cd985db377e5 SHA256 (.footprint) = 08bee52c264923d52794306fc37e29919a58e306901e482c727dc021e908797d SHA256 (nfs-utils-2.5.1.tar.xz) = 0f1c8170e16a07d9836bbf0836d48d0c842b6f0e0e8b18748f099751851d30c4 SHA256 (exports) = 9556615724e66fbe6e7a2bfd740db4c5399a6abafab8cce868975f6926548eec @@ -13,3 +13,4 @@ SHA256 (rpc.statd) = 764b99273b59839d44a7e05c20d863206df06f5e7e5cb5cedf9da1db624 SHA256 (rpc.mountd) = a6aaaadc054df03a9e6500fdf8b2fc6669d78825daff2c68e52e4d9eb2e0509c SHA256 (rpc.nfsd) = 12d0936472011db6928e5c0526ac510217a0601863a012e8a1ea565e3c1721de SHA256 (nfsdcld) = ed10dc56f97a1d6a1045b2a422d41bf120d3227356ff30464d2ca6c25961351c +SHA256 (python3.patch) = cc24ab7eec8d7edc3df63549e7805d51e2cda59182acfc69042369206ce60d24 diff --git a/nfs-utils/Pkgfile b/nfs-utils/Pkgfile index 0e90b2d87..ef6d08f50 100644 --- a/nfs-utils/Pkgfile +++ b/nfs-utils/Pkgfile @@ -1,18 +1,21 @@ # Description: NFS utilities # URL: http://nfs.sourceforge.net/ # Maintainer: Juergen Daubert, jue at crux dot nu -# Depends on: libdevmapper util-linux libcap rpcbind libevent keyutils sqlite3 +# Depends on: libdevmapper util-linux libcap rpcbind libevent keyutils sqlite3 python3 name=nfs-utils version=2.5.1 -release=1 +release=2 source=(https://www.kernel.org/pub/linux/utils/$name/$version/$name-$version.tar.xz exports idmapd.conf - nfs nfsclient nfsserver rpc.idmapd rpc.statd rpc.mountd rpc.nfsd nfsdcld) + nfs nfsclient nfsserver rpc.idmapd rpc.statd rpc.mountd rpc.nfsd nfsdcld + python3.patch) build () { cd $name-$version + patch -p1 -i $SRC/python3.patch + CONFIG_SHELL=/bin/bash \ ./configure --prefix=/usr \ --sysconfdir=/etc \ diff --git a/nfs-utils/python3.patch b/nfs-utils/python3.patch new file mode 100644 index 000000000..3d08edcfa --- /dev/null +++ b/nfs-utils/python3.patch @@ -0,0 +1,37 @@ +commit d1683f356bd920d93f2db007902b2c46f97a2e49 +Author: Signed-off-by: NeilBrown <neilb@suse.de> +Date: Mon Aug 31 10:48:04 2020 -0400 + + Convert remaining python scripts to python3 + + nfs-utils contains 4 python scripts, two request + /usr/bin/python3 + in their shebang line, two request + /usr/bin/python + + Those latter two run perfectly well with python3 and as python2 is on the + way out, change them so they requrest /usr/bin/python3. + + Signed-off-by: NeilBrown <neilb@suse.de> + Signed-off-by: Steve Dickson <steved@redhat.com> + +diff --git a/tools/mountstats/mountstats.py b/tools/mountstats/mountstats.py +index 1054f698..00adc96b 100755 +--- a/tools/mountstats/mountstats.py ++++ b/tools/mountstats/mountstats.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!/usr/bin/python3 + # -*- python-mode -*- + """Parse /proc/self/mountstats and display it in human readable form + """ +diff --git a/tools/nfs-iostat/nfs-iostat.py b/tools/nfs-iostat/nfs-iostat.py +index 50fd6a92..4f5e8a66 100755 +--- a/tools/nfs-iostat/nfs-iostat.py ++++ b/tools/nfs-iostat/nfs-iostat.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/python ++#!/usr/bin/python3 + # -*- python-mode -*- + """Emulate iostat for NFS mount points using /proc/self/mountstats + """ |