diff options
| author | Khem Raj <raj.khem@gmail.com> | 2023-01-17 08:28:30 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2023-01-17 08:29:36 -0800 |
| commit | b75067567ed44f21835cdd38105ee1d2332c626f (patch) | |
| tree | bb85d2d314d81478401df661697010e85bf899ec /meta-python/recipes-devtools/python | |
| parent | 8d64fcc825cbe3579b91cab5b32b2a01327021de (diff) | |
| download | meta-openembedded-b75067567ed44f21835cdd38105ee1d2332c626f.tar.gz | |
python3-greenlet: Drop using register keyword
Its gone in modern C/C++ since c++17
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-greenlet/0001-greenlet-Drop-using-register-storage-class-keyword.patch | 31 | ||||
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-greenlet_2.0.1.bb | 2 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-greenlet/0001-greenlet-Drop-using-register-storage-class-keyword.patch b/meta-python/recipes-devtools/python/python3-greenlet/0001-greenlet-Drop-using-register-storage-class-keyword.patch new file mode 100644 index 0000000000..5abe59279f --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-greenlet/0001-greenlet-Drop-using-register-storage-class-keyword.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | From aa505359a3bb5a954fe3c7fbd853c75802bf3533 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Khem Raj <raj.khem@gmail.com> | ||
| 3 | Date: Mon, 16 Jan 2023 21:37:26 -0800 | ||
| 4 | Subject: [PATCH] greenlet: Drop using 'register' storage class keyword | ||
| 5 | |||
| 6 | This has been dropped in c++17 and newer | ||
| 7 | |||
| 8 | Upstream-Status: Submitted [https://github.com/python-greenlet/greenlet/pull/336] | ||
| 9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 10 | --- | ||
| 11 | src/greenlet/platform/switch_riscv_unix.h | 4 ++-- | ||
| 12 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
| 13 | |||
| 14 | diff --git a/src/greenlet/platform/switch_riscv_unix.h b/src/greenlet/platform/switch_riscv_unix.h | ||
| 15 | index 5b5ea98..24df9db 100644 | ||
| 16 | --- a/src/greenlet/platform/switch_riscv_unix.h | ||
| 17 | +++ b/src/greenlet/platform/switch_riscv_unix.h | ||
| 18 | @@ -11,8 +11,8 @@ | ||
| 19 | static int | ||
| 20 | slp_switch(void) | ||
| 21 | { | ||
| 22 | - register int ret; | ||
| 23 | - register long *stackref, stsizediff; | ||
| 24 | + int ret; | ||
| 25 | + long *stackref, stsizediff; | ||
| 26 | __asm__ volatile ("" : : : REGS_TO_SAVE); | ||
| 27 | __asm__ volatile ("mv %0, sp" : "=r" (stackref) : ); | ||
| 28 | { | ||
| 29 | -- | ||
| 30 | 2.39.0 | ||
| 31 | |||
diff --git a/meta-python/recipes-devtools/python/python3-greenlet_2.0.1.bb b/meta-python/recipes-devtools/python/python3-greenlet_2.0.1.bb index 629d9d359f..4a50a24184 100644 --- a/meta-python/recipes-devtools/python/python3-greenlet_2.0.1.bb +++ b/meta-python/recipes-devtools/python/python3-greenlet_2.0.1.bb | |||
| @@ -4,6 +4,8 @@ LICENSE = "MIT & PSF-2.0" | |||
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e95668d68e4329085c7ab3535e6a7aee \ | 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e95668d68e4329085c7ab3535e6a7aee \ |
| 5 | file://LICENSE.PSF;md5=c106931d9429eda0492617f037b8f69a" | 5 | file://LICENSE.PSF;md5=c106931d9429eda0492617f037b8f69a" |
| 6 | 6 | ||
| 7 | SRC_URI += "file://0001-greenlet-Drop-using-register-storage-class-keyword.patch" | ||
| 8 | |||
| 7 | SRC_URI[sha256sum] = "42e602564460da0e8ee67cb6d7236363ee5e131aa15943b6670e44e5c2ed0f67" | 9 | SRC_URI[sha256sum] = "42e602564460da0e8ee67cb6d7236363ee5e131aa15943b6670e44e5c2ed0f67" |
| 8 | 10 | ||
| 9 | inherit pypi setuptools3 | 11 | inherit pypi setuptools3 |
