diff options
author | Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com> | 2016-08-09 23:27:57 +0530 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2016-08-16 15:03:55 -0400 |
commit | aeb17639818d973bf39982c7379d080f15bbcfe0 (patch) | |
tree | 9db32757350b9323c88777cad7070c2df459bb8c /recipes-networking | |
parent | 42af8a171b6674035559f76488f09ff7bba402b4 (diff) | |
download | meta-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.inc | 7 |
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 | ||
16 | RDEPENDS_${PN} += "util-linux-uuidgen util-linux-libuuid coreutils \ | 16 | RDEPENDS_${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" |
19 | RDEPENDS_${PN}-testcontroller = "${PN} lsb ${PN}-pki" | 19 | RDEPENDS_${PN}-testcontroller = "${PN} lsb ${PN}-pki" |
20 | RDEPENDS_${PN}-switch = "${PN} openssl procps util-linux-uuidgen" | 20 | RDEPENDS_${PN}-switch = "${PN} openssl procps util-linux-uuidgen" |
21 | RDEPENDS_${PN}-pki = "${PN}" | 21 | RDEPENDS_${PN}-pki = "${PN}" |
@@ -69,7 +69,8 @@ FILES_${PN}-switch = "\ | |||
69 | FILES_${PN} += "${datadir}/ovsdbmonitor" | 69 | FILES_${PN} += "${datadir}/ovsdbmonitor" |
70 | FILES_${PN} += "/run" | 70 | FILES_${PN} += "/run" |
71 | 71 | ||
72 | inherit autotools update-rc.d systemd | 72 | FILES_${PN} += "${libdir}/python${PYTHON_BASEVERSION}/" |
73 | inherit autotools update-rc.d systemd python-dir | ||
73 | 74 | ||
74 | SYSTEMD_PACKAGES = "${PN}-switch" | 75 | SYSTEMD_PACKAGES = "${PN}-switch" |
75 | SYSTEMD_SERVICE_${PN}-switch = " \ | 76 | SYSTEMD_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 | ||
107 | pkg_postinst_${PN}-pki () { | 110 | pkg_postinst_${PN}-pki () { |