summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-01-21 18:50:33 -0800
committerKhem Raj <raj.khem@gmail.com>2020-01-22 09:56:35 -0800
commite47f8dfd8399044045c1273a6ae735fd24da349c (patch)
tree62f24b619b0de83ef1fb96536729556d257257e6
parentb5cce2f54fd922877c1b8c796292d6d608bcc7f9 (diff)
downloadmeta-openembedded-e47f8dfd8399044045c1273a6ae735fd24da349c.tar.gz
mysql-python: Enable only when meta-py2 is present
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb3
-rw-r--r--meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb7
2 files changed, 8 insertions, 2 deletions
diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
index f045167e8..6dda3005e 100644
--- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
+++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb
@@ -101,8 +101,9 @@ RDEPENDS_packagegroup-meta-oe-bsp_remove_riscv32 = "efivar efibootmgr"
101 101
102RDEPENDS_packagegroup-meta-oe-dbs ="\ 102RDEPENDS_packagegroup-meta-oe-dbs ="\
103 leveldb libdbi mariadb mariadb-native \ 103 leveldb libdbi mariadb mariadb-native \
104 mysql-python postgresql psqlodbc rocksdb soci \ 104 postgresql psqlodbc rocksdb soci \
105 sqlite \ 105 sqlite \
106 ${@bb.utils.contains("BBPATH", "meta-python2", "mysql-python", "", d)} \
106 " 107 "
107 108
108RDEPENDS_packagegroup-meta-oe-devtools ="\ 109RDEPENDS_packagegroup-meta-oe-devtools ="\
diff --git a/meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb b/meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb
index 6d52222ce..f1c2b7701 100644
--- a/meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb
+++ b/meta-oe/recipes-dbs/mysql/mysql-python_1.2.5.bb
@@ -16,4 +16,9 @@ SRC_URI[sha256sum] = "811040b647e5d5686f84db415efd697e6250008b112b6909ba77ac059e
16 16
17S = "${WORKDIR}/${SRCNAME}-${PV}" 17S = "${WORKDIR}/${SRCNAME}-${PV}"
18 18
19inherit setuptools3 19inherit setuptools
20
21python() {
22 if 'meta-python2' not in d.getVar('BBFILE_COLLECTIONS').split():
23 raise bb.parse.SkipRecipe('Requires meta-python2 to be present.')
24}