]> code.ossystems Code Review - openembedded-core.git/commit
python3: add ldconfig rdepends for python3-ctypes
authorMingli Yu <mingli.yu@windriver.com>
Thu, 2 Jul 2020 02:33:10 +0000 (10:33 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 3 Jul 2020 10:37:20 +0000 (11:37 +0100)
commitddb96902a124a6e1f035f0fd868b0139989bc1bc
treeafdc3d6aa0a4b858814efaf014f36b339bd742f8
parent4fde94448495a7957bb6ce76c15fda67c73248d3
python3: add ldconfig rdepends for python3-ctypes

The ctypes module needs to use "ldconfig -p" to find the
library path and it simply has below logic if no ldconfig
installed.
  except OSError:
      pass

Before the patch:
  >>> from ctypes.util import find_library
  >>> lib_path = find_library('archive')
  >>> print(lib_path)
  None

After the patch:
  >>> from ctypes.util import find_library
  >>> lib_path = find_library('archive')
  >>> print(lib_path)
  libarchive.so.13

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/python/python3_3.8.3.bb