[oe-commits] [openembedded-core] 20/20: python/python3: add virtual/crypt to DEPENDS

git at git.openembedded.org git at git.openembedded.org
Tue Aug 21 13:53:39 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit d2a929d932900f753af1a06a8cb98d953369e3b4
Author: Hongxu Jia <hongxu.jia at windriver.com>
AuthorDate: Tue Aug 21 13:44:55 2018 +0800

    python/python3: add virtual/crypt to DEPENDS
    
    Since  `6146b8c glibc: Disable crypt support in glibc' in oe-core,
    python2/3 could not find symbol crypt which caused import crypt failed.
    [snip]
    >>> import crypt
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "/usr/lib64/python3.5/crypt.py", line 3, in <module>
        import _crypt
    ImportError: /usr/lib64/python3.5/lib-dynload/_crypt.cpython-35m-x86_64-linux-gnu.so: undefined symbol: crypt
    [snip]
    
    Add virtual/crypt to DEPENDS, and python's build system (setup.py)
    will search libcrypt.so in recipe-sysroot and add `-lcrypt' if it
    exists.
    
    Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-devtools/python/python3_3.5.5.bb | 4 +++-
 meta/recipes-devtools/python/python_2.7.15.bb | 3 ++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-devtools/python/python3_3.5.5.bb b/meta/recipes-devtools/python/python3_3.5.5.bb
index beaf3dc..bfe91fb 100644
--- a/meta/recipes-devtools/python/python3_3.5.5.bb
+++ b/meta/recipes-devtools/python/python3_3.5.5.bb
@@ -1,6 +1,8 @@
 require recipes-devtools/python/python.inc
 
-DEPENDS = "python3-native libffi bzip2 gdbm openssl sqlite3 zlib virtual/libintl xz qemu-native qemu-helper-native"
+DEPENDS = "python3-native libffi bzip2 gdbm openssl \
+           sqlite3 zlib virtual/libintl xz qemu-native \
+           qemu-helper-native virtual/crypt"
 
 PR = "${INC_PR}.0"
 PYTHON_MAJMIN = "3.5"
diff --git a/meta/recipes-devtools/python/python_2.7.15.bb b/meta/recipes-devtools/python/python_2.7.15.bb
index 3044c3d..43d9ff5 100644
--- a/meta/recipes-devtools/python/python_2.7.15.bb
+++ b/meta/recipes-devtools/python/python_2.7.15.bb
@@ -1,6 +1,7 @@
 require python.inc
 
-DEPENDS = "python-native libffi bzip2 gdbm openssl readline sqlite3 zlib"
+DEPENDS = "python-native libffi bzip2 gdbm openssl \
+           readline sqlite3 zlib virtual/crypt"
 
 PR = "${INC_PR}"
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list