[meta-virtualization] [PATCH] openvswitch: add missing python modules to execute ovs-test program
Bruce Ashfield
bruce.ashfield at gmail.com
Tue Aug 16 12:04:25 PDT 2016
merged.
Bruce
On Tue, Aug 9, 2016 at 1:57 PM, Jagadeesh Krishnanjanappa <
jkrishnanjanappa at mvista.com> wrote:
> ovs-test program requires python-twisted and ovstest python
> modules to execute successfully. The changes fix below
> errors:
>
> -- snip --
> root at 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 at 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 at qemux86:~#
> -- snip --
>
> Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa at mvista.com>
> ---
> recipes-networking/openvswitch/openvswitch.inc | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/recipes-networking/openvswitch/openvswitch.inc
> b/recipes-networking/openvswitch/openvswitch.inc
> index fc515e9..3c70703 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 () {
> --
> 2.7.4
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>
--
"Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-virtualization/attachments/20160816/ef867f03/attachment.html>
More information about the meta-virtualization
mailing list