]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ldb: Build lmdb backend also in non-AD case
authorAndreas Schneider <asn@samba.org>
Tue, 24 Sep 2024 13:48:23 +0000 (15:48 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 25 Sep 2024 05:36:13 +0000 (05:36 +0000)
We should build with lmdb support also if it is not in AD case. The lmdb
backend is also used e.g. by sssd.

If you don't want to build it, you can always specify --without-ldb-lmdb

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15721

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Sep 25 05:36:13 UTC 2024 on atb-devel-224

lib/ldb/wscript

index 87aa3bb6d77e518fddbb28d274e3bc92d9fadb7f..f234fa79c10c90cb8c90e3e152b1d2f63b5732ed 100644 (file)
@@ -33,21 +33,17 @@ def configure(conf):
            conf.CONFIG_GET('ENABLE_SELFTEST'):
             Logs.warn("NOTE: Some AD DC parts of selftest will fail")
 
+        conf.env.REQUIRE_LMDB = False
+    elif Options.options.without_ldb_lmdb:
+        if not Options.options.without_ad_dc and \
+           conf.CONFIG_GET('ENABLE_SELFTEST'):
+            raise Errors.WafError('--without-ldb-lmdb conflicts '
+                                 'with --enable-selftest while '
+                                 'building the AD DC')
+
         conf.env.REQUIRE_LMDB = False
     else:
-        if Options.options.without_ad_dc:
-            conf.env.REQUIRE_LMDB = False
-        else:
-            if Options.options.without_ldb_lmdb:
-                if not Options.options.without_ad_dc and \
-                   conf.CONFIG_GET('ENABLE_SELFTEST'):
-                    raise Errors.WafError('--without-ldb-lmdb conflicts '
-                                         'with --enable-selftest while '
-                                         'building the AD DC')
-
-                conf.env.REQUIRE_LMDB = False
-            else:
-                conf.env.REQUIRE_LMDB = True
+        conf.env.REQUIRE_LMDB = True
 
     # if lmdb support is enabled then we require lmdb
     # is present, build the mdb back end and enable lmdb support in