diff options
author | Ben Kohler <bkohler@gentoo.org> | 2024-04-17 10:54:45 -0500 |
---|---|---|
committer | Ben Kohler <bkohler@gentoo.org> | 2024-04-17 11:03:58 -0500 |
commit | 3b72be859ea5380720ebf8303c0996a9fc6286bd (patch) | |
tree | c8d2ea0b5dcff59f57bf226c8d932da9b7f4c9dd /sys-libs/ldb/files | |
parent | sys-libs/tevent: add 0.16.1 (diff) | |
download | gentoo-3b72be859ea5380720ebf8303c0996a9fc6286bd.tar.gz gentoo-3b72be859ea5380720ebf8303c0996a9fc6286bd.tar.bz2 gentoo-3b72be859ea5380720ebf8303c0996a9fc6286bd.zip |
sys-libs/ldb: add 2.9.0
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
Diffstat (limited to 'sys-libs/ldb/files')
-rw-r--r-- | sys-libs/ldb/files/ldb-2.9.0-optional_packages.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/sys-libs/ldb/files/ldb-2.9.0-optional_packages.patch b/sys-libs/ldb/files/ldb-2.9.0-optional_packages.patch new file mode 100644 index 000000000000..791f49c8de6c --- /dev/null +++ b/sys-libs/ldb/files/ldb-2.9.0-optional_packages.patch @@ -0,0 +1,41 @@ +diff -ur ldb-2.9.0/wscript ldb-2.9.0.new/wscript +--- ldb-2.9.0/wscript 2024-01-29 10:20:28.452400700 -0600 ++++ ldb-2.9.0.new/wscript 2024-04-17 10:49:58.934921251 -0500 +@@ -34,6 +34,10 @@ + opt.RECURSE('lib/tevent') + opt.RECURSE('lib/replace') + opt.load('python') # options for disabling pyc or pyo compilation ++ if opt.IN_LAUNCH_DIR(): ++ opt.add_option('--disable-ldap', ++ help=("disable ldap support"), ++ action="store_true", dest='disable_ldap', default=False) + + opt.add_option('--without-ldb-lmdb', + help='disable new LMDB backend for LDB', +@@ -41,6 +45,10 @@ + + + def configure(conf): ++ conf.env.standalone_ldb = conf.IN_LAUNCH_DIR() ++ ++ conf.env.disable_ldap = getattr(Options.options, 'disable_ldap', False) ++ + conf.RECURSE('lib/tdb') + conf.RECURSE('lib/tevent') + +@@ -145,9 +153,12 @@ + if conf.env.standalone_ldb: + conf.CHECK_XSLTPROC_MANPAGES() + +- # we need this for the ldap backend +- if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'): +- conf.env.ENABLE_LDAP_BACKEND = True ++ if not conf.env.disable_ldap: ++ # we need this for the ldap backend ++ if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'): ++ conf.env.ENABLE_LDAP_BACKEND = True ++ else: ++ conf.env.ENABLE_LDAP_BACKEND = False + + # we don't want any libraries or modules to rely on runtime + # resolution of symbols |