]> 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)
committerSteve Sakoman <steve@sakoman.com>
Tue, 17 Nov 2020 17:34:27 +0000 (07:34 -1000)
commit84e1a32096db9deb98d282a652beec95dbfe80f1
tree5d07232ab9147fcafeefde080dcf9e12e08a9da5
parentb95d8fa49f26d48e821017e555f90887974c89b7
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>
(cherry picked from commit ddb96902a124a6e1f035f0fd868b0139989bc1bc)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-devtools/python/python3_3.8.2.bb