]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
iotop: Modified rootfile with python-3.10.8
authorAdolf Belka <adolf.belka@ipfire.org>
Wed, 9 Nov 2022 18:57:34 +0000 (19:57 +0100)
committerPeter Müller <peter.mueller@ipfire.org>
Thu, 10 Nov 2022 15:13:54 +0000 (15:13 +0000)
- rootfile for iotop is significantly different with python-3.10.8 compared to 3.10.1
   Many entries now missing and iotop placed in bin instead of sbin despite source tarball
   setup.py having a "dirty hack to make sure iotop is installed in sbin instead of bin"
- Added lines to lfs to move iotop from /bin to /sbin
- Tested iotop out with python-3.10.8 installed vm system and it worked without any
   problems, the same as the existing version running with python-3.10.1

Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
config/rootfiles/packages/iotop
lfs/iotop

index c2a2813a7bd8273f16a6092c4c22cb35f513b8f4..356541e226b6be5cbc0c23c061abbe7541af2d4e 100644 (file)
@@ -1,12 +1,2 @@
-usr/lib/python3.10/site-packages/iotop
-#usr/lib/python3.10/site-packages/iotop-0.6-py3.10.egg-info
-#usr/lib/python3.10/site-packages/iotop/__init__.py
-#usr/lib/python3.10/site-packages/iotop/data.py
-#usr/lib/python3.10/site-packages/iotop/genetlink.py
-#usr/lib/python3.10/site-packages/iotop/ioprio.py
-#usr/lib/python3.10/site-packages/iotop/netlink.py
-#usr/lib/python3.10/site-packages/iotop/ui.py
-#usr/lib/python3.10/site-packages/iotop/version.py
-#usr/lib/python3.10/site-packages/iotop/vmstat.py
 usr/sbin/iotop
-#usr/share/man/man8/iotop.8
+usr/lib/python3.10/site-packages/iotop-0.6-py3.10.egg
index 8c01ae51dbe7e106007cf37a5bd4be277e323b5a..dd9deb2e4c22b4f8d4412c5357120da5c3b0ab3f 100644 (file)
--- a/lfs/iotop
+++ b/lfs/iotop
@@ -35,7 +35,7 @@ DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 
 PROG       = iotop
-PAK_VER    = 3
+PAK_VER    = 4
 DEPS       =
 
 SERVICES   =
@@ -83,5 +83,10 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/iotop-0.6-replace-itervalues-with-values-in-setup.py.patch
        cd $(DIR_APP) && python3 setup.py install
+       
+       # iotop with python-3.10.8 is placing iotop in /usr/bin
+       # move iotop from /usr/bin to /usr/sbin
+       cd $(DIR_APP) && mv -v /usr/bin/iotop /usr/sbin
+       
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)