Hello community,

here is the log from the commit of package ldb for openSUSE:Factory checked in 
at 2015-01-21 21:55:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ldb (Old)
 and      /work/SRC/openSUSE:Factory/.ldb.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ldb"

Changes:
--------
--- /work/SRC/openSUSE:Factory/ldb/ldb.changes  2014-12-23 11:48:46.000000000 
+0100
+++ /work/SRC/openSUSE:Factory/.ldb.new/ldb.changes     2015-01-21 
21:56:22.000000000 +0100
@@ -1,0 +2,6 @@
+Tue Jan 13 14:57:29 UTC 2015 - [email protected]
+
+- Update to 1.1.19.
+  + Allow to register extended match rules
+
+-------------------------------------------------------------------

Old:
----
  ldb-1.1.18.tar.asc
  ldb-1.1.18.tar.gz

New:
----
  ldb-1.1.19.tar.asc
  ldb-1.1.19.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ldb.spec ++++++
--- /var/tmp/diff_new_pack.15yVqT/_old  2015-01-21 21:56:22.000000000 +0100
+++ /var/tmp/diff_new_pack.15yVqT/_new  2015-01-21 21:56:22.000000000 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ldb
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %{!?python_sitearch:  %global python_sitearch %(%{__python} -c "from 
distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 
 %define talloc_version 2.0.8
-%define tdb_version 1.2.11
+%define tdb_version 1.3.4
 %define tevent_version 0.9.17
 
 Name:           ldb
@@ -40,7 +40,7 @@
 %define        build_make_smp_mflags %{?jobs:-j%jobs}
 %endif
 Url:            http://ldb.samba.org/
-Version:        1.1.18
+Version:        1.1.19
 Release:        0
 Summary:        An LDAP-like embedded database
 License:        GPL-3.0+

++++++ ldb-1.1.18.tar.gz -> ldb-1.1.19.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ldb-1.1.18/ABI/ldb-1.1.19.sigs 
new/ldb-1.1.19/ABI/ldb-1.1.19.sigs
--- old/ldb-1.1.18/ABI/ldb-1.1.19.sigs  1970-01-01 01:00:00.000000000 +0100
+++ new/ldb-1.1.19/ABI/ldb-1.1.19.sigs  2014-12-22 09:17:09.000000000 +0100
@@ -0,0 +1,263 @@
+ldb_add: int (struct ldb_context *, const struct ldb_message *)
+ldb_any_comparison: int (struct ldb_context *, void *, ldb_attr_handler_t, 
const struct ldb_val *, const struct ldb_val *)
+ldb_asprintf_errstring: void (struct ldb_context *, const char *, ...)
+ldb_attr_casefold: char *(TALLOC_CTX *, const char *)
+ldb_attr_dn: int (const char *)
+ldb_attr_in_list: int (const char * const *, const char *)
+ldb_attr_list_copy: const char **(TALLOC_CTX *, const char * const *)
+ldb_attr_list_copy_add: const char **(TALLOC_CTX *, const char * const *, 
const char *)
+ldb_base64_decode: int (char *)
+ldb_base64_encode: char *(TALLOC_CTX *, const char *, int)
+ldb_binary_decode: struct ldb_val (TALLOC_CTX *, const char *)
+ldb_binary_encode: char *(TALLOC_CTX *, struct ldb_val)
+ldb_binary_encode_string: char *(TALLOC_CTX *, const char *)
+ldb_build_add_req: int (struct ldb_request **, struct ldb_context *, 
TALLOC_CTX *, const struct ldb_message *, struct ldb_control **, void *, 
ldb_request_callback_t, struct ldb_request *)
+ldb_build_del_req: int (struct ldb_request **, struct ldb_context *, 
TALLOC_CTX *, struct ldb_dn *, struct ldb_control **, void *, 
ldb_request_callback_t, struct ldb_request *)
+ldb_build_extended_req: int (struct ldb_request **, struct ldb_context *, 
TALLOC_CTX *, const char *, void *, struct ldb_control **, void *, 
ldb_request_callback_t, struct ldb_request *)
+ldb_build_mod_req: int (struct ldb_request **, struct ldb_context *, 
TALLOC_CTX *, const struct ldb_message *, struct ldb_control **, void *, 
ldb_request_callback_t, struct ldb_request *)
+ldb_build_rename_req: int (struct ldb_request **, struct ldb_context *, 
TALLOC_CTX *, struct ldb_dn *, struct ldb_dn *, struct ldb_control **, void *, 
ldb_request_callback_t, struct ldb_request *)
+ldb_build_search_req: int (struct ldb_request **, struct ldb_context *, 
TALLOC_CTX *, struct ldb_dn *, enum ldb_scope, const char *, const char * const 
*, struct ldb_control **, void *, ldb_request_callback_t, struct ldb_request *)
+ldb_build_search_req_ex: int (struct ldb_request **, struct ldb_context *, 
TALLOC_CTX *, struct ldb_dn *, enum ldb_scope, struct ldb_parse_tree *, const 
char * const *, struct ldb_control **, void *, ldb_request_callback_t, struct 
ldb_request *)
+ldb_casefold: char *(struct ldb_context *, TALLOC_CTX *, const char *, size_t)
+ldb_casefold_default: char *(void *, TALLOC_CTX *, const char *, size_t)
+ldb_check_critical_controls: int (struct ldb_control **)
+ldb_comparison_binary: int (struct ldb_context *, void *, const struct ldb_val 
*, const struct ldb_val *)
+ldb_comparison_fold: int (struct ldb_context *, void *, const struct ldb_val 
*, const struct ldb_val *)
+ldb_connect: int (struct ldb_context *, const char *, unsigned int, const char 
**)
+ldb_control_to_string: char *(TALLOC_CTX *, const struct ldb_control *)
+ldb_controls_except_specified: struct ldb_control **(struct ldb_control **, 
TALLOC_CTX *, struct ldb_control *)
+ldb_debug: void (struct ldb_context *, enum ldb_debug_level, const char *, ...)
+ldb_debug_add: void (struct ldb_context *, const char *, ...)
+ldb_debug_end: void (struct ldb_context *, enum ldb_debug_level)
+ldb_debug_set: void (struct ldb_context *, enum ldb_debug_level, const char *, 
...)
+ldb_delete: int (struct ldb_context *, struct ldb_dn *)
+ldb_dn_add_base: bool (struct ldb_dn *, struct ldb_dn *)
+ldb_dn_add_base_fmt: bool (struct ldb_dn *, const char *, ...)
+ldb_dn_add_child: bool (struct ldb_dn *, struct ldb_dn *)
+ldb_dn_add_child_fmt: bool (struct ldb_dn *, const char *, ...)
+ldb_dn_alloc_casefold: char *(TALLOC_CTX *, struct ldb_dn *)
+ldb_dn_alloc_linearized: char *(TALLOC_CTX *, struct ldb_dn *)
+ldb_dn_canonical_ex_string: char *(TALLOC_CTX *, struct ldb_dn *)
+ldb_dn_canonical_string: char *(TALLOC_CTX *, struct ldb_dn *)
+ldb_dn_check_local: bool (struct ldb_module *, struct ldb_dn *)
+ldb_dn_check_special: bool (struct ldb_dn *, const char *)
+ldb_dn_compare: int (struct ldb_dn *, struct ldb_dn *)
+ldb_dn_compare_base: int (struct ldb_dn *, struct ldb_dn *)
+ldb_dn_copy: struct ldb_dn *(TALLOC_CTX *, struct ldb_dn *)
+ldb_dn_escape_value: char *(TALLOC_CTX *, struct ldb_val)
+ldb_dn_extended_add_syntax: int (struct ldb_context *, unsigned int, const 
struct ldb_dn_extended_syntax *)
+ldb_dn_extended_filter: void (struct ldb_dn *, const char * const *)
+ldb_dn_extended_syntax_by_name: const struct ldb_dn_extended_syntax *(struct 
ldb_context *, const char *)
+ldb_dn_from_ldb_val: struct ldb_dn *(TALLOC_CTX *, struct ldb_context *, const 
struct ldb_val *)
+ldb_dn_get_casefold: const char *(struct ldb_dn *)
+ldb_dn_get_comp_num: int (struct ldb_dn *)
+ldb_dn_get_component_name: const char *(struct ldb_dn *, unsigned int)
+ldb_dn_get_component_val: const struct ldb_val *(struct ldb_dn *, unsigned int)
+ldb_dn_get_extended_comp_num: int (struct ldb_dn *)
+ldb_dn_get_extended_component: const struct ldb_val *(struct ldb_dn *, const 
char *)
+ldb_dn_get_extended_linearized: char *(TALLOC_CTX *, struct ldb_dn *, int)
+ldb_dn_get_linearized: const char *(struct ldb_dn *)
+ldb_dn_get_parent: struct ldb_dn *(TALLOC_CTX *, struct ldb_dn *)
+ldb_dn_get_rdn_name: const char *(struct ldb_dn *)
+ldb_dn_get_rdn_val: const struct ldb_val *(struct ldb_dn *)
+ldb_dn_has_extended: bool (struct ldb_dn *)
+ldb_dn_is_null: bool (struct ldb_dn *)
+ldb_dn_is_special: bool (struct ldb_dn *)
+ldb_dn_is_valid: bool (struct ldb_dn *)
+ldb_dn_map_local: struct ldb_dn *(struct ldb_module *, void *, struct ldb_dn *)
+ldb_dn_map_rebase_remote: struct ldb_dn *(struct ldb_module *, void *, struct 
ldb_dn *)
+ldb_dn_map_remote: struct ldb_dn *(struct ldb_module *, void *, struct ldb_dn 
*)
+ldb_dn_minimise: bool (struct ldb_dn *)
+ldb_dn_new: struct ldb_dn *(TALLOC_CTX *, struct ldb_context *, const char *)
+ldb_dn_new_fmt: struct ldb_dn *(TALLOC_CTX *, struct ldb_context *, const char 
*, ...)
+ldb_dn_remove_base_components: bool (struct ldb_dn *, unsigned int)
+ldb_dn_remove_child_components: bool (struct ldb_dn *, unsigned int)
+ldb_dn_remove_extended_components: void (struct ldb_dn *)
+ldb_dn_replace_components: bool (struct ldb_dn *, struct ldb_dn *)
+ldb_dn_set_component: int (struct ldb_dn *, int, const char *, const struct 
ldb_val)
+ldb_dn_set_extended_component: int (struct ldb_dn *, const char *, const 
struct ldb_val *)
+ldb_dn_update_components: int (struct ldb_dn *, const struct ldb_dn *)
+ldb_dn_validate: bool (struct ldb_dn *)
+ldb_dump_results: void (struct ldb_context *, struct ldb_result *, FILE *)
+ldb_error_at: int (struct ldb_context *, int, const char *, const char *, int)
+ldb_errstring: const char *(struct ldb_context *)
+ldb_extended: int (struct ldb_context *, const char *, void *, struct 
ldb_result **)
+ldb_extended_default_callback: int (struct ldb_request *, struct ldb_reply *)
+ldb_filter_from_tree: char *(TALLOC_CTX *, const struct ldb_parse_tree *)
+ldb_get_config_basedn: struct ldb_dn *(struct ldb_context *)
+ldb_get_create_perms: unsigned int (struct ldb_context *)
+ldb_get_default_basedn: struct ldb_dn *(struct ldb_context *)
+ldb_get_event_context: struct tevent_context *(struct ldb_context *)
+ldb_get_flags: unsigned int (struct ldb_context *)
+ldb_get_opaque: void *(struct ldb_context *, const char *)
+ldb_get_root_basedn: struct ldb_dn *(struct ldb_context *)
+ldb_get_schema_basedn: struct ldb_dn *(struct ldb_context *)
+ldb_global_init: int (void)
+ldb_handle_new: struct ldb_handle *(TALLOC_CTX *, struct ldb_context *)
+ldb_handler_copy: int (struct ldb_context *, void *, const struct ldb_val *, 
struct ldb_val *)
+ldb_handler_fold: int (struct ldb_context *, void *, const struct ldb_val *, 
struct ldb_val *)
+ldb_init: struct ldb_context *(TALLOC_CTX *, struct tevent_context *)
+ldb_ldif_message_string: char *(struct ldb_context *, TALLOC_CTX *, enum 
ldb_changetype, const struct ldb_message *)
+ldb_ldif_parse_modrdn: int (struct ldb_context *, const struct ldb_ldif *, 
TALLOC_CTX *, struct ldb_dn **, struct ldb_dn **, bool *, struct ldb_dn **, 
struct ldb_dn **)
+ldb_ldif_read: struct ldb_ldif *(struct ldb_context *, int (*)(void *), void *)
+ldb_ldif_read_file: struct ldb_ldif *(struct ldb_context *, FILE *)
+ldb_ldif_read_file_state: struct ldb_ldif *(struct ldb_context *, struct 
ldif_read_file_state *)
+ldb_ldif_read_free: void (struct ldb_context *, struct ldb_ldif *)
+ldb_ldif_read_string: struct ldb_ldif *(struct ldb_context *, const char **)
+ldb_ldif_write: int (struct ldb_context *, int (*)(void *, const char *, ...), 
void *, const struct ldb_ldif *)
+ldb_ldif_write_file: int (struct ldb_context *, FILE *, const struct ldb_ldif 
*)
+ldb_ldif_write_redacted_trace_string: char *(struct ldb_context *, TALLOC_CTX 
*, const struct ldb_ldif *)
+ldb_ldif_write_string: char *(struct ldb_context *, TALLOC_CTX *, const struct 
ldb_ldif *)
+ldb_load_modules: int (struct ldb_context *, const char **)
+ldb_map_add: int (struct ldb_module *, struct ldb_request *)
+ldb_map_delete: int (struct ldb_module *, struct ldb_request *)
+ldb_map_init: int (struct ldb_module *, const struct ldb_map_attribute *, 
const struct ldb_map_objectclass *, const char * const *, const char *, const 
char *)
+ldb_map_modify: int (struct ldb_module *, struct ldb_request *)
+ldb_map_rename: int (struct ldb_module *, struct ldb_request *)
+ldb_map_search: int (struct ldb_module *, struct ldb_request *)
+ldb_match_msg: int (struct ldb_context *, const struct ldb_message *, const 
struct ldb_parse_tree *, struct ldb_dn *, enum ldb_scope)
+ldb_match_msg_error: int (struct ldb_context *, const struct ldb_message *, 
const struct ldb_parse_tree *, struct ldb_dn *, enum ldb_scope, bool *)
+ldb_match_msg_objectclass: int (const struct ldb_message *, const char *)
+ldb_mod_register_control: int (struct ldb_module *, const char *)
+ldb_modify: int (struct ldb_context *, const struct ldb_message *)
+ldb_modify_default_callback: int (struct ldb_request *, struct ldb_reply *)
+ldb_module_call_chain: char *(struct ldb_request *, TALLOC_CTX *)
+ldb_module_connect_backend: int (struct ldb_context *, const char *, const 
char **, struct ldb_module **)
+ldb_module_done: int (struct ldb_request *, struct ldb_control **, struct 
ldb_extended *, int)
+ldb_module_flags: uint32_t (struct ldb_context *)
+ldb_module_get_ctx: struct ldb_context *(struct ldb_module *)
+ldb_module_get_name: const char *(struct ldb_module *)
+ldb_module_get_ops: const struct ldb_module_ops *(struct ldb_module *)
+ldb_module_get_private: void *(struct ldb_module *)
+ldb_module_init_chain: int (struct ldb_context *, struct ldb_module *)
+ldb_module_load_list: int (struct ldb_context *, const char **, struct 
ldb_module *, struct ldb_module **)
+ldb_module_new: struct ldb_module *(TALLOC_CTX *, struct ldb_context *, const 
char *, const struct ldb_module_ops *)
+ldb_module_next: struct ldb_module *(struct ldb_module *)
+ldb_module_popt_options: struct poptOption **(struct ldb_context *)
+ldb_module_send_entry: int (struct ldb_request *, struct ldb_message *, struct 
ldb_control **)
+ldb_module_send_referral: int (struct ldb_request *, char *)
+ldb_module_set_next: void (struct ldb_module *, struct ldb_module *)
+ldb_module_set_private: void (struct ldb_module *, void *)
+ldb_modules_hook: int (struct ldb_context *, enum ldb_module_hook_type)
+ldb_modules_list_from_string: const char **(struct ldb_context *, TALLOC_CTX 
*, const char *)
+ldb_modules_load: int (const char *, const char *)
+ldb_msg_add: int (struct ldb_message *, const struct ldb_message_element *, 
int)
+ldb_msg_add_empty: int (struct ldb_message *, const char *, int, struct 
ldb_message_element **)
+ldb_msg_add_fmt: int (struct ldb_message *, const char *, const char *, ...)
+ldb_msg_add_linearized_dn: int (struct ldb_message *, const char *, struct 
ldb_dn *)
+ldb_msg_add_steal_string: int (struct ldb_message *, const char *, char *)
+ldb_msg_add_steal_value: int (struct ldb_message *, const char *, struct 
ldb_val *)
+ldb_msg_add_string: int (struct ldb_message *, const char *, const char *)
+ldb_msg_add_value: int (struct ldb_message *, const char *, const struct 
ldb_val *, struct ldb_message_element **)
+ldb_msg_canonicalize: struct ldb_message *(struct ldb_context *, const struct 
ldb_message *)
+ldb_msg_check_string_attribute: int (const struct ldb_message *, const char *, 
const char *)
+ldb_msg_copy: struct ldb_message *(TALLOC_CTX *, const struct ldb_message *)
+ldb_msg_copy_attr: int (struct ldb_message *, const char *, const char *)
+ldb_msg_copy_shallow: struct ldb_message *(TALLOC_CTX *, const struct 
ldb_message *)
+ldb_msg_diff: struct ldb_message *(struct ldb_context *, struct ldb_message *, 
struct ldb_message *)
+ldb_msg_difference: int (struct ldb_context *, TALLOC_CTX *, struct 
ldb_message *, struct ldb_message *, struct ldb_message **)
+ldb_msg_element_compare: int (struct ldb_message_element *, struct 
ldb_message_element *)
+ldb_msg_element_compare_name: int (struct ldb_message_element *, struct 
ldb_message_element *)
+ldb_msg_element_equal_ordered: bool (const struct ldb_message_element *, const 
struct ldb_message_element *)
+ldb_msg_find_attr_as_bool: int (const struct ldb_message *, const char *, int)
+ldb_msg_find_attr_as_dn: struct ldb_dn *(struct ldb_context *, TALLOC_CTX *, 
const struct ldb_message *, const char *)
+ldb_msg_find_attr_as_double: double (const struct ldb_message *, const char *, 
double)
+ldb_msg_find_attr_as_int: int (const struct ldb_message *, const char *, int)
+ldb_msg_find_attr_as_int64: int64_t (const struct ldb_message *, const char *, 
int64_t)
+ldb_msg_find_attr_as_string: const char *(const struct ldb_message *, const 
char *, const char *)
+ldb_msg_find_attr_as_uint: unsigned int (const struct ldb_message *, const 
char *, unsigned int)
+ldb_msg_find_attr_as_uint64: uint64_t (const struct ldb_message *, const char 
*, uint64_t)
+ldb_msg_find_element: struct ldb_message_element *(const struct ldb_message *, 
const char *)
+ldb_msg_find_ldb_val: const struct ldb_val *(const struct ldb_message *, const 
char *)
+ldb_msg_find_val: struct ldb_val *(const struct ldb_message_element *, struct 
ldb_val *)
+ldb_msg_new: struct ldb_message *(TALLOC_CTX *)
+ldb_msg_normalize: int (struct ldb_context *, TALLOC_CTX *, const struct 
ldb_message *, struct ldb_message **)
+ldb_msg_remove_attr: void (struct ldb_message *, const char *)
+ldb_msg_remove_element: void (struct ldb_message *, struct ldb_message_element 
*)
+ldb_msg_rename_attr: int (struct ldb_message *, const char *, const char *)
+ldb_msg_sanity_check: int (struct ldb_context *, const struct ldb_message *)
+ldb_msg_sort_elements: void (struct ldb_message *)
+ldb_next_del_trans: int (struct ldb_module *)
+ldb_next_end_trans: int (struct ldb_module *)
+ldb_next_init: int (struct ldb_module *)
+ldb_next_prepare_commit: int (struct ldb_module *)
+ldb_next_remote_request: int (struct ldb_module *, struct ldb_request *)
+ldb_next_request: int (struct ldb_module *, struct ldb_request *)
+ldb_next_start_trans: int (struct ldb_module *)
+ldb_op_default_callback: int (struct ldb_request *, struct ldb_reply *)
+ldb_options_find: const char *(struct ldb_context *, const char **, const char 
*)
+ldb_pack_data: int (struct ldb_context *, const struct ldb_message *, struct 
ldb_val *)
+ldb_parse_control_from_string: struct ldb_control *(struct ldb_context *, 
TALLOC_CTX *, const char *)
+ldb_parse_control_strings: struct ldb_control **(struct ldb_context *, 
TALLOC_CTX *, const char **)
+ldb_parse_tree: struct ldb_parse_tree *(TALLOC_CTX *, const char *)
+ldb_parse_tree_attr_replace: void (struct ldb_parse_tree *, const char *, 
const char *)
+ldb_parse_tree_copy_shallow: struct ldb_parse_tree *(TALLOC_CTX *, const 
struct ldb_parse_tree *)
+ldb_parse_tree_walk: int (struct ldb_parse_tree *, int (*)(struct 
ldb_parse_tree *, void *), void *)
+ldb_qsort: void (void * const, size_t, size_t, void *, ldb_qsort_cmp_fn_t)
+ldb_register_backend: int (const char *, ldb_connect_fn, bool)
+ldb_register_extended_match_rule: int (struct ldb_context *, const struct 
ldb_extended_match_rule *)
+ldb_register_hook: int (ldb_hook_fn)
+ldb_register_module: int (const struct ldb_module_ops *)
+ldb_rename: int (struct ldb_context *, struct ldb_dn *, struct ldb_dn *)
+ldb_reply_add_control: int (struct ldb_reply *, const char *, bool, void *)
+ldb_reply_get_control: struct ldb_control *(struct ldb_reply *, const char *)
+ldb_req_get_custom_flags: uint32_t (struct ldb_request *)
+ldb_req_is_untrusted: bool (struct ldb_request *)
+ldb_req_location: const char *(struct ldb_request *)
+ldb_req_mark_trusted: void (struct ldb_request *)
+ldb_req_mark_untrusted: void (struct ldb_request *)
+ldb_req_set_custom_flags: void (struct ldb_request *, uint32_t)
+ldb_req_set_location: void (struct ldb_request *, const char *)
+ldb_request: int (struct ldb_context *, struct ldb_request *)
+ldb_request_add_control: int (struct ldb_request *, const char *, bool, void *)
+ldb_request_done: int (struct ldb_request *, int)
+ldb_request_get_control: struct ldb_control *(struct ldb_request *, const char 
*)
+ldb_request_get_status: int (struct ldb_request *)
+ldb_request_replace_control: int (struct ldb_request *, const char *, bool, 
void *)
+ldb_request_set_state: void (struct ldb_request *, int)
+ldb_reset_err_string: void (struct ldb_context *)
+ldb_save_controls: int (struct ldb_control *, struct ldb_request *, struct 
ldb_control ***)
+ldb_schema_attribute_add: int (struct ldb_context *, const char *, unsigned 
int, const char *)
+ldb_schema_attribute_add_with_syntax: int (struct ldb_context *, const char *, 
unsigned int, const struct ldb_schema_syntax *)
+ldb_schema_attribute_by_name: const struct ldb_schema_attribute *(struct 
ldb_context *, const char *)
+ldb_schema_attribute_remove: void (struct ldb_context *, const char *)
+ldb_schema_attribute_set_override_handler: void (struct ldb_context *, 
ldb_attribute_handler_override_fn_t, void *)
+ldb_search: int (struct ldb_context *, TALLOC_CTX *, struct ldb_result **, 
struct ldb_dn *, enum ldb_scope, const char * const *, const char *, ...)
+ldb_search_default_callback: int (struct ldb_request *, struct ldb_reply *)
+ldb_sequence_number: int (struct ldb_context *, enum ldb_sequence_type, 
uint64_t *)
+ldb_set_create_perms: void (struct ldb_context *, unsigned int)
+ldb_set_debug: int (struct ldb_context *, void (*)(void *, enum 
ldb_debug_level, const char *, va_list), void *)
+ldb_set_debug_stderr: int (struct ldb_context *)
+ldb_set_default_dns: void (struct ldb_context *)
+ldb_set_errstring: void (struct ldb_context *, const char *)
+ldb_set_event_context: void (struct ldb_context *, struct tevent_context *)
+ldb_set_flags: void (struct ldb_context *, unsigned int)
+ldb_set_modules_dir: void (struct ldb_context *, const char *)
+ldb_set_opaque: int (struct ldb_context *, const char *, void *)
+ldb_set_timeout: int (struct ldb_context *, struct ldb_request *, int)
+ldb_set_timeout_from_prev_req: int (struct ldb_context *, struct ldb_request 
*, struct ldb_request *)
+ldb_set_utf8_default: void (struct ldb_context *)
+ldb_set_utf8_fns: void (struct ldb_context *, void *, char *(*)(void *, void 
*, const char *, size_t))
+ldb_setup_wellknown_attributes: int (struct ldb_context *)
+ldb_should_b64_encode: int (struct ldb_context *, const struct ldb_val *)
+ldb_standard_syntax_by_name: const struct ldb_schema_syntax *(struct 
ldb_context *, const char *)
+ldb_strerror: const char *(int)
+ldb_string_to_time: time_t (const char *)
+ldb_string_utc_to_time: time_t (const char *)
+ldb_timestring: char *(TALLOC_CTX *, time_t)
+ldb_timestring_utc: char *(TALLOC_CTX *, time_t)
+ldb_transaction_cancel: int (struct ldb_context *)
+ldb_transaction_cancel_noerr: int (struct ldb_context *)
+ldb_transaction_commit: int (struct ldb_context *)
+ldb_transaction_prepare_commit: int (struct ldb_context *)
+ldb_transaction_start: int (struct ldb_context *)
+ldb_unpack_data: int (struct ldb_context *, const struct ldb_val *, struct 
ldb_message *)
+ldb_val_dup: struct ldb_val (TALLOC_CTX *, const struct ldb_val *)
+ldb_val_equal_exact: int (const struct ldb_val *, const struct ldb_val *)
+ldb_val_map_local: struct ldb_val (struct ldb_module *, void *, const struct 
ldb_map_attribute *, const struct ldb_val *)
+ldb_val_map_remote: struct ldb_val (struct ldb_module *, void *, const struct 
ldb_map_attribute *, const struct ldb_val *)
+ldb_val_string_cmp: int (const struct ldb_val *, const char *)
+ldb_val_to_time: int (const struct ldb_val *, time_t *)
+ldb_valid_attr_name: int (const char *)
+ldb_vdebug: void (struct ldb_context *, enum ldb_debug_level, const char *, 
va_list)
+ldb_wait: int (struct ldb_handle *, enum ldb_wait_type)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ldb-1.1.18/ABI/pyldb-util-1.1.19.sigs 
new/ldb-1.1.19/ABI/pyldb-util-1.1.19.sigs
--- old/ldb-1.1.18/ABI/pyldb-util-1.1.19.sigs   1970-01-01 01:00:00.000000000 
+0100
+++ new/ldb-1.1.19/ABI/pyldb-util-1.1.19.sigs   2014-12-22 09:17:09.000000000 
+0100
@@ -0,0 +1,2 @@
+pyldb_Dn_FromDn: PyObject *(struct ldb_dn *)
+pyldb_Object_AsDn: bool (TALLOC_CTX *, PyObject *, struct ldb_context *, 
struct ldb_dn **)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ldb-1.1.18/buildtools/wafsamba/samba_bundled.py 
new/ldb-1.1.19/buildtools/wafsamba/samba_bundled.py
--- old/ldb-1.1.18/buildtools/wafsamba/samba_bundled.py 2014-09-16 
20:04:31.000000000 +0200
+++ new/ldb-1.1.19/buildtools/wafsamba/samba_bundled.py 2014-12-22 
09:17:09.000000000 +0100
@@ -7,11 +7,25 @@
 def PRIVATE_NAME(bld, name, private_extension, private_library):
     '''possibly rename a library to include a bundled extension'''
 
+    if not private_library:
+        return name
+
     # we now use the same private name for libraries as the public name.
     # see http://git.samba.org/?p=tridge/junkcode.git;a=tree;f=shlib for a
     # demonstration that this is the right thing to do
     # also see 
http://lists.samba.org/archive/samba-technical/2011-January/075816.html
-    return name
+    if private_extension:
+        return name
+
+    extension = bld.env.PRIVATE_EXTENSION
+
+    if extension and name.startswith('%s' % extension):
+        return name
+
+    if extension and name.endswith('%s' % extension):
+        return name
+
+    return "%s-%s" % (name, extension)
 
 
 def target_in_list(target, lst, default):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ldb-1.1.18/buildtools/wafsamba/wafsamba.py 
new/ldb-1.1.19/buildtools/wafsamba/wafsamba.py
--- old/ldb-1.1.18/buildtools/wafsamba/wafsamba.py      2014-11-29 
11:30:57.000000000 +0100
+++ new/ldb-1.1.19/buildtools/wafsamba/wafsamba.py      2014-12-22 
09:17:09.000000000 +0100
@@ -110,6 +110,7 @@
                   ldflags='',
                   external_library=False,
                   realname=None,
+                  keep_underscore=False,
                   autoproto=None,
                   autoproto_extra_source='',
                   group='main',
@@ -123,7 +124,7 @@
                   pyembed=False,
                   pyext=False,
                   target_type='LIBRARY',
-                  bundled_extension=True,
+                  bundled_extension=False,
                   link_name=None,
                   abi_directory=None,
                   abi_match=None,
@@ -212,10 +213,16 @@
                        libname)
 
     if target_type == 'PYTHON' or realname or not private_library:
-        bundled_name = libname.replace('_', '-')
+        if keep_underscore:
+            bundled_name = libname
+        else:
+            bundled_name = libname.replace('_', '-')
     else:
-        bundled_name = PRIVATE_NAME(bld, libname, bundled_extension,
-            private_library)
+        assert (private_library == True and realname is None)
+        if abi_directory or vnum or soname:
+            bundled_extension=True
+        bundled_name = PRIVATE_NAME(bld, libname.replace('_', '-'),
+                                    bundled_extension, private_library)
 
     ldflags = TO_LIST(ldflags)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ldb-1.1.18/buildtools/wafsamba/wscript 
new/ldb-1.1.19/buildtools/wafsamba/wscript
--- old/ldb-1.1.18/buildtools/wafsamba/wscript  2014-09-16 20:04:31.000000000 
+0200
+++ new/ldb-1.1.19/buildtools/wafsamba/wscript  2014-12-22 09:17:09.000000000 
+0100
@@ -295,6 +295,10 @@
                     headers='stdio.h',
                     msg='Checking simple C program')
 
+    # check which compiler/linker flags are needed for rpath support
+    if not conf.CHECK_LDFLAGS(['-Wl,-rpath,.']) and 
conf.CHECK_LDFLAGS(['-Wl,-R,.']):
+        conf.env['RPATH_ST'] = '-Wl,-R,%s'
+
     # check for rpath
     if conf.CHECK_LIBRARY_SUPPORT(rpath=True):
         support_rpath = True
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ldb-1.1.18/common/ldb.c new/ldb-1.1.19/common/ldb.c
--- old/ldb-1.1.18/common/ldb.c 2014-09-16 20:04:31.000000000 +0200
+++ new/ldb-1.1.19/common/ldb.c 2014-12-22 09:17:09.000000000 +0100
@@ -130,6 +130,11 @@
        ldb_set_create_perms(ldb, 0666);
        ldb_set_modules_dir(ldb, LDB_MODULESDIR);
        ldb_set_event_context(ldb, ev_ctx);
+       ret = ldb_register_extended_match_rules(ldb);
+       if (ret != LDB_SUCCESS) {
+               talloc_free(ldb);
+               return NULL;
+       }
 
        /* TODO: get timeout from options if available there */
        ldb->default_timeout = 300; /* set default to 5 minutes */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ldb-1.1.18/common/ldb_match.c 
new/ldb-1.1.19/common/ldb_match.c
--- old/ldb-1.1.18/common/ldb_match.c   2014-09-16 20:04:31.000000000 +0200
+++ new/ldb-1.1.19/common/ldb_match.c   2014-12-22 09:17:09.000000000 +0100
@@ -33,6 +33,7 @@
  */
 
 #include "ldb_private.h"
+#include "dlinklist.h"
 
 /*
   check if the scope matches in a search result
@@ -342,7 +343,7 @@
 
 
 /*
-  bitwise-and comparator
+  bitwise and/or comparator depending on oid
 */
 static int ldb_comparator_bitmask(const char *oid, const struct ldb_val *v1, 
const struct ldb_val *v2,
                                  bool *matched)
@@ -385,10 +386,48 @@
        return LDB_SUCCESS;
 }
 
+static int ldb_match_bitmask(struct ldb_context *ldb,
+                            const char *oid,
+                            const struct ldb_message *msg,
+                            const char *attribute_to_match,
+                            const struct ldb_val *value_to_match,
+                            bool *matched)
+{
+       unsigned int i;
+       struct ldb_message_element *el;
+
+       /* find the message element */
+       el = ldb_msg_find_element(msg, attribute_to_match);
+       if (el == NULL) {
+               *matched = false;
+               return LDB_SUCCESS;
+       }
+
+       for (i=0;i<el->num_values;i++) {
+               int ret;
+               struct ldb_val *v = &el->values[i];
+
+               ret = ldb_comparator_bitmask(oid, v, value_to_match, matched);
+               if (ret != LDB_SUCCESS) {
+                       return ret;
+               }
+               if (*matched) {
+                       return LDB_SUCCESS;
+               }
+       }
+
+       *matched = false;
+       return LDB_SUCCESS;
+}
+
 /*
   always return false
 */
-static int ldb_comparator_false(const char *oid, const struct ldb_val *v1, 
const struct ldb_val *v2,
+static int ldb_comparator_false(struct ldb_context *ldb,
+                               const char *oid,
+                               const struct ldb_message *msg,
+                               const char *attribute_to_match,
+                               const struct ldb_val *value_to_match,
                                bool *matched)
 {
        *matched = false;
@@ -396,6 +435,23 @@
 }
 
 
+static const struct ldb_extended_match_rule 
*ldb_find_extended_match_rule(struct ldb_context *ldb,
+                                                                         const 
char *oid)
+{
+       struct ldb_extended_match_entry *extended_match_rule;
+
+       for (extended_match_rule = ldb->extended_match_rules;
+            extended_match_rule;
+            extended_match_rule = extended_match_rule->next) {
+               if (strcmp(extended_match_rule->rule->oid, oid) == 0) {
+                       return extended_match_rule->rule;
+               }
+       }
+
+       return NULL;
+}
+
+
 /*
   extended match, handles things like bitops
 */
@@ -404,17 +460,7 @@
                              const struct ldb_parse_tree *tree,
                              enum ldb_scope scope, bool *matched)
 {
-       unsigned int i;
-       const struct {
-               const char *oid;
-               int (*comparator)(const char *, const struct ldb_val *, const 
struct ldb_val *, bool *);
-       } rules[] = {
-               { LDB_OID_COMPARATOR_AND, ldb_comparator_bitmask},
-               { LDB_OID_COMPARATOR_OR, ldb_comparator_bitmask},
-               { SAMBA_LDAP_MATCH_ALWAYS_FALSE, ldb_comparator_false}
-       };
-       int (*comp)(const char *,const struct ldb_val *, const struct ldb_val 
*, bool *) = NULL;
-       struct ldb_message_element *el;
+       const struct ldb_extended_match_rule *rule;
 
        if (tree->u.extended.dnAttributes) {
                /* FIXME: We really need to find out what this ":dn" part in
@@ -432,33 +478,16 @@
                return LDB_ERR_INAPPROPRIATE_MATCHING;
        }
 
-       for (i=0;i<ARRAY_SIZE(rules);i++) {
-               if (strcmp(rules[i].oid, tree->u.extended.rule_id) == 0) {
-                       comp = rules[i].comparator;
-                       break;
-               }
-       }
-       if (comp == NULL) {
+       rule = ldb_find_extended_match_rule(ldb, tree->u.extended.rule_id);
+       if (rule == NULL) {
                ldb_debug(ldb, LDB_DEBUG_ERROR, "ldb: unknown extended rule_id 
%s",
                          tree->u.extended.rule_id);
                return LDB_ERR_INAPPROPRIATE_MATCHING;
        }
 
-       /* find the message element */
-       el = ldb_msg_find_element(msg, tree->u.extended.attr);
-       if (el == NULL) {
-               *matched = false;
-               return LDB_SUCCESS;
-       }
-
-       for (i=0;i<el->num_values;i++) {
-               int ret = comp(tree->u.extended.rule_id, &el->values[i], 
&tree->u.extended.value, matched);
-               if (ret != LDB_SUCCESS) return ret;
-               if (*matched) return LDB_SUCCESS;
-       }
-
-       *matched = false;
-       return LDB_SUCCESS;
+       return rule->callback(ldb, rule->oid, msg,
+                             tree->u.extended.attr,
+                             &tree->u.extended.value, matched);
 }
 
 /*
@@ -587,5 +616,81 @@
        return 0;
 }
 
+_PRIVATE_ int ldb_register_extended_match_rules(struct ldb_context *ldb)
+{
+       struct ldb_extended_match_rule *bitmask_and;
+       struct ldb_extended_match_rule *bitmask_or;
+       struct ldb_extended_match_rule *always_false;
+       int ret;
+
+       /* Register bitmask-and match */
+       bitmask_and = talloc_zero(ldb, struct ldb_extended_match_rule);
+       if (bitmask_and == NULL) {
+               return LDB_ERR_OPERATIONS_ERROR;
+       }
+
+       bitmask_and->oid = LDB_OID_COMPARATOR_AND;
+       bitmask_and->callback = ldb_match_bitmask;
+
+       ret = ldb_register_extended_match_rule(ldb, bitmask_and);
+       if (ret != LDB_SUCCESS) {
+               return ret;
+       }
+
+       /* Register bitmask-or match */
+       bitmask_or = talloc_zero(ldb, struct ldb_extended_match_rule);
+       if (bitmask_or == NULL) {
+               return LDB_ERR_OPERATIONS_ERROR;
+       }
+
+       bitmask_or->oid = LDB_OID_COMPARATOR_OR;
+       bitmask_or->callback = ldb_match_bitmask;
+
+       ret = ldb_register_extended_match_rule(ldb, bitmask_or);
+       if (ret != LDB_SUCCESS) {
+               return ret;
+       }
+
+       /* Register always-false match */
+       always_false = talloc_zero(ldb, struct ldb_extended_match_rule);
+       if (always_false == NULL) {
+               return LDB_ERR_OPERATIONS_ERROR;
+       }
+
+       always_false->oid = SAMBA_LDAP_MATCH_ALWAYS_FALSE;
+       always_false->callback = ldb_comparator_false;
+
+       ret = ldb_register_extended_match_rule(ldb, always_false);
+       if (ret != LDB_SUCCESS) {
+               return ret;
+       }
+
+       return LDB_SUCCESS;
+}
+
+/*
+  register a new ldb backend
+
+  if override is true, then override any existing backend for this prefix
+*/
+int ldb_register_extended_match_rule(struct ldb_context *ldb,
+                                    const struct ldb_extended_match_rule *rule)
+{
+       const struct ldb_extended_match_rule *lookup_rule;
+       struct ldb_extended_match_entry *entry;
+
+       lookup_rule = ldb_find_extended_match_rule(ldb, rule->oid);
+       if (lookup_rule) {
+               return LDB_ERR_ENTRY_ALREADY_EXISTS;
+       }
+
+       entry = talloc_zero(ldb, struct ldb_extended_match_entry);
+       if (!entry) {
+               return LDB_ERR_OPERATIONS_ERROR;
+       }
+       entry->rule = rule;
+       DLIST_ADD_END(ldb->extended_match_rules, entry, struct 
ldb_extended_match_entry);
+
+       return LDB_SUCCESS;
+}
 
-                             
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ldb-1.1.18/include/ldb_module.h 
new/ldb-1.1.19/include/ldb_module.h
--- old/ldb-1.1.18/include/ldb_module.h 2014-09-16 20:04:31.000000000 +0200
+++ new/ldb-1.1.19/include/ldb_module.h 2014-12-22 09:17:09.000000000 +0100
@@ -162,6 +162,8 @@
 int ldb_match_msg_objectclass(const struct ldb_message *msg,
                              const char *objectclass);
 
+int ldb_register_extended_match_rules(struct ldb_context *ldb);
+
 /* The following definitions come from lib/ldb/common/ldb_modules.c  */
 
 struct ldb_module *ldb_module_new(TALLOC_CTX *memctx,
@@ -369,4 +371,15 @@
                                   const struct ldb_message_element *el2);
 
 
+struct ldb_extended_match_rule
+{
+       const char *oid;
+       int (*callback)(struct ldb_context *, const char *oid,
+                       const struct ldb_message *, const char *,
+                       const struct ldb_val *, bool *);
+};
+
+int ldb_register_extended_match_rule(struct ldb_context *ldb,
+                                    const struct ldb_extended_match_rule 
*rule);
+
 #endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ldb-1.1.18/include/ldb_private.h 
new/ldb-1.1.19/include/ldb_private.h
--- old/ldb-1.1.18/include/ldb_private.h        2014-09-16 20:04:31.000000000 
+0200
+++ new/ldb-1.1.19/include/ldb_private.h        2014-12-22 09:17:09.000000000 
+0100
@@ -100,6 +100,12 @@
        /* debugging operations */
        struct ldb_debug_ops debug_ops;
 
+       /* extended matching rules */
+       struct ldb_extended_match_entry {
+               const struct ldb_extended_match_rule *rule;
+               struct ldb_extended_match_entry *prev, *next;
+       } *extended_match_rules;
+
        /* custom utf8 functions */
        struct ldb_utf8_fns utf8_fns;
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ldb-1.1.18/lib/tdb/ABI/tdb-1.3.3.sigs 
new/ldb-1.1.19/lib/tdb/ABI/tdb-1.3.3.sigs
--- old/ldb-1.1.18/lib/tdb/ABI/tdb-1.3.3.sigs   1970-01-01 01:00:00.000000000 
+0100
+++ new/ldb-1.1.19/lib/tdb/ABI/tdb-1.3.3.sigs   2014-12-02 09:30:09.000000000 
+0100
@@ -0,0 +1,68 @@
+tdb_add_flags: void (struct tdb_context *, unsigned int)
+tdb_append: int (struct tdb_context *, TDB_DATA, TDB_DATA)
+tdb_chainlock: int (struct tdb_context *, TDB_DATA)
+tdb_chainlock_mark: int (struct tdb_context *, TDB_DATA)
+tdb_chainlock_nonblock: int (struct tdb_context *, TDB_DATA)
+tdb_chainlock_read: int (struct tdb_context *, TDB_DATA)
+tdb_chainlock_unmark: int (struct tdb_context *, TDB_DATA)
+tdb_chainunlock: int (struct tdb_context *, TDB_DATA)
+tdb_chainunlock_read: int (struct tdb_context *, TDB_DATA)
+tdb_check: int (struct tdb_context *, int (*)(TDB_DATA, TDB_DATA, void *), 
void *)
+tdb_close: int (struct tdb_context *)
+tdb_delete: int (struct tdb_context *, TDB_DATA)
+tdb_dump_all: void (struct tdb_context *)
+tdb_enable_seqnum: void (struct tdb_context *)
+tdb_error: enum TDB_ERROR (struct tdb_context *)
+tdb_errorstr: const char *(struct tdb_context *)
+tdb_exists: int (struct tdb_context *, TDB_DATA)
+tdb_fd: int (struct tdb_context *)
+tdb_fetch: TDB_DATA (struct tdb_context *, TDB_DATA)
+tdb_firstkey: TDB_DATA (struct tdb_context *)
+tdb_freelist_size: int (struct tdb_context *)
+tdb_get_flags: int (struct tdb_context *)
+tdb_get_logging_private: void *(struct tdb_context *)
+tdb_get_seqnum: int (struct tdb_context *)
+tdb_hash_size: int (struct tdb_context *)
+tdb_increment_seqnum_nonblock: void (struct tdb_context *)
+tdb_jenkins_hash: unsigned int (TDB_DATA *)
+tdb_lock_nonblock: int (struct tdb_context *, int, int)
+tdb_lockall: int (struct tdb_context *)
+tdb_lockall_mark: int (struct tdb_context *)
+tdb_lockall_nonblock: int (struct tdb_context *)
+tdb_lockall_read: int (struct tdb_context *)
+tdb_lockall_read_nonblock: int (struct tdb_context *)
+tdb_lockall_unmark: int (struct tdb_context *)
+tdb_log_fn: tdb_log_func (struct tdb_context *)
+tdb_map_size: size_t (struct tdb_context *)
+tdb_name: const char *(struct tdb_context *)
+tdb_nextkey: TDB_DATA (struct tdb_context *, TDB_DATA)
+tdb_null: dptr = 0xXXXX, dsize = 0
+tdb_open: struct tdb_context *(const char *, int, int, int, mode_t)
+tdb_open_ex: struct tdb_context *(const char *, int, int, int, mode_t, const 
struct tdb_logging_context *, tdb_hash_func)
+tdb_parse_record: int (struct tdb_context *, TDB_DATA, int (*)(TDB_DATA, 
TDB_DATA, void *), void *)
+tdb_printfreelist: int (struct tdb_context *)
+tdb_remove_flags: void (struct tdb_context *, unsigned int)
+tdb_reopen: int (struct tdb_context *)
+tdb_reopen_all: int (int)
+tdb_repack: int (struct tdb_context *)
+tdb_rescue: int (struct tdb_context *, void (*)(TDB_DATA, TDB_DATA, void *), 
void *)
+tdb_runtime_check_for_robust_mutexes: bool (void)
+tdb_set_logging_function: void (struct tdb_context *, const struct 
tdb_logging_context *)
+tdb_set_max_dead: void (struct tdb_context *, int)
+tdb_setalarm_sigptr: void (struct tdb_context *, volatile sig_atomic_t *)
+tdb_store: int (struct tdb_context *, TDB_DATA, TDB_DATA, int)
+tdb_summary: char *(struct tdb_context *)
+tdb_transaction_cancel: int (struct tdb_context *)
+tdb_transaction_commit: int (struct tdb_context *)
+tdb_transaction_prepare_commit: int (struct tdb_context *)
+tdb_transaction_start: int (struct tdb_context *)
+tdb_transaction_start_nonblock: int (struct tdb_context *)
+tdb_transaction_write_lock_mark: int (struct tdb_context *)
+tdb_transaction_write_lock_unmark: int (struct tdb_context *)
+tdb_traverse: int (struct tdb_context *, tdb_traverse_func, void *)
+tdb_traverse_read: int (struct tdb_context *, tdb_traverse_func, void *)
+tdb_unlock: int (struct tdb_context *, int, int)
+tdb_unlockall: int (struct tdb_context *)
+tdb_unlockall_read: int (struct tdb_context *)
+tdb_validate_freelist: int (struct tdb_context *, int *)
+tdb_wipe_all: int (struct tdb_context *)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ldb-1.1.18/lib/tdb/ABI/tdb-1.3.4.sigs 
new/ldb-1.1.19/lib/tdb/ABI/tdb-1.3.4.sigs
--- old/ldb-1.1.18/lib/tdb/ABI/tdb-1.3.4.sigs   1970-01-01 01:00:00.000000000 
+0100
+++ new/ldb-1.1.19/lib/tdb/ABI/tdb-1.3.4.sigs   2014-12-22 09:14:32.000000000 
+0100
@@ -0,0 +1,68 @@
+tdb_add_flags: void (struct tdb_context *, unsigned int)
+tdb_append: int (struct tdb_context *, TDB_DATA, TDB_DATA)
+tdb_chainlock: int (struct tdb_context *, TDB_DATA)
+tdb_chainlock_mark: int (struct tdb_context *, TDB_DATA)
+tdb_chainlock_nonblock: int (struct tdb_context *, TDB_DATA)
+tdb_chainlock_read: int (struct tdb_context *, TDB_DATA)
+tdb_chainlock_unmark: int (struct tdb_context *, TDB_DATA)
+tdb_chainunlock: int (struct tdb_context *, TDB_DATA)
+tdb_chainunlock_read: int (struct tdb_context *, TDB_DATA)
+tdb_check: int (struct tdb_context *, int (*)(TDB_DATA, TDB_DATA, void *), 
void *)
+tdb_close: int (struct tdb_context *)
+tdb_delete: int (struct tdb_context *, TDB_DATA)
+tdb_dump_all: void (struct tdb_context *)
+tdb_enable_seqnum: void (struct tdb_context *)
+tdb_error: enum TDB_ERROR (struct tdb_context *)
+tdb_errorstr: const char *(struct tdb_context *)
+tdb_exists: int (struct tdb_context *, TDB_DATA)
+tdb_fd: int (struct tdb_context *)
+tdb_fetch: TDB_DATA (struct tdb_context *, TDB_DATA)
+tdb_firstkey: TDB_DATA (struct tdb_context *)
+tdb_freelist_size: int (struct tdb_context *)
+tdb_get_flags: int (struct tdb_context *)
+tdb_get_logging_private: void *(struct tdb_context *)
+tdb_get_seqnum: int (struct tdb_context *)
+tdb_hash_size: int (struct tdb_context *)
+tdb_increment_seqnum_nonblock: void (struct tdb_context *)
+tdb_jenkins_hash: unsigned int (TDB_DATA *)
+tdb_lock_nonblock: int (struct tdb_context *, int, int)
+tdb_lockall: int (struct tdb_context *)
+tdb_lockall_mark: int (struct tdb_context *)
+tdb_lockall_nonblock: int (struct tdb_context *)
+tdb_lockall_read: int (struct tdb_context *)
+tdb_lockall_read_nonblock: int (struct tdb_context *)
+tdb_lockall_unmark: int (struct tdb_context *)
+tdb_log_fn: tdb_log_func (struct tdb_context *)
+tdb_map_size: size_t (struct tdb_context *)
+tdb_name: const char *(struct tdb_context *)
+tdb_nextkey: TDB_DATA (struct tdb_context *, TDB_DATA)
+tdb_null: dptr = 0xXXXX, dsize = 0
+tdb_open: struct tdb_context *(const char *, int, int, int, mode_t)
+tdb_open_ex: struct tdb_context *(const char *, int, int, int, mode_t, const 
struct tdb_logging_context *, tdb_hash_func)
+tdb_parse_record: int (struct tdb_context *, TDB_DATA, int (*)(TDB_DATA, 
TDB_DATA, void *), void *)
+tdb_printfreelist: int (struct tdb_context *)
+tdb_remove_flags: void (struct tdb_context *, unsigned int)
+tdb_reopen: int (struct tdb_context *)
+tdb_reopen_all: int (int)
+tdb_repack: int (struct tdb_context *)
+tdb_rescue: int (struct tdb_context *, void (*)(TDB_DATA, TDB_DATA, void *), 
void *)
+tdb_runtime_check_for_robust_mutexes: bool (void)
+tdb_set_logging_function: void (struct tdb_context *, const struct 
tdb_logging_context *)
+tdb_set_max_dead: void (struct tdb_context *, int)
+tdb_setalarm_sigptr: void (struct tdb_context *, volatile sig_atomic_t *)
+tdb_store: int (struct tdb_context *, TDB_DATA, TDB_DATA, int)
+tdb_summary: char *(struct tdb_context *)
+tdb_transaction_cancel: int (struct tdb_context *)
+tdb_transaction_commit: int (struct tdb_context *)
+tdb_transaction_prepare_commit: int (struct tdb_context *)
+tdb_transaction_start: int (struct tdb_context *)
+tdb_transaction_start_nonblock: int (struct tdb_context *)
+tdb_transaction_write_lock_mark: int (struct tdb_context *)
+tdb_transaction_write_lock_unmark: int (struct tdb_context *)
+tdb_traverse: int (struct tdb_context *, tdb_traverse_func, void *)
+tdb_traverse_read: int (struct tdb_context *, tdb_traverse_func, void *)
+tdb_unlock: int (struct tdb_context *, int, int)
+tdb_unlockall: int (struct tdb_context *)
+tdb_unlockall_read: int (struct tdb_context *)
+tdb_validate_freelist: int (struct tdb_context *, int *)
+tdb_wipe_all: int (struct tdb_context *)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ldb-1.1.18/lib/tdb/common/transaction.c 
new/ldb-1.1.19/lib/tdb/common/transaction.c
--- old/ldb-1.1.18/lib/tdb/common/transaction.c 2014-09-16 20:04:31.000000000 
+0200
+++ new/ldb-1.1.19/lib/tdb/common/transaction.c 2014-12-22 09:14:32.000000000 
+0100
@@ -421,7 +421,7 @@
                                  enum tdb_lock_flags lockflags)
 {
        /* some sanity checks */
-       if (tdb->read_only || (tdb->flags & (TDB_INTERNAL|TDB_MUTEX_LOCKING))
+       if (tdb->read_only || (tdb->flags & TDB_INTERNAL)
            || tdb->traverse_read) {
                TDB_LOG((tdb, TDB_DEBUG_ERROR, "tdb_transaction_start: cannot 
start a transaction on a read-only or internal db\n"));
                tdb->ecode = TDB_ERR_EINVAL;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ldb-1.1.18/lib/tdb/test/run-mutex-openflags2.c 
new/ldb-1.1.19/lib/tdb/test/run-mutex-openflags2.c
--- old/ldb-1.1.18/lib/tdb/test/run-mutex-openflags2.c  2014-09-16 
20:04:31.000000000 +0200
+++ new/ldb-1.1.19/lib/tdb/test/run-mutex-openflags2.c  2014-12-02 
09:30:01.000000000 +0100
@@ -75,8 +75,9 @@
                          TDB_CLEAR_IF_FIRST |
                          TDB_MUTEX_LOCKING,
                          O_RDONLY, 0755, &nolog_ctx, NULL);
-       ok((tdb == NULL) && (errno == EINVAL), "TDB_MUTEX_LOCKING with "
-          "O_RDONLY should fail with EINVAL - %d", errno);
+       ok((tdb != NULL), "TDB_MUTEX_LOCKING with "
+          "O_RDONLY should work - %d", errno);
+       tdb_close(tdb);
 
        tdb = tdb_open_ex("mutex-openflags2.tdb", 0,
                          TDB_CLEAR_IF_FIRST |
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ldb-1.1.18/lib/tdb/test/run-mutex-transaction1.c 
new/ldb-1.1.19/lib/tdb/test/run-mutex-transaction1.c
--- old/ldb-1.1.18/lib/tdb/test/run-mutex-transaction1.c        1970-01-01 
01:00:00.000000000 +0100
+++ new/ldb-1.1.19/lib/tdb/test/run-mutex-transaction1.c        2014-12-22 
09:14:32.000000000 +0100
@@ -0,0 +1,236 @@
+#include "../common/tdb_private.h"
+#include "../common/io.c"
+#include "../common/tdb.c"
+#include "../common/lock.c"
+#include "../common/freelist.c"
+#include "../common/traverse.c"
+#include "../common/transaction.c"
+#include "../common/error.c"
+#include "../common/open.c"
+#include "../common/check.c"
+#include "../common/hash.c"
+#include "../common/mutex.c"
+#include "tap-interface.h"
+#include <stdlib.h>
+#include <sys/types.h>
+#include <sys/wait.h>
+#include <stdarg.h>
+
+static TDB_DATA key, data;
+
+static void log_fn(struct tdb_context *tdb, enum tdb_debug_level level,
+                  const char *fmt, ...)
+{
+       va_list ap;
+       va_start(ap, fmt);
+       vfprintf(stderr, fmt, ap);
+       va_end(ap);
+}
+
+static int do_child(int tdb_flags, int to, int from)
+{
+       struct tdb_context *tdb;
+       unsigned int log_count;
+       struct tdb_logging_context log_ctx = { log_fn, &log_count };
+       int ret;
+       char c = 0;
+
+       tdb = tdb_open_ex("mutex-transaction1.tdb", 3, tdb_flags,
+                         O_RDWR|O_CREAT, 0755, &log_ctx, NULL);
+       ok(tdb, "tdb_open_ex should succeed");
+
+       ret = tdb_transaction_start(tdb);
+       ok(ret == 0, "tdb_transaction_start should succeed");
+
+       ret = tdb_store(tdb, key, data, TDB_INSERT);
+       ok(ret == 0, "tdb_store(tdb, key, data, TDB_INSERT) should succeed");
+
+       write(to, &c, sizeof(c));
+       read(from, &c, sizeof(c));
+
+       ret = tdb_transaction_cancel(tdb);
+       ok(ret == 0, "tdb_transaction_cancel should succeed");
+
+       write(to, &c, sizeof(c));
+       read(from, &c, sizeof(c));
+
+       ret = tdb_transaction_start(tdb);
+       ok(ret == 0, "tdb_transaction_start should succeed");
+
+       ret = tdb_store(tdb, key, data, TDB_INSERT);
+       ok(ret == 0, "tdb_store(tdb, key, data, TDB_INSERT) should succeed");
+
+       write(to, &c, sizeof(c));
+       read(from, &c, sizeof(c));
+
+       ret = tdb_transaction_commit(tdb);
+       ok(ret == 0, "tdb_transaction_commit should succeed");
+
+       write(to, &c, sizeof(c));
+       read(from, &c, sizeof(c));
+
+       ret = tdb_transaction_start(tdb);
+       ok(ret == 0, "tdb_transaction_start should succeed");
+
+       ret = tdb_store(tdb, key, key, TDB_REPLACE);
+       ok(ret == 0, "tdb_store(tdb, key, data, TDB_REPLACE) should succeed");
+
+       write(to, &c, sizeof(c));
+       read(from, &c, sizeof(c));
+
+       ret = tdb_transaction_commit(tdb);
+       ok(ret == 0, "tdb_transaction_commit should succeed");
+
+       write(to, &c, sizeof(c));
+       read(from, &c, sizeof(c));
+
+       return 0;
+}
+
+/* The code should barf on TDBs created with rwlocks. */
+int main(int argc, char *argv[])
+{
+       struct tdb_context *tdb;
+       unsigned int log_count;
+       struct tdb_logging_context log_ctx = { log_fn, &log_count };
+       int ret, status;
+       pid_t child, wait_ret;
+       int fromchild[2];
+       int tochild[2];
+       TDB_DATA val;
+       char c;
+       int tdb_flags;
+       bool runtime_support;
+
+       runtime_support = tdb_runtime_check_for_robust_mutexes();
+
+       if (!runtime_support) {
+               skip(1, "No robust mutex support");
+               return exit_status();
+       }
+
+       key.dsize = strlen("hi");
+       key.dptr = discard_const_p(uint8_t, "hi");
+       data.dsize = strlen("world");
+       data.dptr = discard_const_p(uint8_t, "world");
+
+       pipe(fromchild);
+       pipe(tochild);
+
+       tdb_flags = TDB_INCOMPATIBLE_HASH|
+               TDB_MUTEX_LOCKING|
+               TDB_CLEAR_IF_FIRST;
+
+       child = fork();
+       if (child == 0) {
+               close(fromchild[0]);
+               close(tochild[1]);
+               return do_child(tdb_flags, fromchild[1], tochild[0]);
+       }
+       close(fromchild[1]);
+       close(tochild[0]);
+
+       read(fromchild[0], &c, sizeof(c));
+
+       tdb = tdb_open_ex("mutex-transaction1.tdb", 0,
+                         tdb_flags, O_RDWR|O_CREAT, 0755,
+                         &log_ctx, NULL);
+       ok(tdb, "tdb_open_ex should succeed");
+
+       /*
+        * The child has the transaction running
+        */
+       ret = tdb_transaction_start_nonblock(tdb);
+       ok(ret == -1, "tdb_transaction_start_nonblock not succeed");
+
+       ret = tdb_chainlock_nonblock(tdb, key);
+       ok(ret == -1, "tdb_chainlock_nonblock should not succeed");
+
+       /*
+        * We can still read
+        */
+       ret = tdb_exists(tdb, key);
+       ok(ret == 0, "tdb_exists(tdb, key) should return 0");
+
+       val = tdb_fetch(tdb, key);
+       ok(val.dsize == 0, "tdb_fetch(tdb, key) should return an empty value");
+
+       write(tochild[1], &c, sizeof(c));
+
+       /*
+        * When the child canceled we can start...
+        */
+       ret = tdb_transaction_start(tdb);
+       ok(ret == 0, "tdb_transaction_start should succeed");
+
+       read(fromchild[0], &c, sizeof(c));
+       write(tochild[1], &c, sizeof(c));
+
+       ret = tdb_transaction_cancel(tdb);
+       ok(ret == 0, "tdb_transaction_cancel should succeed");
+
+       /*
+        * When we canceled the child can start and store...
+        */
+       read(fromchild[0], &c, sizeof(c));
+
+       /*
+        * We still see the old values before the child commits...
+        */
+       ret = tdb_exists(tdb, key);
+       ok(ret == 0, "tdb_exists(tdb, key) should return 0");
+
+       val = tdb_fetch(tdb, key);
+       ok(val.dsize == 0, "tdb_fetch(tdb, key) should return an empty value");
+
+       write(tochild[1], &c, sizeof(c));
+       read(fromchild[0], &c, sizeof(c));
+
+       /*
+        * We see the new values after the commit...
+        */
+       ret = tdb_exists(tdb, key);
+       ok(ret == 1, "tdb_exists(tdb, key) should return 1");
+
+       val = tdb_fetch(tdb, key);
+       ok(val.dsize != 0, "tdb_fetch(tdb, key) should return a value");
+       ok(val.dsize == data.dsize, "tdb_fetch(tdb, key) should return a 
value");
+       ok(memcmp(val.dptr, data.dptr, data.dsize) == 0, "tdb_fetch(tdb, key) 
should return a value");
+
+       write(tochild[1], &c, sizeof(c));
+       read(fromchild[0], &c, sizeof(c));
+
+       /*
+        * The child started a new transaction and replaces the value,
+        * but we still see the old values before the child commits...
+        */
+       ret = tdb_exists(tdb, key);
+       ok(ret == 1, "tdb_exists(tdb, key) should return 1");
+
+       val = tdb_fetch(tdb, key);
+       ok(val.dsize != 0, "tdb_fetch(tdb, key) should return a value");
+       ok(val.dsize == data.dsize, "tdb_fetch(tdb, key) should return a 
value");
+       ok(memcmp(val.dptr, data.dptr, data.dsize) == 0, "tdb_fetch(tdb, key) 
should return a value");
+
+       write(tochild[1], &c, sizeof(c));
+       read(fromchild[0], &c, sizeof(c));
+
+       /*
+        * We see the new values after the commit...
+        */
+       ret = tdb_exists(tdb, key);
+       ok(ret == 1, "tdb_exists(tdb, key) should return 1");
+
+       val = tdb_fetch(tdb, key);
+       ok(val.dsize != 0, "tdb_fetch(tdb, key) should return a value");
+       ok(val.dsize == key.dsize, "tdb_fetch(tdb, key) should return a value");
+       ok(memcmp(val.dptr, key.dptr, key.dsize) == 0, "tdb_fetch(tdb, key) 
should return a value");
+
+       write(tochild[1], &c, sizeof(c));
+
+       wait_ret = wait(&status);
+       ok(wait_ret == child, "child should have exited correctly");
+
+       diag("done");
+       return exit_status();
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ldb-1.1.18/lib/tdb/tools/tdbtorture.c 
new/ldb-1.1.19/lib/tdb/tools/tdbtorture.c
--- old/ldb-1.1.18/lib/tdb/tools/tdbtorture.c   2014-09-16 20:04:31.000000000 
+0200
+++ new/ldb-1.1.19/lib/tdb/tools/tdbtorture.c   2014-12-22 09:14:32.000000000 
+0100
@@ -120,7 +120,6 @@
 
 #if TRANSACTION_PROB
        if (in_transaction == 0 &&
-           ((tdb_get_flags(db) & TDB_MUTEX_LOCKING) == 0) &&
            (always_transaction || random() % TRANSACTION_PROB == 0)) {
                if (tdb_transaction_start(db) != 0) {
                        fatal("tdb_transaction_start failed");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ldb-1.1.18/lib/tdb/wscript 
new/ldb-1.1.19/lib/tdb/wscript
--- old/ldb-1.1.18/lib/tdb/wscript      2014-11-29 11:35:42.000000000 +0100
+++ new/ldb-1.1.19/lib/tdb/wscript      2014-12-22 09:14:32.000000000 +0100
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 
 APPNAME = 'tdb'
-VERSION = '1.3.2'
+VERSION = '1.3.4'
 
 blddir = 'bin'
 
@@ -46,6 +46,7 @@
     'run-mutex-allrecord-bench',
     'run-mutex-allrecord-trylock',
     'run-mutex-allrecord-block',
+    'run-mutex-transaction1',
     'run-mutex-die',
     'run-mutex1',
 ]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ldb-1.1.18/wscript new/ldb-1.1.19/wscript
--- old/ldb-1.1.18/wscript      2014-11-30 18:29:50.000000000 +0100
+++ new/ldb-1.1.19/wscript      2014-12-22 09:17:09.000000000 +0100
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 
 APPNAME = 'ldb'
-VERSION = '1.1.18'
+VERSION = '1.1.19'
 
 blddir = 'bin'
 


-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to