summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2016-06-02 12:25:49 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-03 13:13:26 +0100
commit96f8845cfe59f545f501e7999853eb00f9f4ec82 (patch)
treec55a858fc56c8154ee31f38d37aa6233f21b9af5 /meta/recipes-connectivity
parent6042021ef458399221fb689ece4795b07f5ab47f (diff)
downloadpoky-96f8845cfe59f545f501e7999853eb00f9f4ec82.tar.gz
nfs-utils: switch to Python 3
(From OE-Core rev: 91c3d8859676a8b0615563e1f8855566359f90c7) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity')
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb
index a6268f3d47..285bd2cd78 100644
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb
+++ b/meta/recipes-connectivity/nfs-utils/nfs-utils_1.3.3.bb
@@ -88,7 +88,7 @@ FILES_${PN}-client = "${base_sbindir}/*mount.nfs* ${sbindir}/*statd \
88 ${sysconfdir}/init.d/nfscommon \ 88 ${sysconfdir}/init.d/nfscommon \
89 ${systemd_unitdir}/system/nfs-statd.service" 89 ${systemd_unitdir}/system/nfs-statd.service"
90FILES_${PN}-stats = "${sbindir}/mountstats ${sbindir}/nfsiostat" 90FILES_${PN}-stats = "${sbindir}/mountstats ${sbindir}/nfsiostat"
91RDEPENDS_${PN}-stats = "python" 91RDEPENDS_${PN}-stats = "python3-core"
92 92
93FILES_${PN} += "${systemd_unitdir}" 93FILES_${PN} += "${systemd_unitdir}"
94 94
@@ -140,4 +140,8 @@ do_install_append () {
140 rm -f ${D}${sbindir}/rpcdebug 140 rm -f ${D}${sbindir}/rpcdebug
141 rm -f ${D}${sbindir}/rpcgen 141 rm -f ${D}${sbindir}/rpcgen
142 rm -f ${D}${sbindir}/locktest 142 rm -f ${D}${sbindir}/locktest
143
144 # Make python tools use python 3
145 sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${sbindir}/mountstats ${D}${sbindir}/nfsiostat
146
143} 147}