ldb: Unconditionally set LDB_PACKAGE_VERSION
authorAndrew Bartlett <abartlet@samba.org>
Mon, 12 Feb 2024 02:00:30 +0000 (15:00 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 1 Mar 2024 02:41:37 +0000 (02:41 +0000)
This is only parsed once now and there is no confusion with the main build, so we can set it without checking.

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

index 29ddf009d6b8ca1fdb83af6e08656a1ea13dd30a..28275d8bc117d0aa8725cf0136466adde1b7e720 100644 (file)
@@ -85,8 +85,7 @@ def configure(conf):
         = not samba_bundled.LIB_MUST_BE_PRIVATE(conf, 'ldb')
 
 def build(bld):
-    if not 'LDB_PACKAGE_VERSION' in bld.env:
-        bld.env.LDB_PACKAGE_VERSION = LDB_VERSION
+    bld.env.LDB_PACKAGE_VERSION = LDB_VERSION
 
     # we're not currently linking against the ldap libs, but ldb.pc.in
     # has @LDAP_LIBS@