summaryrefslogtreecommitdiffstats
path: root/recipes-networking
diff options
context:
space:
mode:
authorJagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>2016-08-09 23:27:57 +0530
committerBruce Ashfield <bruce.ashfield@windriver.com>2016-08-16 15:03:55 -0400
commitaeb17639818d973bf39982c7379d080f15bbcfe0 (patch)
tree9db32757350b9323c88777cad7070c2df459bb8c /recipes-networking
parent42af8a171b6674035559f76488f09ff7bba402b4 (diff)
downloadmeta-virtualization-aeb17639818d973bf39982c7379d080f15bbcfe0.tar.gz
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 <module> import twisted ImportError: No module named twisted root@qemux86:~# ovs-test Traceback (most recent call last): File "/usr/bin/ovs-test", line 33, in <module> import ovstest.args as args ImportError: No module named ovstest.args root@qemux86:~# -- snip -- Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'recipes-networking')
-rw-r--r--recipes-networking/openvswitch/openvswitch.inc7
1 files changed, 5 insertions, 2 deletions
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"
15 15
16RDEPENDS_${PN} += "util-linux-uuidgen util-linux-libuuid coreutils \ 16RDEPENDS_${PN} += "util-linux-uuidgen util-linux-libuuid coreutils \
17 python perl perl-module-strict ${PN}-switch \ 17 python perl perl-module-strict ${PN}-switch \
18 bash" 18 bash python-twisted"
19RDEPENDS_${PN}-testcontroller = "${PN} lsb ${PN}-pki" 19RDEPENDS_${PN}-testcontroller = "${PN} lsb ${PN}-pki"
20RDEPENDS_${PN}-switch = "${PN} openssl procps util-linux-uuidgen" 20RDEPENDS_${PN}-switch = "${PN} openssl procps util-linux-uuidgen"
21RDEPENDS_${PN}-pki = "${PN}" 21RDEPENDS_${PN}-pki = "${PN}"
@@ -69,7 +69,8 @@ FILES_${PN}-switch = "\
69FILES_${PN} += "${datadir}/ovsdbmonitor" 69FILES_${PN} += "${datadir}/ovsdbmonitor"
70FILES_${PN} += "/run" 70FILES_${PN} += "/run"
71 71
72inherit autotools update-rc.d systemd 72FILES_${PN} += "${libdir}/python${PYTHON_BASEVERSION}/"
73inherit autotools update-rc.d systemd python-dir
73 74
74SYSTEMD_PACKAGES = "${PN}-switch" 75SYSTEMD_PACKAGES = "${PN}-switch"
75SYSTEMD_SERVICE_${PN}-switch = " \ 76SYSTEMD_SERVICE_${PN}-switch = " \
@@ -102,6 +103,8 @@ do_install_append() {
102 ${D}/${systemd_unitdir}/system/openvswitch-nonetwork.service 103 ${D}/${systemd_unitdir}/system/openvswitch-nonetwork.service
103 104
104 oe_runmake modules_install INSTALL_MOD_PATH=${D} 105 oe_runmake modules_install INSTALL_MOD_PATH=${D}
106 install -d ${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages
107 cp -r ${S}/python/ovstest/ ${D}${libdir}/python${PYTHON_BASEVERSION}/site-packages/
105} 108}
106 109
107pkg_postinst_${PN}-pki () { 110pkg_postinst_${PN}-pki () {