diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2022-12-13 12:11:17 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-18 19:48:00 +0000 |
commit | f0ab429ca3b01a6bac64154a1e5d428b3dede234 (patch) | |
tree | cf48cacaf55ae7cf981619cd77006022603cdd9c /meta | |
parent | 0fcbd7e06620daa885f2ed6a90d283cd8f32ae58 (diff) | |
download | poky-f0ab429ca3b01a6bac64154a1e5d428b3dede234.tar.gz |
systemtap: upgrade 4.7 -> 4.8
(From OE-Core rev: e36500d0cd980c27ceecb0aec6d76b10ed6e2f2f)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-kernel/systemtap/systemtap/python-3.11.patch | 37 | ||||
-rw-r--r-- | meta/recipes-kernel/systemtap/systemtap_git.inc | 5 |
2 files changed, 2 insertions, 40 deletions
diff --git a/meta/recipes-kernel/systemtap/systemtap/python-3.11.patch b/meta/recipes-kernel/systemtap/systemtap/python-3.11.patch deleted file mode 100644 index 6e0c97b8d6..0000000000 --- a/meta/recipes-kernel/systemtap/systemtap/python-3.11.patch +++ /dev/null | |||
@@ -1,37 +0,0 @@ | |||
1 | From 069e109c95d1afca17cd3781b39f220cf8b39978 Mon Sep 17 00:00:00 2001 | ||
2 | From: Stan Cox <scox@redhat.com> | ||
3 | Date: Wed, 13 Jul 2022 09:49:51 -0400 | ||
4 | Subject: [PATCH 1/1] python 3.11 removed direct access to PyFrameObject | ||
5 | members | ||
6 | |||
7 | Take into account the change in PyFrameObject definition to allow | ||
8 | building systemtap with python 3.11. Additional support for python | ||
9 | 3.11 is forthcoming. | ||
10 | |||
11 | Upstream-Status: Backport [https://sourceware.org/git/?p=systemtap.git;a=commit;h=069e109c95d1afca17cd3781b39f220cf8b39978] | ||
12 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
13 | --- | ||
14 | python/HelperSDT/_HelperSDT.c | 6 ++++++ | ||
15 | 1 file changed, 6 insertions(+) | ||
16 | |||
17 | diff --git a/python/HelperSDT/_HelperSDT.c b/python/HelperSDT/_HelperSDT.c | ||
18 | index 967cb6077..4d287132e 100644 | ||
19 | --- a/python/HelperSDT/_HelperSDT.c | ||
20 | +++ b/python/HelperSDT/_HelperSDT.c | ||
21 | @@ -14,7 +14,13 @@ | ||
22 | // PR25841: ensure that the libHelperSDT.so file contains debuginfo | ||
23 | // for the tapset helper functions, so they don't have to look into libpython* | ||
24 | #include <frameobject.h> | ||
25 | +// python 3.11 removed direct access to PyFrameObject members | ||
26 | +// https://docs.python.org/3.11/whatsnew/3.11.html#c-api-changes | ||
27 | +#if PY_MAJOR_VERSION <= 3 && PY_MINOR_VERSION < 11 | ||
28 | PyFrameObject _dummy_frame; | ||
29 | +#else | ||
30 | +//PyFrameObject *_dummy_frame; | ||
31 | +#endif | ||
32 | #include <object.h> | ||
33 | PyVarObject _dummy_var; | ||
34 | #include <dictobject.h> | ||
35 | -- | ||
36 | 2.31.1 | ||
37 | |||
diff --git a/meta/recipes-kernel/systemtap/systemtap_git.inc b/meta/recipes-kernel/systemtap/systemtap_git.inc index b05a5a2b0d..d309a89496 100644 --- a/meta/recipes-kernel/systemtap/systemtap_git.inc +++ b/meta/recipes-kernel/systemtap/systemtap_git.inc | |||
@@ -1,13 +1,12 @@ | |||
1 | LICENSE = "GPL-2.0-only" | 1 | LICENSE = "GPL-2.0-only" |
2 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | 2 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
3 | SRCREV = "0c335a75a789ff44b514e567d458881e15cc283d" | 3 | SRCREV = "b176afb2e49119ef844d193d27b0752a6d84fe8f" |
4 | PV = "4.7" | 4 | PV = "4.8" |
5 | 5 | ||
6 | SRC_URI = "git://sourceware.org/git/systemtap.git;branch=master \ | 6 | SRC_URI = "git://sourceware.org/git/systemtap.git;branch=master \ |
7 | file://0001-Do-not-let-configure-write-a-python-location-into-th.patch \ | 7 | file://0001-Do-not-let-configure-write-a-python-location-into-th.patch \ |
8 | file://0001-Install-python-modules-to-correct-library-dir.patch \ | 8 | file://0001-Install-python-modules-to-correct-library-dir.patch \ |
9 | file://0001-staprun-stapbpf-don-t-support-installing-a-non-root.patch \ | 9 | file://0001-staprun-stapbpf-don-t-support-installing-a-non-root.patch \ |
10 | file://python-3.11.patch \ | ||
11 | " | 10 | " |
12 | 11 | ||
13 | COMPATIBLE_HOST = '(x86_64|i.86|powerpc|arm|aarch64|microblazeel|mips|riscv64).*-linux' | 12 | COMPATIBLE_HOST = '(x86_64|i.86|powerpc|arm|aarch64|microblazeel|mips|riscv64).*-linux' |