]> code.ossystems Code Review - openembedded-core.git/commitdiff
python3: Fix native compilation of gdbm module and manifest
authorAlejandro Hernandez <alejandr@xilinx.com>
Wed, 10 Jan 2018 00:23:52 +0000 (16:23 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 20 Jan 2018 22:31:12 +0000 (22:31 +0000)
The gdbm module wasnt being built on python3-native showing the following
error during compilation:

Failed to build these modules:
_gdbm

This patch adds the required dependency to fix the compilation problem.

This issue on python3-native caused the manifest creation script to be
unaware of the gdbm library, so this patch also fixes the create_manifest
task for target python, and the manifest file to reflect the changes on
target python as well.

Signed-off-by: Alejandro Hernandez <alejandr@xilinx.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/python/python3-native_3.5.3.bb
meta/recipes-devtools/python/python3/python3-manifest.json

index 3053c4bace639e947b01e92569c045e269e15b60..12f9f2404ff95913ee29b0d539a6a3b83584c3bf 100644 (file)
@@ -38,7 +38,7 @@ UPSTREAM_CHECK_REGEX = "[Pp]ython-(?P<pver>\d+(\.\d+)+).tar"
 S = "${WORKDIR}/Python-${PV}"
 
 EXTRANATIVEPATH += "bzip2-native"
-DEPENDS = "openssl-native bzip2-replacement-native zlib-native readline-native sqlite3-native"
+DEPENDS = "openssl-native bzip2-replacement-native zlib-native readline-native sqlite3-native gdbm-native"
 
 inherit native
 
index 92d0d00945f91940f95894eade0c62926f68d4c3..ef9826f02cd1ceee8f9febd5f27ca3a82754f304 100644 (file)
     "db": {
         "cached": [],
         "files": [
-            "${libdir}/python3.5/dbm"
+            "${libdir}/python3.5/dbm",
+            "${libdir}/python3.5/lib-dynload/_dbm.*.so"
         ],
         "rdepends": [
             "core"
         ],
         "summary": "Python's fcntl interface"
     },
+    "gdbm": {
+        "cached": [],
+        "files": [
+            "${libdir}/python3.5/lib-dynload/_gdbm.*.so"
+        ],
+        "rdepends": [
+            "core"
+        ],
+        "summary": "Python GNU database support"
+    },
     "html": {
         "cached": [
             "${libdir}/python3.5/__pycache__/formatter.*.pyc"
         ],
         "summary": "Python XML-RPC support"
     }
-}
+}
\ No newline at end of file