mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00
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>
This commit is contained in:
parent
42af8a171b
commit
aeb1763981
|
@ -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 () {
|
||||
|
|
Loading…
Reference in New Issue
Block a user