openembedded-devel.lists.openembedded.org archive mirror
 help / color / mirror / Atom feed
From: wangmy@fujitsu.com
To: openembedded-devel@lists.openembedded.org
Cc: Wang Mingyu <wangmy@fujitsu.com>
Subject: [oe] [meta-python] [PATCH] python3-lru-dict: upgrade 1.1.8 -> 1.2.0
Date: Wed, 31 May 2023 15:40:14 +0800	[thread overview]
Message-ID: <1685518820-20028-16-git-send-email-wangmy@fujitsu.com> (raw)
In-Reply-To: <1685518820-20028-1-git-send-email-wangmy@fujitsu.com>

From: Wang Mingyu <wangmy@fujitsu.com>

0001-lru-Use-PyCFunction-instead-of-PyCFunctionWithKeywor.patch
removed since it's included in 1.2.0

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
---
 ...ion-instead-of-PyCFunctionWithKeywor.patch | 37 -------------------
 ...ict_1.1.8.bb => python3-lru-dict_1.2.0.bb} |  4 +-
 2 files changed, 2 insertions(+), 39 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-lru-dict/0001-lru-Use-PyCFunction-instead-of-PyCFunctionWithKeywor.patch
 rename meta-python/recipes-devtools/python/{python3-lru-dict_1.1.8.bb => python3-lru-dict_1.2.0.bb} (64%)

diff --git a/meta-python/recipes-devtools/python/python3-lru-dict/0001-lru-Use-PyCFunction-instead-of-PyCFunctionWithKeywor.patch b/meta-python/recipes-devtools/python/python3-lru-dict/0001-lru-Use-PyCFunction-instead-of-PyCFunctionWithKeywor.patch
deleted file mode 100644
index b93d1594d..000000000
--- a/meta-python/recipes-devtools/python/python3-lru-dict/0001-lru-Use-PyCFunction-instead-of-PyCFunctionWithKeywor.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-From 5013406c409a0a143a315146df388281bfb2172d Mon Sep 17 00:00:00 2001
-From: Khem Raj <raj.khem@gmail.com>
-Date: Wed, 1 Mar 2023 19:53:36 -0800
-Subject: [PATCH] lru: Use PyCFunction instead of PyCFunctionWithKeywords
-
-PyMethodDef uses PyMethodDef and not PyCFunctionWithKeywords and when
-callback is specified as PyCFunctionWithKeywords, clang 16+ is able to
-detect function signature mismatch in function pointers now.
-
-Fixes
-lru.c:629:17: error: incompatible function pointer types initializing 'PyCFunction' (aka 'struct _object *(*)(struct _object *, struct _object *)') with an expression of type 'PyCFunctionWithKeywords' (aka 'struct _object *(*)(struct _object *, struct _object *, struct _object *)') [-Wincompatible-function-pointer-types]
-    {"popitem", (PyCFunctionWithKeywords)LRU_popitem, METH_VARARGS | METH_KEYWORDS,
-                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-1 error generated.
-
-Upstream-Status: Submitted [https://github.com/amitdev/lru-dict/pull/45]
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
----
- lru.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/lru.c b/lru.c
-index 8adcb4b..33c18ab 100644
---- a/lru.c
-+++ b/lru.c
-@@ -626,7 +626,7 @@ static PyMethodDef LRU_methods[] = {
-                     PyDoc_STR("L.setdefault(key, default=None) -> If L has key return its value, otherwise insert key with a value of default and return default")},
-     {"pop", (PyCFunction)LRU_pop, METH_VARARGS,
-                     PyDoc_STR("L.pop(key[, default]) -> If L has key return its value and remove it from L, otherwise return default. If default is not given and key is not in L, a KeyError is raised.")},
--    {"popitem", (PyCFunctionWithKeywords)LRU_popitem, METH_VARARGS | METH_KEYWORDS,
-+    {"popitem", (PyCFunction)LRU_popitem, METH_VARARGS | METH_KEYWORDS,
-                     PyDoc_STR("L.popitem([least_recent=True]) -> Returns and removes a (key, value) pair. The pair returned is the least-recently used if least_recent is true, or the most-recently used if false.")},
-     {"set_size", (PyCFunction)LRU_set_size, METH_VARARGS,
-                     PyDoc_STR("L.set_size() -> set size of LRU")},
--- 
-2.39.2
-
diff --git a/meta-python/recipes-devtools/python/python3-lru-dict_1.1.8.bb b/meta-python/recipes-devtools/python/python3-lru-dict_1.2.0.bb
similarity index 64%
rename from meta-python/recipes-devtools/python/python3-lru-dict_1.1.8.bb
rename to meta-python/recipes-devtools/python/python3-lru-dict_1.2.0.bb
index e825e43df..7a3a17274 100644
--- a/meta-python/recipes-devtools/python/python3-lru-dict_1.1.8.bb
+++ b/meta-python/recipes-devtools/python/python3-lru-dict_1.2.0.bb
@@ -4,8 +4,8 @@ SECTION = "devel/python"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=9d10a486ee04034fdef5162fd791f153"
 
-SRC_URI[sha256sum] = "878bc8ef4073e5cfb953dfc1cf4585db41e8b814c0106abde34d00ee0d0b3115"
+SRC_URI[sha256sum] = "13c56782f19d68ddf4d8db0170041192859616514c706b126d0df2ec72a11bd7"
 
 inherit pypi setuptools3
 
-SRC_URI += "file://0001-lru-Use-PyCFunction-instead-of-PyCFunctionWithKeywor.patch"
+SRC_URI += "${PYPI_SRC_URI}"
-- 
2.34.1



  parent reply	other threads:[~2023-05-31  7:40 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-31  7:39 [oe] [meta-oe] [PATCH] ctags: upgrade 6.0.20230521.0 -> 6.0.20230528.0 wangmy
2023-05-31  7:40 ` [oe] [meta-gnome] [PATCH] eog: upgrade 44.1 -> 44.2 wangmy
2023-05-31  7:40 ` [oe] [meta-gnome] [PATCH] nautilus: " wangmy
2023-05-31  7:40 ` [oe] [meta-gnome] [PATCH] evolution-data-server: upgrade 3.48.1 -> 3.48.2 wangmy
2023-05-31  7:40 ` [oe] [meta-oe] [PATCH] flatbuffers: upgrade 23.1.4 -> 23.3.56 wangmy
2023-05-31  7:40 ` [oe] [meta-python] [PATCH] python3-asgiref: upgrade 3.7.1 -> 3.7.2 wangmy
2023-05-31  7:40 ` [oe] [meta-python] [PATCH] python3-bitarray: upgrade 2.7.3 -> 2.7.4 wangmy
2023-05-31  7:40 ` [oe] [meta-python] [PATCH] python3-cachetools: upgrade 5.3.0 -> 5.3.1 wangmy
2023-05-31  7:40 ` [oe] [meta-python] [PATCH] python3-coverage: upgrade 7.2.6 -> 7.2.7 wangmy
2023-05-31  7:40 ` [oe] [meta-python] [PATCH] python3-croniter: upgrade 1.3.14 -> 1.3.15 wangmy
2023-05-31  7:40 ` [oe] [meta-python] [PATCH] python3-deprecated: upgrade 1.2.13 -> 1.2.14 wangmy
2023-05-31  7:40 ` [oe] [meta-python] [PATCH] python3-google-api-python-client: upgrade 2.86.0 -> 2.87.0 wangmy
2023-05-31  7:40 ` [oe] [meta-python] [PATCH] python3-google-auth: upgrade 2.18.1 -> 2.19.0 wangmy
2023-05-31  7:40 ` [oe] [meta-python] [PATCH] python3-imageio: upgrade 2.29.0 -> 2.30.0 wangmy
2023-05-31  7:40 ` [oe] [meta-python] [PATCH] python3-license-expression: upgrade 30.1.0 -> 30.1.1 wangmy
2023-05-31  7:40 ` wangmy [this message]
2023-05-31  7:40 ` [oe] [meta-python] [PATCH] python3-paramiko: upgrade 3.1.0 -> 3.2.0 wangmy
2023-05-31  7:40 ` [oe] [meta-python] [PATCH] python3-pint: upgrade 0.21 -> 0.22 wangmy
2023-05-31  7:40 ` [oe] [meta-python] [PATCH] python3-protobuf: upgrade 4.23.1 -> 4.23.2 wangmy
2023-05-31  7:40 ` [oe] [meta-python] [PATCH] python3-xlsxwriter: upgrade 3.1.1 -> 3.1.2 wangmy
2023-05-31  7:40 ` [oe] [meta-python] [PATCH] python3-zeroconf: upgrade 0.62.0 -> 0.63.0 wangmy
2023-05-31  7:40 ` [oe] [meta-oe] [PATCH] xterm: upgrade 380 -> 381 wangmy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1685518820-20028-16-git-send-email-wangmy@fujitsu.com \
    --to=wangmy@fujitsu.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).