All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-virtualization][master][mickledore][PATCH] ovs: fix some installed packages in openvswitch cannot be executed
@ 2023-07-21  9:04 Xiangyu Chen
  2023-07-25 18:58 ` Bruce Ashfield
  0 siblings, 1 reply; 2+ messages in thread
From: Xiangyu Chen @ 2023-07-21  9:04 UTC (permalink / raw)
  To: meta-virtualization

From: Xiangyu Chen <xiangyu.chen@windriver.com>

The variable "PYTHON3" in Makefile.am set as python3, this cause the following scripts error:

/usr/sbin/ovs-bugtool Not found the interpreter python3
/usr/bin/ovs-pcap Not found the interpreter python3
/usr/bin/ovs-test Not found the interpreter python3
/usr/bin/ovs-tcpdump Not found the interpreter python3
/usr/bin/ovs-tcpundump Not found the interpreter python3
/usr/bin/ovs-vlan-test Not found the interpreter python3
/usr/bin/ovs-l3ping Not found the interpreter python3
/usr/bin/ovs-parse-backtrace Not found the interpreter python3
/usr/bin/ovs-dpctl-top Not found the interpreter python3
/usr/share/openvswitch/scripts/ovs-check-dead-ifs Not found the interpreter python3
/usr/share/openvswitch/scripts/ovs-check-dead-ifs Not found the interpreter python3
/usr/share/openvswitch/scripts/ovs-monitor-ipsec Not found the interpreter python3
/usr/share/openvswitch/scripts/ovs-vtep Not found the interpreter python3

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
---
 ...the-python3-interpreter-with-usr-bin.patch | 43 +++++++++++++++++++
 .../openvswitch/openvswitch_git.bb            |  1 +
 2 files changed, 44 insertions(+)
 create mode 100644 recipes-networking/openvswitch/openvswitch-git/Makefile.am-set-the-python3-interpreter-with-usr-bin.patch

diff --git a/recipes-networking/openvswitch/openvswitch-git/Makefile.am-set-the-python3-interpreter-with-usr-bin.patch b/recipes-networking/openvswitch/openvswitch-git/Makefile.am-set-the-python3-interpreter-with-usr-bin.patch
new file mode 100644
index 0000000..472ecb5
--- /dev/null
+++ b/recipes-networking/openvswitch/openvswitch-git/Makefile.am-set-the-python3-interpreter-with-usr-bin.patch
@@ -0,0 +1,43 @@
+From 5053d98f6595653dc02485810fda94348b6e8a1b Mon Sep 17 00:00:00 2001
+From: Xiangyu Chen <xiangyu.chen@windriver.com>
+Date: Fri, 21 Jul 2023 08:47:51 +0000
+Subject: [PATCH] Makefile.am: set the python3 interpreter with /usr/bin/env
+
+The variable "PYTHON3" just python3, this cause the following scripts error:
+/usr/sbin/ovs-bugtool Not found the interpreter python3
+/usr/bin/ovs-pcap Not found the interpreter python3
+/usr/bin/ovs-test Not found the interpreter python3
+/usr/bin/ovs-tcpdump Not found the interpreter python3
+/usr/bin/ovs-tcpundump Not found the interpreter python3
+/usr/bin/ovs-vlan-test Not found the interpreter python3
+/usr/bin/ovs-l3ping Not found the interpreter python3
+/usr/bin/ovs-parse-backtrace Not found the interpreter python3
+/usr/bin/ovs-dpctl-top Not found the interpreter python3
+/usr/share/openvswitch/scripts/ovs-check-dead-ifs Not found the interpreter python3
+/usr/share/openvswitch/scripts/ovs-check-dead-ifs Not found the interpreter python3
+/usr/share/openvswitch/scripts/ovs-monitor-ipsec Not found the interpreter python3
+/usr/share/openvswitch/scripts/ovs-vtep Not found the interpreter python3
+
+Upstream-Status: Inappropriate [embedded specific]
+
+Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
+---
+ Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 28e85d422..031bbf39c 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -154,7 +154,7 @@ SUFFIXES += .in
+ 	    -e 's,[@]PKIDIR[@],$(PKIDIR),g' \
+ 	    -e 's,[@]LOGDIR[@],$(LOGDIR),g' \
+ 	    -e 's,[@]DBDIR[@],$(DBDIR),g' \
+-	    -e 's,[@]PYTHON3[@],$(PYTHON3),g' \
++	    -e 's,[@]PYTHON3[@],/usr/bin/env $(PYTHON3),g' \
+ 	    -e 's,[@]RUNDIR[@],$(RUNDIR),g' \
+ 	    -e 's,[@]VERSION[@],$(VERSION),g' \
+ 	    -e 's,[@]localstatedir[@],$(localstatedir),g' \
+-- 
+2.35.5
+
diff --git a/recipes-networking/openvswitch/openvswitch_git.bb b/recipes-networking/openvswitch/openvswitch_git.bb
index 842ac11..9d3101a 100644
--- a/recipes-networking/openvswitch/openvswitch_git.bb
+++ b/recipes-networking/openvswitch/openvswitch_git.bb
@@ -26,6 +26,7 @@ SRC_URI += "git://github.com/openvswitch/ovs.git;protocol=https;branch=branch-3.
             file://disable_m4_check.patch \
             file://systemd-update-tool-paths.patch \
             file://systemd-create-runtime-dirs.patch \
+            file://Makefile.am-set-the-python3-interpreter-with-usr-bin.patch \
            "
 
 LIC_FILES_CHKSUM = "file://LICENSE;md5=1ce5d23a6429dff345518758f13aaeab"
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [meta-virtualization][master][mickledore][PATCH] ovs: fix some installed packages in openvswitch cannot be executed
  2023-07-21  9:04 [meta-virtualization][master][mickledore][PATCH] ovs: fix some installed packages in openvswitch cannot be executed Xiangyu Chen
@ 2023-07-25 18:58 ` Bruce Ashfield
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce Ashfield @ 2023-07-25 18:58 UTC (permalink / raw)
  To: Xiangyu Chen; +Cc: meta-virtualization

merged.

Bruce

In message: [meta-virtualization][master][mickledore][PATCH] ovs: fix some installed packages in openvswitch cannot be executed
on 21/07/2023 Xiangyu Chen wrote:

> From: Xiangyu Chen <xiangyu.chen@windriver.com>
> 
> The variable "PYTHON3" in Makefile.am set as python3, this cause the following scripts error:
> 
> /usr/sbin/ovs-bugtool Not found the interpreter python3
> /usr/bin/ovs-pcap Not found the interpreter python3
> /usr/bin/ovs-test Not found the interpreter python3
> /usr/bin/ovs-tcpdump Not found the interpreter python3
> /usr/bin/ovs-tcpundump Not found the interpreter python3
> /usr/bin/ovs-vlan-test Not found the interpreter python3
> /usr/bin/ovs-l3ping Not found the interpreter python3
> /usr/bin/ovs-parse-backtrace Not found the interpreter python3
> /usr/bin/ovs-dpctl-top Not found the interpreter python3
> /usr/share/openvswitch/scripts/ovs-check-dead-ifs Not found the interpreter python3
> /usr/share/openvswitch/scripts/ovs-check-dead-ifs Not found the interpreter python3
> /usr/share/openvswitch/scripts/ovs-monitor-ipsec Not found the interpreter python3
> /usr/share/openvswitch/scripts/ovs-vtep Not found the interpreter python3
> 
> Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
> ---
>  ...the-python3-interpreter-with-usr-bin.patch | 43 +++++++++++++++++++
>  .../openvswitch/openvswitch_git.bb            |  1 +
>  2 files changed, 44 insertions(+)
>  create mode 100644 recipes-networking/openvswitch/openvswitch-git/Makefile.am-set-the-python3-interpreter-with-usr-bin.patch
> 
> diff --git a/recipes-networking/openvswitch/openvswitch-git/Makefile.am-set-the-python3-interpreter-with-usr-bin.patch b/recipes-networking/openvswitch/openvswitch-git/Makefile.am-set-the-python3-interpreter-with-usr-bin.patch
> new file mode 100644
> index 0000000..472ecb5
> --- /dev/null
> +++ b/recipes-networking/openvswitch/openvswitch-git/Makefile.am-set-the-python3-interpreter-with-usr-bin.patch
> @@ -0,0 +1,43 @@
> +From 5053d98f6595653dc02485810fda94348b6e8a1b Mon Sep 17 00:00:00 2001
> +From: Xiangyu Chen <xiangyu.chen@windriver.com>
> +Date: Fri, 21 Jul 2023 08:47:51 +0000
> +Subject: [PATCH] Makefile.am: set the python3 interpreter with /usr/bin/env
> +
> +The variable "PYTHON3" just python3, this cause the following scripts error:
> +/usr/sbin/ovs-bugtool Not found the interpreter python3
> +/usr/bin/ovs-pcap Not found the interpreter python3
> +/usr/bin/ovs-test Not found the interpreter python3
> +/usr/bin/ovs-tcpdump Not found the interpreter python3
> +/usr/bin/ovs-tcpundump Not found the interpreter python3
> +/usr/bin/ovs-vlan-test Not found the interpreter python3
> +/usr/bin/ovs-l3ping Not found the interpreter python3
> +/usr/bin/ovs-parse-backtrace Not found the interpreter python3
> +/usr/bin/ovs-dpctl-top Not found the interpreter python3
> +/usr/share/openvswitch/scripts/ovs-check-dead-ifs Not found the interpreter python3
> +/usr/share/openvswitch/scripts/ovs-check-dead-ifs Not found the interpreter python3
> +/usr/share/openvswitch/scripts/ovs-monitor-ipsec Not found the interpreter python3
> +/usr/share/openvswitch/scripts/ovs-vtep Not found the interpreter python3
> +
> +Upstream-Status: Inappropriate [embedded specific]
> +
> +Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
> +---
> + Makefile.am | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/Makefile.am b/Makefile.am
> +index 28e85d422..031bbf39c 100644
> +--- a/Makefile.am
> ++++ b/Makefile.am
> +@@ -154,7 +154,7 @@ SUFFIXES += .in
> + 	    -e 's,[@]PKIDIR[@],$(PKIDIR),g' \
> + 	    -e 's,[@]LOGDIR[@],$(LOGDIR),g' \
> + 	    -e 's,[@]DBDIR[@],$(DBDIR),g' \
> +-	    -e 's,[@]PYTHON3[@],$(PYTHON3),g' \
> ++	    -e 's,[@]PYTHON3[@],/usr/bin/env $(PYTHON3),g' \
> + 	    -e 's,[@]RUNDIR[@],$(RUNDIR),g' \
> + 	    -e 's,[@]VERSION[@],$(VERSION),g' \
> + 	    -e 's,[@]localstatedir[@],$(localstatedir),g' \
> +-- 
> +2.35.5
> +
> diff --git a/recipes-networking/openvswitch/openvswitch_git.bb b/recipes-networking/openvswitch/openvswitch_git.bb
> index 842ac11..9d3101a 100644
> --- a/recipes-networking/openvswitch/openvswitch_git.bb
> +++ b/recipes-networking/openvswitch/openvswitch_git.bb
> @@ -26,6 +26,7 @@ SRC_URI += "git://github.com/openvswitch/ovs.git;protocol=https;branch=branch-3.
>              file://disable_m4_check.patch \
>              file://systemd-update-tool-paths.patch \
>              file://systemd-create-runtime-dirs.patch \
> +            file://Makefile.am-set-the-python3-interpreter-with-usr-bin.patch \
>             "
>  
>  LIC_FILES_CHKSUM = "file://LICENSE;md5=1ce5d23a6429dff345518758f13aaeab"
> -- 
> 2.34.1
> 

> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#8129): https://lists.yoctoproject.org/g/meta-virtualization/message/8129
> Mute This Topic: https://lists.yoctoproject.org/mt/100273524/1050810
> Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
> 



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-07-25 18:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-21  9:04 [meta-virtualization][master][mickledore][PATCH] ovs: fix some installed packages in openvswitch cannot be executed Xiangyu Chen
2023-07-25 18:58 ` 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.