]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
python3: update python3-ctypes RDEPENDS to RRECOMMENDS
authorChangqing Li <changqing.li@windriver.com>
Mon, 3 Mar 2025 07:25:04 +0000 (15:25 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 3 Mar 2025 18:01:15 +0000 (18:01 +0000)
ctypes.util.find_library depend on run external programs(ldconfig, gcc,
objdump or ld) to get the pathname, if none of above are installed, None
is returned.  Previously, RDEPENDS to ldconfig is added to ensure it
always work when installed.

This commit change it to RRECOMMENDS, this allows user who don't use
function find_library could remove ldconfig from image by
PACKAGE_EXCLUDE

Refer:
https://docs.python.org/3/library/ctypes.html

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3_3.13.2.bb

index 2010f6b7d14afba6378a1c7c4643a9268d7d31cd..7c36fd92ed73c51157e0af83d3d88b47384c6fb5 100644 (file)
@@ -477,7 +477,7 @@ FILES:${PN}-man = "${datadir}/man"
 
 # See https://bugs.python.org/issue18748 and https://bugs.python.org/issue37395
 RDEPENDS:libpython3:append:libc-glibc = " libgcc"
-RDEPENDS:${PN}-ctypes:append:libc-glibc = " ${MLPREFIX}ldconfig"
+RRECOMMENDS:${PN}-ctypes:append:libc-glibc = " ${MLPREFIX}ldconfig"
 RDEPENDS:${PN}-ptest = "\
     ${PN}-dev \
     ${PN}-modules \