From aeb17639818d973bf39982c7379d080f15bbcfe0 Mon Sep 17 00:00:00 2001 From: Jagadeesh Krishnanjanappa Date: Tue, 9 Aug 2016 23:27:57 +0530 Subject: openvswitch: add missing python modules to execute ovs-test program ovs-test program requires python-twisted and ovstest python modules to execute successfully. The changes fix below errors: -- snip -- root@qemux86:~# ovs-test Traceback (most recent call last): File "/usr/bin/ovs-test", line 31, in import twisted ImportError: No module named twisted root@qemux86:~# ovs-test Traceback (most recent call last): File "/usr/bin/ovs-test", line 33, in import ovstest.args as args ImportError: No module named ovstest.args root@qemux86:~# -- snip -- Signed-off-by: Jagadeesh Krishnanjanappa Signed-off-by: Bruce Ashfield --- recipes-networking/openvswitch/openvswitch.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'recipes-networking/openvswitch/openvswitch.inc') diff --git a/recipes-networking/openvswitch/openvswitch.inc b/recipes-networking/openvswitch/openvswitch.inc index fc515e90..3c70703a 100644 --- a/recipes-networking/openvswitch/openvswitch.inc +++ b/recipes-networking/openvswitch/openvswitch.inc @@ -15,7 +15,7 @@ DEPENDS += "bridge-utils openssl python perl" RDEPENDS_${PN} += "util-linux-uuidgen util-linux-libuuid coreutils \ python perl perl-module-strict ${PN}-switch \ - bash" + bash python-twisted" RDEPENDS_${PN}-testcontroller = "${PN} lsb ${PN}-pki" RDEPENDS_${PN}-switch = "${PN} openssl procps util-linux-uuidgen" RDEPENDS_${PN}-pki = "${PN}" @@ -69,7 +69,8 @@ FILES_${PN}-switch = "\ FILES_${PN} += "${datadir}/ovsdbmonitor" FILES_${PN} += "/run" -inherit autotools update-rc.d systemd +FILES_${PN} += "${libdir}/python${PYTHON_BASEVERSION}/" +inherit autotools update-rc.d systemd python-dir SYSTEMD_PACKAGES = "${PN}-switch" SYSTEMD_SERVICE_${PN}-switch = " \ @@ -102,6 +103,8 @@ do_install_append() { ${D}/${systemd_unitdir}/system/openvswitch-nonetwork.service oe_runmake modules_install INSTALL_MOD_PATH=${D} + install -d ${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages + cp -r ${S}/python/ovstest/ ${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages/ } pkg_postinst_${PN}-pki () { -- cgit v1.2.3-54-g00ecf