summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2025-02-20 11:57:24 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-02-25 12:17:22 +0000
commit0df1318e5ce1275b284b00860633ac4fb9627482 (patch)
tree4c90e9ff18dbb515e1c4e90a49ac715c3a85e9b6 /meta/recipes-devtools/python
parent116070ab08021e2d7d3674d69029992ca103f0fd (diff)
downloadpoky-0df1318e5ce1275b284b00860633ac4fb9627482.tar.gz
Revert "python3-ctypes: depend on ldconfig only if distro-feature set"
In oe-core, function ldconfig_postinst_fragment use exist of /sbin/ldconfig to decide if ldconfig is runned to generate the cache, and function _run_ldconfig will run ldconfig to generate cache during generate rootfs. ldconfig.service is actually not used since we have generate ld.so.cache during do_rootfs, refer[1][2][3]. ldconfig dependency is necessary when ldconfig not in DISTRO_FEATURES. The reverted commit causes regression when ldconfig not in DISTRO_FEATURES, before, without ldconfig in DISTRO_FEATURES, ctypes.util.find_library(name) can find the lib if it is installed, now, since ldconfig is not installed, ctypes.util.find_library(name) cannot find the lib even if it is installed. Here is one usecase(gtk+3 lib is installed, ctypes.util.find_library used to find the lib): import wx.lib.wxcairo as wxcairo File "/usr/lib/python3.13/site-packages/wx/lib/wxcairo/{}init{}.py", line 59, in <module> from .wx_cairocffi import _ContextFromDC, _FontFaceFromFont File "/usr/lib/python3.13/site-packages/wx/lib/wxcairo/wx_cairocffi.py", line 189, in <module> gdkLib = _findGDKLib() File "/usr/lib/python3.13/site-packages/wx/lib/wxcairo/wx_cairocffi.py", line 181, in _findGDKLib return _findHelper([libname], 'gdk', "Unable to find the GDK shared library") File "/usr/lib/python3.13/site-packages/wx/lib/wxcairo/wx_cairocffi.py", line 170, in _findHelper raise RuntimeError(msg) RuntimeError: Unable to find the GDK shared library [1] https://git.openembedded.org/openembedded-core/tree/meta/classes-global/package.bbclass#n394 [2] https://git.openembedded.org/openembedded-core/tree/meta/lib/oe/rootfs.py#n316 [3] https://github.com/systemd/systemd-stable/blob/v255-stable/units/ldconfig.service (From OE-Core rev: f98299ec2fa65804ceeff634fa50c8d154e1c153) Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r--meta/recipes-devtools/python/python3_3.13.2.bb4
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/recipes-devtools/python/python3_3.13.2.bb b/meta/recipes-devtools/python/python3_3.13.2.bb
index 96478856b3..2010f6b7d1 100644
--- a/meta/recipes-devtools/python/python3_3.13.2.bb
+++ b/meta/recipes-devtools/python/python3_3.13.2.bb
@@ -477,9 +477,7 @@ FILES:${PN}-man = "${datadir}/man"
477 477
478# See https://bugs.python.org/issue18748 and https://bugs.python.org/issue37395 478# See https://bugs.python.org/issue18748 and https://bugs.python.org/issue37395
479RDEPENDS:libpython3:append:libc-glibc = " libgcc" 479RDEPENDS:libpython3:append:libc-glibc = " libgcc"
480RDEPENDS:${PN}-ctypes:append:libc-glibc = "\ 480RDEPENDS:${PN}-ctypes:append:libc-glibc = " ${MLPREFIX}ldconfig"
481 ${@bb.utils.contains('DISTRO_FEATURES', 'ldconfig', '${MLPREFIX}ldconfig', '', d)} \
482"
483RDEPENDS:${PN}-ptest = "\ 481RDEPENDS:${PN}-ptest = "\
484 ${PN}-dev \ 482 ${PN}-dev \
485 ${PN}-modules \ 483 ${PN}-modules \