Files
poky/meta/recipes-devtools
Changqing Li 0df1318e5c 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>
2025-02-25 12:17:22 +00:00
..
2024-01-21 12:27:12 +00:00
2025-02-10 13:03:57 +00:00
2023-07-30 07:54:44 +01:00
2024-11-25 22:23:25 +00:00
2024-08-23 09:12:37 +01:00
2024-11-27 14:58:48 +00:00
2025-02-05 12:49:56 +00:00
2024-09-03 10:21:38 +01:00
2024-11-27 14:58:48 +00:00
2024-05-28 09:38:23 +01:00
2024-08-23 09:12:37 +01:00
2024-04-16 08:07:01 +01:00
2025-01-04 12:34:04 +00:00
2025-02-20 11:57:49 +00:00
2025-02-18 22:53:44 +00:00
2025-02-05 12:49:55 +00:00
2025-02-10 13:03:57 +00:00
2024-10-29 11:19:57 +00:00
2023-09-26 10:35:27 +01:00
2024-09-30 17:00:50 +01:00
2024-11-18 22:09:02 +00:00
2025-02-05 12:49:56 +00:00
2024-08-23 09:12:37 +01:00
2024-08-08 08:26:14 +01:00
2023-03-11 00:08:41 +00:00
2024-08-28 09:14:26 +01:00
2025-01-29 10:40:41 +00:00
2025-02-05 12:49:55 +00:00
2025-02-05 12:49:55 +00:00
2024-06-04 12:04:52 +01:00
2024-05-28 09:38:24 +01:00
2024-08-29 21:58:19 +01:00
2024-09-30 17:00:51 +01:00
2024-08-28 09:14:26 +01:00
2024-12-17 11:41:53 +00:00
2025-02-05 12:49:56 +00:00
2025-01-20 13:38:59 +00:00
2025-02-18 22:53:45 +00:00
2024-11-22 16:53:37 +00:00
2024-12-05 17:07:10 +00:00
2025-02-05 12:49:55 +00:00
2025-01-23 11:56:47 +00:00
2025-02-05 12:49:55 +00:00
2024-04-25 10:06:03 +01:00
2025-02-05 12:49:56 +00:00