summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSakib Sajal <sakib.sajal@windriver.com>2023-06-26 17:48:30 -0400
committerSteve Sakoman <steve@sakoman.com>2023-07-04 05:32:29 -1000
commit8bf60de4768c0966577241313da5d99fe10b8489 (patch)
treef2bb9f007c2c7d7c8b0127c1213c495c03313769
parent4b0ff5d615565601d05c8070196fc08611e78f24 (diff)
downloadpoky-8bf60de4768c0966577241313da5d99fe10b8489.tar.gz
bno_plot.py, btt_plot.py: Ask for python3 specifically
python2 has been deprecated, use python3 instead (From OE-Core rev: 055330871b0d8f443d8eded6c0fcc0e404f70b8a) Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-kernel/blktrace/blktrace/0001-bno_plot.py-btt_plot.py-Ask-for-python3-specifically.patch35
-rw-r--r--meta/recipes-kernel/blktrace/blktrace_git.bb4
2 files changed, 38 insertions, 1 deletions
diff --git a/meta/recipes-kernel/blktrace/blktrace/0001-bno_plot.py-btt_plot.py-Ask-for-python3-specifically.patch b/meta/recipes-kernel/blktrace/blktrace/0001-bno_plot.py-btt_plot.py-Ask-for-python3-specifically.patch
new file mode 100644
index 0000000000..a3b8a98589
--- /dev/null
+++ b/meta/recipes-kernel/blktrace/blktrace/0001-bno_plot.py-btt_plot.py-Ask-for-python3-specifically.patch
@@ -0,0 +1,35 @@
1From b8d9618cbbec5a04cf6dede0a6ceda41021b92ae Mon Sep 17 00:00:00 2001
2From: Sakib Sajal <sakib.sajal@windriver.com>
3Date: Mon, 26 Jun 2023 17:34:01 -0400
4Subject: [PATCH] bno_plot.py, btt_plot.py: Ask for python3 specifically
5
6python2 is deprecated, use python3.
7
8Upstream-Status: Denied [https://www.spinics.net/lists/linux-btrace/msg01364.html]
9
10Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
11---
12 btt/bno_plot.py | 2 +-
13 btt/btt_plot.py | 2 +-
14 2 files changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/btt/bno_plot.py b/btt/bno_plot.py
17index 3aa4e19..d7d7159 100644
18--- a/btt/bno_plot.py
19+++ b/btt/bno_plot.py
20@@ -1,4 +1,4 @@
21-#! /usr/bin/env python
22+#! /usr/bin/env python3
23 #
24 # btt blkno plotting interface
25 #
26diff --git a/btt/btt_plot.py b/btt/btt_plot.py
27index 40bc71f..8620d31 100755
28--- a/btt/btt_plot.py
29+++ b/btt/btt_plot.py
30@@ -1,4 +1,4 @@
31-#! /usr/bin/env python
32+#! /usr/bin/env python3
33 #
34 # btt_plot.py: Generate matplotlib plots for BTT generate data files
35 #
diff --git a/meta/recipes-kernel/blktrace/blktrace_git.bb b/meta/recipes-kernel/blktrace/blktrace_git.bb
index d0eeba3208..288784236a 100644
--- a/meta/recipes-kernel/blktrace/blktrace_git.bb
+++ b/meta/recipes-kernel/blktrace/blktrace_git.bb
@@ -14,7 +14,9 @@ SRCREV = "366d30b9cdb20345c5d064af850d686da79b89eb"
14 14
15PV = "1.3.0+git${SRCPV}" 15PV = "1.3.0+git${SRCPV}"
16 16
17SRC_URI = "git://git.kernel.dk/blktrace.git;branch=master;protocol=https" 17SRC_URI = "git://git.kernel.dk/blktrace.git;branch=master;protocol=https \
18 file://0001-bno_plot.py-btt_plot.py-Ask-for-python3-specifically.patch \
19 "
18 20
19S = "${WORKDIR}/git" 21S = "${WORKDIR}/git"
20 22