From 375e59bfb4d610f89dd04c93f912d5847a5fac4f Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Mon, 12 Aug 2024 21:18:52 -0700 Subject: [PATCH] python3-cffi: upgrade 1.16.0 -> 1.17.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit https://github.com/python-cffi/cffi/compare/v1.17.0...v1.16.0 https://cffi.readthedocs.io/en/latest/whatsnew.html#v1-17 v1.17 * In API mode, when you get a function from a C library by writing fn = lib.myfunc, you get an object of a special type for performance reasons, instead of a . Before version 1.17 you could only call such objects. You could write ffi.addressof(lib, “myfunc”) in order to get a real object, based on the idea that in these cases in C you’d usually write &myfunc instead of myfunc. In version 1.17, the special object lib.myfunc can now be passed in many places where CFFI expects a regular object. For example, you can now pass it as a callback to a C function call, or write it inside a C structure field of the correct pointer-to-function type, or use ffi.cast() or ffi.typeof() on it. Signed-off-by: Tim Orling Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- .../python/{python3-cffi_1.16.0.bb => python3-cffi_1.17.0.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename meta/recipes-devtools/python/{python3-cffi_1.16.0.bb => python3-cffi_1.17.0.bb} (91%) diff --git a/meta/recipes-devtools/python/python3-cffi_1.16.0.bb b/meta/recipes-devtools/python/python3-cffi_1.17.0.bb similarity index 91% rename from meta/recipes-devtools/python/python3-cffi_1.16.0.bb rename to meta/recipes-devtools/python/python3-cffi_1.17.0.bb index e740ef45be6..28200f9b431 100644 --- a/meta/recipes-devtools/python/python3-cffi_1.16.0.bb +++ b/meta/recipes-devtools/python/python3-cffi_1.17.0.bb @@ -4,7 +4,7 @@ LICENSE = "MIT" LIC_FILES_CHKSUM = "file://LICENSE;md5=5677e2fdbf7cdda61d6dd2b57df547bf" DEPENDS += "libffi python3-pycparser" -SRC_URI[sha256sum] = "bcb3ef43e58665bbda2fb198698fcae6776483e0c4a631aa5647806c25e02cc0" +SRC_URI[sha256sum] = "f3157624b7558b914cb039fd1af735e5e8049a87c817cc215109ad1c8779df76" SRC_URI += "file://run-ptest" -- 2.47.3