diff mbox series

python3-cffi: Add clang to the ptest dependencies with clang toolchain

Message ID 20261127030614.3102907-1-khem.raj@oss.qualcomm.com
State New
Headers show
Series python3-cffi: Add clang to the ptest dependencies with clang toolchain | expand

Commit Message

Khem Raj Nov. 27, 2026, 3:06 a.m. UTC
The ptests compile C code with the compiler that the target python3
sysconfig names. With TOOLCHAIN = "clang" that is ${TARGET_PREFIX}clang,
which the image does not have, since the ptest only pulls in
gcc-symlinks:

  FileNotFoundError: [Errno 2] No such file or directory: 'x86_64-yoe-linux-clang'

Add clang for the clang toolchain, as packagegroup-core-buildessential
does.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 meta/recipes-devtools/python/python3-cffi_2.1.1.bb | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/meta/recipes-devtools/python/python3-cffi_2.1.1.bb b/meta/recipes-devtools/python/python3-cffi_2.1.1.bb
index 6166d644b4..919d4e8cf0 100644
--- a/meta/recipes-devtools/python/python3-cffi_2.1.1.bb
+++ b/meta/recipes-devtools/python/python3-cffi_2.1.1.bb
@@ -32,6 +32,7 @@  RDEPENDS:${PN}-ptest += " \
     gcc-symlinks \
     g++-symlinks \
 "
+RDEPENDS:${PN}-ptest:append:toolchain-clang = " clang"
 
 INSANE_SKIP:${PN}-ptest = "dev-deps"