* [PATCH] openvswitch: ptest: Fix python path
@ 2016-04-19 4:34 zhe.he
2016-04-20 20:46 ` Bruce Ashfield
0 siblings, 1 reply; 4+ messages in thread
From: zhe.he @ 2016-04-19 4:34 UTC (permalink / raw)
To: meta-virtualization
From: He Zhe <zhe.he@windriver.com>
Set PYTHON to TARGET_PYTHON for running on target
Signed-off-by: He Zhe <zhe.he@windriver.com>
---
.../openvswitch-ptest-Fix-python-path.patch | 30 ++++++++++++++++++++++
recipes-networking/openvswitch/openvswitch_git.bb | 1 +
2 files changed, 31 insertions(+)
create mode 100644 recipes-networking/openvswitch/openvswitch-git/openvswitch-ptest-Fix-python-path.patch
diff --git a/recipes-networking/openvswitch/openvswitch-git/openvswitch-ptest-Fix-python-path.patch b/recipes-networking/openvswitch/openvswitch-git/openvswitch-ptest-Fix-python-path.patch
new file mode 100644
index 0000000..c75ebc5
--- /dev/null
+++ b/recipes-networking/openvswitch/openvswitch-git/openvswitch-ptest-Fix-python-path.patch
@@ -0,0 +1,30 @@
+From 2a78bddb865e0d3377f437428ed6825195af0a14 Mon Sep 17 00:00:00 2001
+From: He Zhe <zhe.he@windriver.com>
+Date: Wed, 13 Apr 2016 03:13:01 -0400
+Subject: [PATCH] openvswitch: ptest: Fix python path
+
+For now PYTHON just happens to be the same as TARGET_PYTHON so we get the right
+python binary. This patch sets PYTHON to TARGET_PYTHON since ptest is going to
+be run on target.
+
+Signed-off-by: He Zhe <zhe.he@windriver.com>
+---
+ tests/atlocal.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/atlocal.in b/tests/atlocal.in
+index 5815c6c..db2d2c9 100644
+--- a/tests/atlocal.in
++++ b/tests/atlocal.in
+@@ -5,7 +5,7 @@ EGREP='@EGREP@'
+ PERL='@PERL@'
+
+ if test x"$PYTHON" = x; then
+- PYTHON='@PYTHON@'
++ PYTHON='@TARGET_PYTHON@'
+ fi
+
+ PYTHONPATH=$abs_top_srcdir/python:$abs_top_builddir/tests:$PYTHONPATH
+--
+1.9.1
+
diff --git a/recipes-networking/openvswitch/openvswitch_git.bb b/recipes-networking/openvswitch/openvswitch_git.bb
index 2f7fe3e..b46d5af 100644
--- a/recipes-networking/openvswitch/openvswitch_git.bb
+++ b/recipes-networking/openvswitch/openvswitch_git.bb
@@ -24,6 +24,7 @@ SRC_URI += "\
file://run-ptest \
file://disable_m4_check.patch \
file://kernel_module.patch \
+ file://openvswitch-ptest-Fix-python-path.patch \
"
LIC_FILES_CHKSUM = "file://COPYING;md5=247d8817aece26b21a8cd6791b3ea994"
--
2.8.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] openvswitch: ptest: Fix python path
2016-04-19 4:34 [PATCH] openvswitch: ptest: Fix python path zhe.he
@ 2016-04-20 20:46 ` Bruce Ashfield
0 siblings, 0 replies; 4+ messages in thread
From: Bruce Ashfield @ 2016-04-20 20:46 UTC (permalink / raw)
To: He Zhe; +Cc: meta-virtualization
[-- Attachment #1: Type: text/plain, Size: 2782 bytes --]
merged.
Bruce
On Tue, Apr 19, 2016 at 12:34 AM, <zhe.he@windriver.com> wrote:
> From: He Zhe <zhe.he@windriver.com>
>
> Set PYTHON to TARGET_PYTHON for running on target
>
> Signed-off-by: He Zhe <zhe.he@windriver.com>
> ---
> .../openvswitch-ptest-Fix-python-path.patch | 30
> ++++++++++++++++++++++
> recipes-networking/openvswitch/openvswitch_git.bb | 1 +
> 2 files changed, 31 insertions(+)
> create mode 100644
> recipes-networking/openvswitch/openvswitch-git/openvswitch-ptest-Fix-python-path.patch
>
> diff --git
> a/recipes-networking/openvswitch/openvswitch-git/openvswitch-ptest-Fix-python-path.patch
> b/recipes-networking/openvswitch/openvswitch-git/openvswitch-ptest-Fix-python-path.patch
> new file mode 100644
> index 0000000..c75ebc5
> --- /dev/null
> +++
> b/recipes-networking/openvswitch/openvswitch-git/openvswitch-ptest-Fix-python-path.patch
> @@ -0,0 +1,30 @@
> +From 2a78bddb865e0d3377f437428ed6825195af0a14 Mon Sep 17 00:00:00 2001
> +From: He Zhe <zhe.he@windriver.com>
> +Date: Wed, 13 Apr 2016 03:13:01 -0400
> +Subject: [PATCH] openvswitch: ptest: Fix python path
> +
> +For now PYTHON just happens to be the same as TARGET_PYTHON so we get the
> right
> +python binary. This patch sets PYTHON to TARGET_PYTHON since ptest is
> going to
> +be run on target.
> +
> +Signed-off-by: He Zhe <zhe.he@windriver.com>
> +---
> + tests/atlocal.in | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/tests/atlocal.in b/tests/atlocal.in
> +index 5815c6c..db2d2c9 100644
> +--- a/tests/atlocal.in
> ++++ b/tests/atlocal.in
> +@@ -5,7 +5,7 @@ EGREP='@EGREP@'
> + PERL='@PERL@'
> +
> + if test x"$PYTHON" = x; then
> +- PYTHON='@PYTHON@'
> ++ PYTHON='@TARGET_PYTHON@'
> + fi
> +
> + PYTHONPATH=$abs_top_srcdir/python:$abs_top_builddir/tests:$PYTHONPATH
> +--
> +1.9.1
> +
> diff --git a/recipes-networking/openvswitch/openvswitch_git.bb
> b/recipes-networking/openvswitch/openvswitch_git.bb
> index 2f7fe3e..b46d5af 100644
> --- a/recipes-networking/openvswitch/openvswitch_git.bb
> +++ b/recipes-networking/openvswitch/openvswitch_git.bb
> @@ -24,6 +24,7 @@ SRC_URI += "\
> file://run-ptest \
> file://disable_m4_check.patch \
> file://kernel_module.patch \
> + file://openvswitch-ptest-Fix-python-path.patch \
> "
>
> LIC_FILES_CHKSUM = "file://COPYING;md5=247d8817aece26b21a8cd6791b3ea994"
> --
> 2.8.1
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@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"
[-- Attachment #2: Type: text/html, Size: 4480 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] openvswitch: ptest: Fix python path
2016-04-18 6:45 zhe.he
@ 2016-04-18 18:18 ` Bruce Ashfield
0 siblings, 0 replies; 4+ messages in thread
From: Bruce Ashfield @ 2016-04-18 18:18 UTC (permalink / raw)
To: He Zhe; +Cc: meta-virtualization
[-- Attachment #1: Type: text/plain, Size: 1250 bytes --]
Looks like the patch to the actual recipe is missing. Can you resend ?
Right now,
there's no way to apply this.
Bruce
On Mon, Apr 18, 2016 at 2:45 AM, <zhe.he@windriver.com> wrote:
> From: He Zhe <zhe.he@windriver.com>
>
> For now PYTHON just happens to be the same as TARGET_PYTHON so we get the
> right
> python binary. This patch sets PYTHON to TARGET_PYTHON since ptest is
> going to
> be run on target.
>
> Signed-off-by: He Zhe <zhe.he@windriver.com>
> ---
> tests/atlocal.in | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/atlocal.in b/tests/atlocal.in
> index 5815c6c..db2d2c9 100644
> --- a/tests/atlocal.in
> +++ b/tests/atlocal.in
> @@ -5,7 +5,7 @@ EGREP='@EGREP@'
> PERL='@PERL@'
>
> if test x"$PYTHON" = x; then
> - PYTHON='@PYTHON@'
> + PYTHON='@TARGET_PYTHON@'
> fi
>
> PYTHONPATH=$abs_top_srcdir/python:$abs_top_builddir/tests:$PYTHONPATH
> --
> 1.9.1
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization@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"
[-- Attachment #2: Type: text/html, Size: 2414 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] openvswitch: ptest: Fix python path
@ 2016-04-18 6:45 zhe.he
2016-04-18 18:18 ` Bruce Ashfield
0 siblings, 1 reply; 4+ messages in thread
From: zhe.he @ 2016-04-18 6:45 UTC (permalink / raw)
To: meta-virtualization
From: He Zhe <zhe.he@windriver.com>
For now PYTHON just happens to be the same as TARGET_PYTHON so we get the right
python binary. This patch sets PYTHON to TARGET_PYTHON since ptest is going to
be run on target.
Signed-off-by: He Zhe <zhe.he@windriver.com>
---
tests/atlocal.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/atlocal.in b/tests/atlocal.in
index 5815c6c..db2d2c9 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -5,7 +5,7 @@ EGREP='@EGREP@'
PERL='@PERL@'
if test x"$PYTHON" = x; then
- PYTHON='@PYTHON@'
+ PYTHON='@TARGET_PYTHON@'
fi
PYTHONPATH=$abs_top_srcdir/python:$abs_top_builddir/tests:$PYTHONPATH
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-04-20 20:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-19 4:34 [PATCH] openvswitch: ptest: Fix python path zhe.he
2016-04-20 20:46 ` Bruce Ashfield
-- strict thread matches above, loose matches on Subject: below --
2016-04-18 6:45 zhe.he
2016-04-18 18:18 ` Bruce Ashfield
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.