diff options
author | Changqing Li <changqing.li@windriver.com> | 2019-05-29 15:47:28 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-05-29 02:21:42 -0700 |
commit | 8e641e28f630dac61a03373ad70c72a2370ad11e (patch) | |
tree | 8a9b5aed9be2df30aa813c2d4815fe67be863b19 | |
parent | 1ac44de1358807b9fa848d394e093713f929f686 (diff) | |
download | meta-openembedded-8e641e28f630dac61a03373ad70c72a2370ad11e.tar.gz |
samba/libldb: add rconflicts
samba have bundled libldb, so when both samba and libldb, or both pyldb \
and samba-python is installed, below error will appear:
file /usr/bin/ldbadd conflicts between attempted installs of samba-4.8.11-r0.i586 and libldb-1.4.1-r0.i586
file /usr/bin/ldbdel conflicts between attempted installs of samba-4.8.11-r0.i586 and libldb-1.4.1-r0.i586
...
file /usr/lib/python2.7/site-packages/ldb.so conflicts between attempted installs of libpyldb-util1-1.4.1-r0.i586 and samba-python-4.8.11-r0.i586
so add rconflicts for both packages
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-networking/recipes-connectivity/samba/samba_4.8.11.bb | 3 | ||||
-rw-r--r-- | meta-networking/recipes-support/libldb/libldb_1.4.1.bb | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/meta-networking/recipes-connectivity/samba/samba_4.8.11.bb b/meta-networking/recipes-connectivity/samba/samba_4.8.11.bb index 8c08d1ed3b..8139ed43cb 100644 --- a/meta-networking/recipes-connectivity/samba/samba_4.8.11.bb +++ b/meta-networking/recipes-connectivity/samba/samba_4.8.11.bb | |||
@@ -41,6 +41,9 @@ RDEPENDS_${PN}_remove = "perl" | |||
41 | 41 | ||
42 | DEPENDS += "readline virtual/libiconv zlib popt libtalloc libtdb libtevent libbsd libaio libpam" | 42 | DEPENDS += "readline virtual/libiconv zlib popt libtalloc libtdb libtevent libbsd libaio libpam" |
43 | 43 | ||
44 | RCONFLICTS_${PN} = "libldb" | ||
45 | RCONFLICTS_${PN}-python = "pyldb" | ||
46 | |||
44 | inherit distro_features_check | 47 | inherit distro_features_check |
45 | REQUIRED_DISTRO_FEATURES = "pam" | 48 | REQUIRED_DISTRO_FEATURES = "pam" |
46 | 49 | ||
diff --git a/meta-networking/recipes-support/libldb/libldb_1.4.1.bb b/meta-networking/recipes-support/libldb/libldb_1.4.1.bb index 3c7e5455e9..f3608c6abc 100644 --- a/meta-networking/recipes-support/libldb/libldb_1.4.1.bb +++ b/meta-networking/recipes-support/libldb/libldb_1.4.1.bb | |||
@@ -5,6 +5,8 @@ LICENSE = "LGPL-3.0+ & LGPL-2.1+ & GPL-3.0+" | |||
5 | 5 | ||
6 | DEPENDS += "libtdb libtalloc libtevent popt" | 6 | DEPENDS += "libtdb libtalloc libtevent popt" |
7 | RDEPENDS_pyldb += "python samba" | 7 | RDEPENDS_pyldb += "python samba" |
8 | RCONFLICTS_${PN} = "samba" | ||
9 | RCONFLICTS_pyldb = "samba-python" | ||
8 | 10 | ||
9 | SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \ | 11 | SRC_URI = "http://samba.org/ftp/ldb/ldb-${PV}.tar.gz \ |
10 | file://do-not-import-target-module-while-cross-compile.patch \ | 12 | file://do-not-import-target-module-while-cross-compile.patch \ |