summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python3_3.13.0.bb
diff options
context:
space:
mode:
authorJörg Sommer <joerg.sommer@navimatix.de>2024-11-22 15:39:27 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-23 14:44:54 +0000
commit509316876fa0934239e74b36c0ba3ff94b4ecc7b (patch)
tree36cf37c27c32e24bc17edc17e598e6d6e8c9246d /meta/recipes-devtools/python/python3_3.13.0.bb
parentb2e64adf18e05177858322e3eb21b79ffc73af5e (diff)
downloadpoky-509316876fa0934239e74b36c0ba3ff94b4ecc7b.tar.gz
python3-ctypes: depend on ldconfig only if distro-feature set
In the source code is only usage of ldconfig (for Linux) in Lib/ctypes/util.py:301. This is wrapped in try-execpt which causes _findSoname_ldconfig return Nothing. This is handled properly in find_library and other methods to find the library a tried. So, the code can handle the case of a missing /sbin/ldconfig (BTW: hard-coded path). When DISTRO_FEATURES does not contain ldconfig some other services (Systemd) to setup and maintain the ldconfig.cache are not installed. Hence, this ldconfig pulled in by the ctype dependency is of no use. Therefore, do not set the dependency on ldconfig, if the distro-feature is not set. (From OE-Core rev: 7394c006bffab2f41965d87c8083647621a67f50) Signed-off-by: Jörg Sommer <joerg.sommer@navimatix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python/python3_3.13.0.bb')
-rw-r--r--meta/recipes-devtools/python/python3_3.13.0.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-devtools/python/python3_3.13.0.bb b/meta/recipes-devtools/python/python3_3.13.0.bb
index 54742f5257..8db5b81373 100644
--- a/meta/recipes-devtools/python/python3_3.13.0.bb
+++ b/meta/recipes-devtools/python/python3_3.13.0.bb
@@ -461,7 +461,9 @@ FILES:${PN}-man = "${datadir}/man"
461 461
462# See https://bugs.python.org/issue18748 and https://bugs.python.org/issue37395 462# See https://bugs.python.org/issue18748 and https://bugs.python.org/issue37395
463RDEPENDS:libpython3:append:libc-glibc = " libgcc" 463RDEPENDS:libpython3:append:libc-glibc = " libgcc"
464RDEPENDS:${PN}-ctypes:append:libc-glibc = " ${MLPREFIX}ldconfig" 464RDEPENDS:${PN}-ctypes:append:libc-glibc = "\
465 ${@bb.utils.contains('DISTRO_FEATURES', 'ldconfig', '${MLPREFIX}ldconfig', '', d)} \
466"
465RDEPENDS:${PN}-ptest = "${PN}-modules ${PN}-tests ${PN}-dev ${PN}-zipapp unzip bzip2 libgcc tzdata coreutils sed gcc g++ binutils \ 467RDEPENDS:${PN}-ptest = "${PN}-modules ${PN}-tests ${PN}-dev ${PN}-zipapp unzip bzip2 libgcc tzdata coreutils sed gcc g++ binutils \
466 locale-base-fr-fr locale-base-en-us locale-base-de-de" 468 locale-base-fr-fr locale-base-en-us locale-base-de-de"
467RDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-tr-tr" 469RDEPENDS:${PN}-ptest:append:libc-glibc = " locale-base-tr-tr"