From: Stefan Metzmacher Date: Fri, 30 Jun 2017 04:24:01 +0000 (+0200) Subject: ldb: protect Samba < 4.7 against incompatible ldb versions and require ldb < 1.2.0 X-Git-Tag: samba-4.5.11~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f6e1f13b4b58a1658616c845439d0b48890fc4a;p=thirdparty%2Fsamba.git ldb: protect Samba < 4.7 against incompatible ldb versions and require ldb < 1.2.0 BUG: https://bugzilla.samba.org/show_bug.cgi?id=12859 Signed-off-by: Stefan Metzmacher Autobuild-User(v4-5-test): Karolin Seeger Autobuild-Date(v4-5-test): Mon Jul 3 17:09:41 CEST 2017 on sn-devel-144 --- diff --git a/lib/ldb/wscript b/lib/ldb/wscript index 13f1d938f3d..16487b9fe48 100755 --- a/lib/ldb/wscript +++ b/lib/ldb/wscript @@ -55,11 +55,26 @@ def configure(conf): conf.env.standalone_ldb = conf.IN_LAUNCH_DIR() if not conf.env.standalone_ldb: - if conf.CHECK_BUNDLED_SYSTEM_PKG('pyldb-util', minversion=VERSION, + # + # ldb >= 1.2.0 (as well as 1.1.30 and 1.1.31) are + # incompatible with Samba < 4.7 + # + # See https://bugzilla.samba.org/show_bug.cgi?id=12859 + # + maxversion = "1.1.99" + version_blacklist = ["1.1.30", "1.1.31"] + + if conf.CHECK_BUNDLED_SYSTEM_PKG('pyldb-util', + minversion=VERSION, + maxversion=maxversion, + version_blacklist=version_blacklist, onlyif='talloc tdb tevent', implied_deps='replace talloc tdb tevent ldb'): conf.define('USING_SYSTEM_PYLDB_UTIL', 1) - if conf.CHECK_BUNDLED_SYSTEM_PKG('ldb', minversion=VERSION, + if conf.CHECK_BUNDLED_SYSTEM_PKG('ldb', + minversion=VERSION, + maxversion=maxversion, + version_blacklist=version_blacklist, onlyif='talloc tdb tevent pyldb-util', implied_deps='replace talloc tdb tevent'): conf.define('USING_SYSTEM_LDB', 1)