]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ldb: Remove the ability for Samba to compile against a system LDB
authorAndrew Bartlett <abartlet@samba.org>
Fri, 9 Feb 2024 09:24:38 +0000 (22:24 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 1 Mar 2024 02:41:36 +0000 (02:41 +0000)
Samba will either provide the LDB to the system, or use a
private ldb, we will not use any other LDB from the system.

This is essentially equilvilant to the patch Debian has used
for Samba 4.17 and later, named "Force-LDB-as-standalone.patch"

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
lib/ldb/wscript

index 8d9156b0e3dffb424e204acc9e770dd0f504f2e2..5f33d4b65f44834febf8e04a1b56a55a5f2a6307 100644 (file)
@@ -69,38 +69,6 @@ def configure(conf):
 
     conf.env.standalone_ldb = conf.IN_LAUNCH_DIR()
 
-    if not conf.env.standalone_ldb:
-        max_ldb_version = [int(x) for x in VERSION.split(".")]
-        max_ldb_version[2] = 999
-        max_ldb_version_dots = "%d.%d.%d" % tuple(max_ldb_version)
-
-        if conf.env.disable_python:
-            if conf.CHECK_BUNDLED_SYSTEM_PKG('ldb',
-                                             minversion=VERSION,
-                                             maxversion=max_ldb_version_dots,
-                                             onlyif='talloc tdb tevent',
-                                             implied_deps='replace talloc tdb tevent'):
-                conf.define('USING_SYSTEM_LDB', 1)
-        else:
-            using_system_pyldb_util = True
-            dflt_name = 'pyldb-util' + conf.all_envs['default']['PYTHON_SO_ABI_FLAG']
-            if not conf.CHECK_BUNDLED_SYSTEM_PKG(dflt_name,
-                                                 minversion=VERSION,
-                                                 maxversion=max_ldb_version_dots,
-                                                 onlyif='talloc tdb tevent',
-                                                 implied_deps='replace talloc tdb tevent ldb'):
-                using_system_pyldb_util = False
-
-            if using_system_pyldb_util:
-                conf.define('USING_SYSTEM_PYLDB_UTIL', 1)
-
-            if conf.CHECK_BUNDLED_SYSTEM_PKG('ldb',
-                                             minversion=VERSION,
-                                             maxversion=max_ldb_version_dots,
-                                             onlyif='talloc tdb tevent %s' % dflt_name,
-                                             implied_deps='replace talloc tdb tevent'):
-                conf.define('USING_SYSTEM_LDB', 1)
-
     if not conf.CHECK_CODE('return !(sizeof(size_t) >= 8)',
                            "HAVE_64_BIT_SIZE_T_FOR_LMDB",
                            execute=True,