ldb is a LDAP-like embedded database. ldb provides a fast database with an LDAP-like API designed to be used within an application. In some ways it can be seen as a intermediate solution between key-value pair databases and a real LDAP database. This port is needed for Samba 4.20. This commit is just a repocopy. I will update the port to the correct version and connect it to the build in the next commit. PR: 280533 Sponsored by: Klara, Inc. Approved by: 0mp (mentor) Approved by: samba (0mp, kiwi) Differential Revision: https://reviews.freebsd.org/D48656
51 lines
2.2 KiB
Python
51 lines
2.2 KiB
Python
--- buildtools/wafsamba/samba_autoconf.py.orig 2022-12-15 13:35:50 UTC
|
|
+++ buildtools/wafsamba/samba_autoconf.py
|
|
@@ -595,7 +595,7 @@ def library_flags(self, libs):
|
|
|
|
|
|
@conf
|
|
-def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False):
|
|
+def CHECK_LIB(conf, libs, mandatory=False, empty_decl=True, set_target=True, shlib=False, msg=None):
|
|
'''check if a set of libraries exist as system libraries
|
|
|
|
returns the sublist of libs that do exist as a syslib or []
|
|
@@ -615,11 +615,29 @@ int foo()
|
|
ret.append(lib)
|
|
continue
|
|
|
|
+ if msg is None:
|
|
+ msg = 'Checking for library %s' % lib
|
|
+
|
|
(ccflags, ldflags, cpppath) = library_flags(conf, lib)
|
|
+
|
|
if shlib:
|
|
- res = conf.check(features='c cshlib', fragment=fragment, lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False)
|
|
+ res = conf.check(features='c cshlib',
|
|
+ fragment=fragment,
|
|
+ lib=lib,
|
|
+ uselib_store=lib,
|
|
+ cflags=ccflags,
|
|
+ ldflags=ldflags,
|
|
+ uselib=lib.upper(),
|
|
+ mandatory=False,
|
|
+ msg=msg)
|
|
else:
|
|
- res = conf.check(lib=lib, uselib_store=lib, cflags=ccflags, ldflags=ldflags, uselib=lib.upper(), mandatory=False)
|
|
+ res = conf.check(lib=lib,
|
|
+ uselib_store=lib,
|
|
+ cflags=ccflags,
|
|
+ ldflags=ldflags,
|
|
+ uselib=lib.upper(),
|
|
+ mandatory=False,
|
|
+ msg=msg)
|
|
|
|
if not res:
|
|
if mandatory:
|
|
@@ -989,5 +1007,5 @@ def SAMBA_CHECK_UNDEFINED_SYMBOL_FLAGS(conf):
|
|
conf.env.undefined_ldflags = conf.ADD_LDFLAGS('-Wl,-no-undefined', testflags=True)
|
|
|
|
if (conf.env.undefined_ignore_ldflags == [] and
|
|
- conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'])):
|
|
+ conf.CHECK_LDFLAGS(['-undefined', 'dynamic_lookup'] + conf.env.WERROR_CFLAGS)):
|
|
conf.env.undefined_ignore_ldflags = ['-undefined', 'dynamic_lookup']
|