diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-11-07 13:31:53 +0000 |
| commit | 8c22ff0d8b70d9b12f0487ef696a7e915b9e3173 (patch) | |
| tree | efdc32587159d0050a69009bdf2330a531727d95 /meta/recipes-devtools/python/python3-cffi | |
| parent | d412d2747595c1cc4a5e3ca975e3adc31b2f7891 (diff) | |
| download | poky-8c22ff0d8b70d9b12f0487ef696a7e915b9e3173.tar.gz | |
The poky repository master branch is no longer being updated.
You can either:
a) switch to individual clones of bitbake, openembedded-core, meta-yocto and yocto-docs
b) use the new bitbake-setup
You can find information about either approach in our documentation:
https://docs.yoctoproject.org/
Note that "poky" the distro setting is still available in meta-yocto as
before and we continue to use and maintain that.
Long live Poky!
Some further information on the background of this change can be found
in: https://lists.openembedded.org/g/openembedded-architecture/message/2179
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3-cffi')
| -rw-r--r-- | meta/recipes-devtools/python/python3-cffi/0001-Cast-offset-to-size_t-to-avoid-c-11-narrowing-warnin.patch | 34 | ||||
| -rw-r--r-- | meta/recipes-devtools/python/python3-cffi/run-ptest | 7 |
2 files changed, 0 insertions, 41 deletions
diff --git a/meta/recipes-devtools/python/python3-cffi/0001-Cast-offset-to-size_t-to-avoid-c-11-narrowing-warnin.patch b/meta/recipes-devtools/python/python3-cffi/0001-Cast-offset-to-size_t-to-avoid-c-11-narrowing-warnin.patch deleted file mode 100644 index a919f4f6fb..0000000000 --- a/meta/recipes-devtools/python/python3-cffi/0001-Cast-offset-to-size_t-to-avoid-c-11-narrowing-warnin.patch +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | From 2ac63f8765e62f1492ef3ee06791636700bc6cfb Mon Sep 17 00:00:00 2001 | ||
| 2 | From: triallax <triallax@tutanota.com> | ||
| 3 | Date: Sat, 29 Jun 2024 15:25:24 +0100 | ||
| 4 | Subject: [PATCH] Cast offset to size_t to avoid c++11-narrowing warning (#92) | ||
| 5 | |||
| 6 | e.g. with clang 18 on chimera linux: | ||
| 7 | |||
| 8 | _CFFI_test_verify_anonymous_struct_with_star_typedef.cpp:583:10: error: non-constant-expression cannot be narrowed from type 'long' to 'size_t' (aka 'unsigned long') in initializer list [-Wc++11-narrowing] | ||
| 9 | 583 | { "a", ((char *)&((foo_t)4096)->a) - (char *)4096, | ||
| 10 | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 11 | _CFFI_test_verify_anonymous_struct_with_star_typedef.cpp:583:10: note: insert an explicit cast to silence this issue | ||
| 12 | 583 | { "a", ((char *)&((foo_t)4096)->a) - (char *)4096, | ||
| 13 | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 14 | | static_cast<size_t>( ) | ||
| 15 | |||
| 16 | Upstream-Status: Backport [https://github.com/python-cffi/cffi/pull/92] | ||
| 17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 18 | --- | ||
| 19 | src/cffi/recompiler.py | 2 +- | ||
| 20 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 21 | |||
| 22 | diff --git a/src/cffi/recompiler.py b/src/cffi/recompiler.py | ||
| 23 | index ac6c163e..14d578ee 100644 | ||
| 24 | --- a/src/cffi/recompiler.py | ||
| 25 | +++ b/src/cffi/recompiler.py | ||
| 26 | @@ -953,7 +953,7 @@ class Recompiler: | ||
| 27 | if cname is None or fbitsize >= 0: | ||
| 28 | offset = '(size_t)-1' | ||
| 29 | elif named_ptr is not None: | ||
| 30 | - offset = '((char *)&((%s)4096)->%s) - (char *)4096' % ( | ||
| 31 | + offset = '(size_t)(((char *)&((%s)4096)->%s) - (char *)4096)' % ( | ||
| 32 | named_ptr.name, fldname) | ||
| 33 | else: | ||
| 34 | offset = 'offsetof(%s, %s)' % (tp.get_c_name(''), fldname) | ||
diff --git a/meta/recipes-devtools/python/python3-cffi/run-ptest b/meta/recipes-devtools/python/python3-cffi/run-ptest deleted file mode 100644 index 24ee6f2156..0000000000 --- a/meta/recipes-devtools/python/python3-cffi/run-ptest +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # test_passing_large_list often causes an OOM, skip for now | ||
| 4 | |||
| 5 | # test_version verifies that versions match across the source tree, ignore | ||
| 6 | # as we don't have a source tree | ||
| 7 | pytest --automake -k 'not test_passing_large_list and not test_version' | ||
