Hello community, here is the log from the commit of package talloc for openSUSE:Factory checked in at 2018-04-17 11:11:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/talloc (Old) and /work/SRC/openSUSE:Factory/.talloc.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "talloc" Tue Apr 17 11:11:29 2018 rev:31 rq:595316 version:2.1.13 Changes: -------- --- /work/SRC/openSUSE:Factory/talloc/talloc-man.changes 2018-04-04 11:13:25.390630537 +0200 +++ /work/SRC/openSUSE:Factory/.talloc.new/talloc-man.changes 2018-04-17 11:11:33.155194837 +0200 @@ -1,0 +2,8 @@ +Thu Apr 5 23:23:22 UTC 2018 - jmcdono...@suse.com + +- Update to version 2.1.13 + + Use atexit() again instead of a library destructor; (bso#13366); + (bso#7587). + + Prevent assert in sssd (bso#7587). + +------------------------------------------------------------------- talloc.changes: same change Old: ---- talloc-2.1.11.tar.asc talloc-2.1.11.tar.gz New: ---- talloc-2.1.13.tar.asc talloc-2.1.13.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ talloc-man.spec ++++++ --- /var/tmp/diff_new_pack.kh7gBG/_old 2018-04-17 11:11:34.095150744 +0200 +++ /var/tmp/diff_new_pack.kh7gBG/_new 2018-04-17 11:11:34.099150556 +0200 @@ -44,13 +44,13 @@ #!BuildIgnore: python %endif # build_man Url: http://talloc.samba.org/ -Version: 2.1.11 +Version: 2.1.13 Release: 0 Summary: Samba talloc Library License: LGPL-3.0+ Group: Development/Libraries/C and C++ -Source: http://download.samba.org/pub/talloc/talloc-%{version}.tar.gz -Source1: http://download.samba.org/pub/talloc/talloc-%{version}.tar.asc +Source: https://download.samba.org/pub/talloc/talloc-%{version}.tar.gz +Source1: https://download.samba.org/pub/talloc/talloc-%{version}.tar.asc Source4: baselibs.conf Patch0: talloc-python3.5-fix-soabi_name.patch Source50: talloc.keyring ++++++ talloc.spec ++++++ --- /var/tmp/diff_new_pack.kh7gBG/_old 2018-04-17 11:11:34.131149054 +0200 +++ /var/tmp/diff_new_pack.kh7gBG/_new 2018-04-17 11:11:34.131149054 +0200 @@ -44,13 +44,13 @@ #!BuildIgnore: python %endif # build_man Url: http://talloc.samba.org/ -Version: 2.1.11 +Version: 2.1.13 Release: 0 Summary: Samba talloc Library License: LGPL-3.0+ Group: Development/Libraries/C and C++ -Source: http://download.samba.org/pub/talloc/talloc-%{version}.tar.gz -Source1: http://download.samba.org/pub/talloc/talloc-%{version}.tar.asc +Source: https://download.samba.org/pub/talloc/talloc-%{version}.tar.gz +Source1: https://download.samba.org/pub/talloc/talloc-%{version}.tar.asc Source4: baselibs.conf Patch0: talloc-python3.5-fix-soabi_name.patch Source50: talloc.keyring ++++++ talloc-2.1.11.tar.gz -> talloc-2.1.13.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/ABI/pytalloc-util-2.1.12.sigs new/talloc-2.1.13/ABI/pytalloc-util-2.1.12.sigs --- old/talloc-2.1.11/ABI/pytalloc-util-2.1.12.sigs 1970-01-01 01:00:00.000000000 +0100 +++ new/talloc-2.1.13/ABI/pytalloc-util-2.1.12.sigs 2018-03-22 07:25:02.000000000 +0100 @@ -0,0 +1,16 @@ +_pytalloc_check_type: int (PyObject *, const char *) +_pytalloc_get_mem_ctx: TALLOC_CTX *(PyObject *) +_pytalloc_get_ptr: void *(PyObject *) +_pytalloc_get_type: void *(PyObject *, const char *) +pytalloc_BaseObject_PyType_Ready: int (PyTypeObject *) +pytalloc_BaseObject_check: int (PyObject *) +pytalloc_BaseObject_size: size_t (void) +pytalloc_CObject_FromTallocPtr: PyObject *(void *) +pytalloc_Check: int (PyObject *) +pytalloc_GenericObject_reference_ex: PyObject *(TALLOC_CTX *, void *) +pytalloc_GenericObject_steal_ex: PyObject *(TALLOC_CTX *, void *) +pytalloc_GetBaseObjectType: PyTypeObject *(void) +pytalloc_GetObjectType: PyTypeObject *(void) +pytalloc_reference_ex: PyObject *(PyTypeObject *, TALLOC_CTX *, void *) +pytalloc_steal: PyObject *(PyTypeObject *, void *) +pytalloc_steal_ex: PyObject *(PyTypeObject *, TALLOC_CTX *, void *) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/ABI/pytalloc-util-2.1.13.sigs new/talloc-2.1.13/ABI/pytalloc-util-2.1.13.sigs --- old/talloc-2.1.11/ABI/pytalloc-util-2.1.13.sigs 1970-01-01 01:00:00.000000000 +0100 +++ new/talloc-2.1.13/ABI/pytalloc-util-2.1.13.sigs 2018-04-03 13:53:51.000000000 +0200 @@ -0,0 +1,16 @@ +_pytalloc_check_type: int (PyObject *, const char *) +_pytalloc_get_mem_ctx: TALLOC_CTX *(PyObject *) +_pytalloc_get_ptr: void *(PyObject *) +_pytalloc_get_type: void *(PyObject *, const char *) +pytalloc_BaseObject_PyType_Ready: int (PyTypeObject *) +pytalloc_BaseObject_check: int (PyObject *) +pytalloc_BaseObject_size: size_t (void) +pytalloc_CObject_FromTallocPtr: PyObject *(void *) +pytalloc_Check: int (PyObject *) +pytalloc_GenericObject_reference_ex: PyObject *(TALLOC_CTX *, void *) +pytalloc_GenericObject_steal_ex: PyObject *(TALLOC_CTX *, void *) +pytalloc_GetBaseObjectType: PyTypeObject *(void) +pytalloc_GetObjectType: PyTypeObject *(void) +pytalloc_reference_ex: PyObject *(PyTypeObject *, TALLOC_CTX *, void *) +pytalloc_steal: PyObject *(PyTypeObject *, void *) +pytalloc_steal_ex: PyObject *(PyTypeObject *, TALLOC_CTX *, void *) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/ABI/pytalloc-util.py3-2.1.12.sigs new/talloc-2.1.13/ABI/pytalloc-util.py3-2.1.12.sigs --- old/talloc-2.1.11/ABI/pytalloc-util.py3-2.1.12.sigs 1970-01-01 01:00:00.000000000 +0100 +++ new/talloc-2.1.13/ABI/pytalloc-util.py3-2.1.12.sigs 2018-03-22 07:25:02.000000000 +0100 @@ -0,0 +1,15 @@ +_pytalloc_check_type: int (PyObject *, const char *) +_pytalloc_get_mem_ctx: TALLOC_CTX *(PyObject *) +_pytalloc_get_ptr: void *(PyObject *) +_pytalloc_get_type: void *(PyObject *, const char *) +pytalloc_BaseObject_PyType_Ready: int (PyTypeObject *) +pytalloc_BaseObject_check: int (PyObject *) +pytalloc_BaseObject_size: size_t (void) +pytalloc_Check: int (PyObject *) +pytalloc_GenericObject_reference_ex: PyObject *(TALLOC_CTX *, void *) +pytalloc_GenericObject_steal_ex: PyObject *(TALLOC_CTX *, void *) +pytalloc_GetBaseObjectType: PyTypeObject *(void) +pytalloc_GetObjectType: PyTypeObject *(void) +pytalloc_reference_ex: PyObject *(PyTypeObject *, TALLOC_CTX *, void *) +pytalloc_steal: PyObject *(PyTypeObject *, void *) +pytalloc_steal_ex: PyObject *(PyTypeObject *, TALLOC_CTX *, void *) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/ABI/pytalloc-util.py3-2.1.13.sigs new/talloc-2.1.13/ABI/pytalloc-util.py3-2.1.13.sigs --- old/talloc-2.1.11/ABI/pytalloc-util.py3-2.1.13.sigs 1970-01-01 01:00:00.000000000 +0100 +++ new/talloc-2.1.13/ABI/pytalloc-util.py3-2.1.13.sigs 2018-04-03 13:53:51.000000000 +0200 @@ -0,0 +1,15 @@ +_pytalloc_check_type: int (PyObject *, const char *) +_pytalloc_get_mem_ctx: TALLOC_CTX *(PyObject *) +_pytalloc_get_ptr: void *(PyObject *) +_pytalloc_get_type: void *(PyObject *, const char *) +pytalloc_BaseObject_PyType_Ready: int (PyTypeObject *) +pytalloc_BaseObject_check: int (PyObject *) +pytalloc_BaseObject_size: size_t (void) +pytalloc_Check: int (PyObject *) +pytalloc_GenericObject_reference_ex: PyObject *(TALLOC_CTX *, void *) +pytalloc_GenericObject_steal_ex: PyObject *(TALLOC_CTX *, void *) +pytalloc_GetBaseObjectType: PyTypeObject *(void) +pytalloc_GetObjectType: PyTypeObject *(void) +pytalloc_reference_ex: PyObject *(PyTypeObject *, TALLOC_CTX *, void *) +pytalloc_steal: PyObject *(PyTypeObject *, void *) +pytalloc_steal_ex: PyObject *(PyTypeObject *, TALLOC_CTX *, void *) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/ABI/talloc-2.1.12.sigs new/talloc-2.1.13/ABI/talloc-2.1.12.sigs --- old/talloc-2.1.11/ABI/talloc-2.1.12.sigs 1970-01-01 01:00:00.000000000 +0100 +++ new/talloc-2.1.13/ABI/talloc-2.1.12.sigs 2018-03-22 07:25:02.000000000 +0100 @@ -0,0 +1,65 @@ +_talloc: void *(const void *, size_t) +_talloc_array: void *(const void *, size_t, unsigned int, const char *) +_talloc_free: int (void *, const char *) +_talloc_get_type_abort: void *(const void *, const char *, const char *) +_talloc_memdup: void *(const void *, const void *, size_t, const char *) +_talloc_move: void *(const void *, const void *) +_talloc_pooled_object: void *(const void *, size_t, const char *, unsigned int, size_t) +_talloc_realloc: void *(const void *, void *, size_t, const char *) +_talloc_realloc_array: void *(const void *, void *, size_t, unsigned int, const char *) +_talloc_reference_loc: void *(const void *, const void *, const char *) +_talloc_set_destructor: void (const void *, int (*)(void *)) +_talloc_steal_loc: void *(const void *, const void *, const char *) +_talloc_zero: void *(const void *, size_t, const char *) +_talloc_zero_array: void *(const void *, size_t, unsigned int, const char *) +talloc_asprintf: char *(const void *, const char *, ...) +talloc_asprintf_append: char *(char *, const char *, ...) +talloc_asprintf_append_buffer: char *(char *, const char *, ...) +talloc_autofree_context: void *(void) +talloc_check_name: void *(const void *, const char *) +talloc_disable_null_tracking: void (void) +talloc_enable_leak_report: void (void) +talloc_enable_leak_report_full: void (void) +talloc_enable_null_tracking: void (void) +talloc_enable_null_tracking_no_autofree: void (void) +talloc_find_parent_byname: void *(const void *, const char *) +talloc_free_children: void (void *) +talloc_get_name: const char *(const void *) +talloc_get_size: size_t (const void *) +talloc_increase_ref_count: int (const void *) +talloc_init: void *(const char *, ...) +talloc_is_parent: int (const void *, const void *) +talloc_named: void *(const void *, size_t, const char *, ...) +talloc_named_const: void *(const void *, size_t, const char *) +talloc_parent: void *(const void *) +talloc_parent_name: const char *(const void *) +talloc_pool: void *(const void *, size_t) +talloc_realloc_fn: void *(const void *, void *, size_t) +talloc_reference_count: size_t (const void *) +talloc_reparent: void *(const void *, const void *, const void *) +talloc_report: void (const void *, FILE *) +talloc_report_depth_cb: void (const void *, int, int, void (*)(const void *, int, int, int, void *), void *) +talloc_report_depth_file: void (const void *, int, int, FILE *) +talloc_report_full: void (const void *, FILE *) +talloc_set_abort_fn: void (void (*)(const char *)) +talloc_set_log_fn: void (void (*)(const char *)) +talloc_set_log_stderr: void (void) +talloc_set_memlimit: int (const void *, size_t) +talloc_set_name: const char *(const void *, const char *, ...) +talloc_set_name_const: void (const void *, const char *) +talloc_show_parents: void (const void *, FILE *) +talloc_strdup: char *(const void *, const char *) +talloc_strdup_append: char *(char *, const char *) +talloc_strdup_append_buffer: char *(char *, const char *) +talloc_strndup: char *(const void *, const char *, size_t) +talloc_strndup_append: char *(char *, const char *, size_t) +talloc_strndup_append_buffer: char *(char *, const char *, size_t) +talloc_test_get_magic: int (void) +talloc_total_blocks: size_t (const void *) +talloc_total_size: size_t (const void *) +talloc_unlink: int (const void *, void *) +talloc_vasprintf: char *(const void *, const char *, va_list) +talloc_vasprintf_append: char *(char *, const char *, va_list) +talloc_vasprintf_append_buffer: char *(char *, const char *, va_list) +talloc_version_major: int (void) +talloc_version_minor: int (void) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/ABI/talloc-2.1.13.sigs new/talloc-2.1.13/ABI/talloc-2.1.13.sigs --- old/talloc-2.1.11/ABI/talloc-2.1.13.sigs 1970-01-01 01:00:00.000000000 +0100 +++ new/talloc-2.1.13/ABI/talloc-2.1.13.sigs 2018-04-03 13:53:51.000000000 +0200 @@ -0,0 +1,65 @@ +_talloc: void *(const void *, size_t) +_talloc_array: void *(const void *, size_t, unsigned int, const char *) +_talloc_free: int (void *, const char *) +_talloc_get_type_abort: void *(const void *, const char *, const char *) +_talloc_memdup: void *(const void *, const void *, size_t, const char *) +_talloc_move: void *(const void *, const void *) +_talloc_pooled_object: void *(const void *, size_t, const char *, unsigned int, size_t) +_talloc_realloc: void *(const void *, void *, size_t, const char *) +_talloc_realloc_array: void *(const void *, void *, size_t, unsigned int, const char *) +_talloc_reference_loc: void *(const void *, const void *, const char *) +_talloc_set_destructor: void (const void *, int (*)(void *)) +_talloc_steal_loc: void *(const void *, const void *, const char *) +_talloc_zero: void *(const void *, size_t, const char *) +_talloc_zero_array: void *(const void *, size_t, unsigned int, const char *) +talloc_asprintf: char *(const void *, const char *, ...) +talloc_asprintf_append: char *(char *, const char *, ...) +talloc_asprintf_append_buffer: char *(char *, const char *, ...) +talloc_autofree_context: void *(void) +talloc_check_name: void *(const void *, const char *) +talloc_disable_null_tracking: void (void) +talloc_enable_leak_report: void (void) +talloc_enable_leak_report_full: void (void) +talloc_enable_null_tracking: void (void) +talloc_enable_null_tracking_no_autofree: void (void) +talloc_find_parent_byname: void *(const void *, const char *) +talloc_free_children: void (void *) +talloc_get_name: const char *(const void *) +talloc_get_size: size_t (const void *) +talloc_increase_ref_count: int (const void *) +talloc_init: void *(const char *, ...) +talloc_is_parent: int (const void *, const void *) +talloc_named: void *(const void *, size_t, const char *, ...) +talloc_named_const: void *(const void *, size_t, const char *) +talloc_parent: void *(const void *) +talloc_parent_name: const char *(const void *) +talloc_pool: void *(const void *, size_t) +talloc_realloc_fn: void *(const void *, void *, size_t) +talloc_reference_count: size_t (const void *) +talloc_reparent: void *(const void *, const void *, const void *) +talloc_report: void (const void *, FILE *) +talloc_report_depth_cb: void (const void *, int, int, void (*)(const void *, int, int, int, void *), void *) +talloc_report_depth_file: void (const void *, int, int, FILE *) +talloc_report_full: void (const void *, FILE *) +talloc_set_abort_fn: void (void (*)(const char *)) +talloc_set_log_fn: void (void (*)(const char *)) +talloc_set_log_stderr: void (void) +talloc_set_memlimit: int (const void *, size_t) +talloc_set_name: const char *(const void *, const char *, ...) +talloc_set_name_const: void (const void *, const char *) +talloc_show_parents: void (const void *, FILE *) +talloc_strdup: char *(const void *, const char *) +talloc_strdup_append: char *(char *, const char *) +talloc_strdup_append_buffer: char *(char *, const char *) +talloc_strndup: char *(const void *, const char *, size_t) +talloc_strndup_append: char *(char *, const char *, size_t) +talloc_strndup_append_buffer: char *(char *, const char *, size_t) +talloc_test_get_magic: int (void) +talloc_total_blocks: size_t (const void *) +talloc_total_size: size_t (const void *) +talloc_unlink: int (const void *, void *) +talloc_vasprintf: char *(const void *, const char *, va_list) +talloc_vasprintf_append: char *(char *, const char *, va_list) +talloc_vasprintf_append_buffer: char *(char *, const char *, va_list) +talloc_version_major: int (void) +talloc_version_minor: int (void) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/buildtools/wafsamba/nothreads.py new/talloc-2.1.13/buildtools/wafsamba/nothreads.py --- old/talloc-2.1.11/buildtools/wafsamba/nothreads.py 2015-11-06 14:28:25.000000000 +0100 +++ new/talloc-2.1.13/buildtools/wafsamba/nothreads.py 2018-02-23 11:28:56.000000000 +0100 @@ -43,7 +43,7 @@ if tsk.__class__.stat: ret = tsk.__class__.stat(tsk) # actual call to task's run() function else: ret = tsk.call_run() - except Exception, e: + except Exception as e: tsk.err_msg = Utils.ex_stack() tsk.hasrun = EXCEPTION @@ -177,7 +177,7 @@ try: st = tsk.runnable_status() - except Exception, e: + except Exception as e: self.processed += 1 if self.stop and not Options.options.keep: tsk.hasrun = SKIPPED diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/buildtools/wafsamba/samba_autoconf.py new/talloc-2.1.13/buildtools/wafsamba/samba_autoconf.py --- old/talloc-2.1.11/buildtools/wafsamba/samba_autoconf.py 2018-01-13 08:07:51.000000000 +0100 +++ new/talloc-2.1.13/buildtools/wafsamba/samba_autoconf.py 2018-03-22 07:25:02.000000000 +0100 @@ -454,7 +454,8 @@ @conf def CHECK_STRUCTURE_MEMBER(conf, structname, member, - always=False, define=None, headers=None): + always=False, define=None, headers=None, + lib=None): '''check for a structure member''' if define is None: define = 'HAVE_%s' % member.upper() @@ -463,6 +464,7 @@ define, execute=False, link=False, + lib=lib, always=always, headers=headers, local_include=False, @@ -709,6 +711,8 @@ testflags=True) conf.ADD_CFLAGS('-Werror=uninitialized -Wuninitialized', testflags=True) + conf.ADD_CFLAGS('-Wimplicit-fallthrough', + testflags=True) conf.ADD_CFLAGS('-Wformat=2 -Wno-format-y2k', testflags=True) conf.ADD_CFLAGS('-Wno-format-zero-length', testflags=True) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/buildtools/wafsamba/samba_conftests.py new/talloc-2.1.13/buildtools/wafsamba/samba_conftests.py --- old/talloc-2.1.11/buildtools/wafsamba/samba_conftests.py 2017-04-28 10:57:26.000000000 +0200 +++ new/talloc-2.1.13/buildtools/wafsamba/samba_conftests.py 2018-02-23 11:28:56.000000000 +0100 @@ -50,7 +50,7 @@ ret = None try: ret = self.run_c_code(*k, **kw) - except Configure.ConfigurationError, e: + except Configure.ConfigurationError as e: self.check_message_2(kw['errmsg'], 'YELLOW') if 'mandatory' in kw and kw['mandatory']: if Logs.verbose > 1: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/buildtools/wafsamba/samba_dist.py new/talloc-2.1.13/buildtools/wafsamba/samba_dist.py --- old/talloc-2.1.11/buildtools/wafsamba/samba_dist.py 2018-01-13 08:07:51.000000000 +0100 +++ new/talloc-2.1.13/buildtools/wafsamba/samba_dist.py 2018-02-23 11:28:56.000000000 +0100 @@ -167,7 +167,7 @@ absdir = os.path.join(srcdir, dir) try: files = vcs_dir_contents(absdir) - except Exception, e: + except Exception as e: Logs.error('unable to get contents of %s: %s' % (absdir, e)) sys.exit(1) add_files_to_tarball(tar, srcdir, dir, dist_base, destdir, blacklist, files) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/buildtools/wafsamba/wafsamba.py new/talloc-2.1.13/buildtools/wafsamba/wafsamba.py --- old/talloc-2.1.11/buildtools/wafsamba/wafsamba.py 2018-01-13 08:07:51.000000000 +0100 +++ new/talloc-2.1.13/buildtools/wafsamba/wafsamba.py 2018-04-05 23:03:40.000000000 +0200 @@ -353,6 +353,7 @@ modules=None, ldflags=None, cflags='', + cflags_end=None, autoproto=None, use_hostcc=False, use_global_deps=True, @@ -410,6 +411,7 @@ deps = deps, includes = includes, cflags = pie_cflags, + cflags_end = cflags_end, group = subsystem_group, autoproto = autoproto, subsystem_name = subsystem_name, @@ -458,6 +460,7 @@ autoproto=None, autoproto_extra_source='', cflags='', + cflags_end=None, internal_module=True, local_include=True, global_include=True, @@ -488,6 +491,7 @@ autoproto=autoproto, autoproto_extra_source=autoproto_extra_source, cflags=cflags, + cflags_end=cflags_end, local_include=local_include, global_include=global_include, allow_warnings=allow_warnings, @@ -527,6 +531,7 @@ deps=deps, includes=includes, cflags=cflags, + cflags_end=cflags_end, realname = realname, autoproto = autoproto, local_include=local_include, @@ -900,7 +905,7 @@ try: os.makedirs(destpath) os.chmod(destpath, chmod) - except OSError, e: + except OSError as e: if not os.path.isdir(destpath): raise Utils.WafError("Cannot create the folder '%s' (error: %s)" % (path, e)) Build.BuildContext.INSTALL_DIR = INSTALL_DIR diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/buildtools/wafsamba/wscript new/talloc-2.1.13/buildtools/wafsamba/wscript --- old/talloc-2.1.11/buildtools/wafsamba/wscript 2017-04-28 10:57:26.000000000 +0200 +++ new/talloc-2.1.13/buildtools/wafsamba/wscript 2018-02-23 11:28:56.000000000 +0100 @@ -313,10 +313,6 @@ conf.env.GIT_LOCAL_CHANGES = Options.options.GIT_LOCAL_CHANGES - conf.CHECK_COMMAND(['uname', '-a'], - msg='Checking build system', - define='BUILD_SYSTEM', - on_target=False) conf.CHECK_UNAME() # see if we can compile and run a simple C program diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/lib/replace/replace.h new/talloc-2.1.13/lib/replace/replace.h --- old/talloc-2.1.11/lib/replace/replace.h 2018-01-13 08:07:51.000000000 +0100 +++ new/talloc-2.1.13/lib/replace/replace.h 2018-04-05 23:03:40.000000000 +0200 @@ -691,10 +691,12 @@ #if !defined(HAVE_INTPTR_T) typedef long long intptr_t ; +#define __intptr_t_defined #endif #if !defined(HAVE_UINTPTR_T) typedef unsigned long long uintptr_t ; +#define __uintptr_t_defined #endif #if !defined(HAVE_PTRDIFF_T) @@ -922,6 +924,15 @@ #define setproctitle_init rep_setproctitle_init void rep_setproctitle_init(int argc, char *argv[], char *envp[]); #endif + +#ifndef FALL_THROUGH +# ifdef HAVE_FALLTHROUGH_ATTRIBUTE +# define FALL_THROUGH __attribute__ ((fallthrough)) +# else /* HAVE_FALLTHROUGH_ATTRIBUTE */ +# define FALL_THROUGH ((void)0) +# endif /* HAVE_FALLTHROUGH_ATTRIBUTE */ +#endif /* FALL_THROUGH */ + bool nss_wrapper_enabled(void); bool nss_wrapper_hosts_enabled(void); bool socket_wrapper_enabled(void); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/lib/replace/strptime.c new/talloc-2.1.13/lib/replace/strptime.c --- old/talloc-2.1.11/lib/replace/strptime.c 2014-09-16 20:04:31.000000000 +0200 +++ new/talloc-2.1.13/lib/replace/strptime.c 2018-03-22 07:25:02.000000000 +0100 @@ -462,7 +462,8 @@ *decided = raw; } #endif - /* Fall through. */ + + FALL_THROUGH; case 'D': /* Match standard day format. */ if (!recursive (HERE_D_FMT)) @@ -611,7 +612,8 @@ *decided = raw; } #endif - /* Fall through. */ + + FALL_THROUGH; case 'T': if (!recursive (HERE_T_FMT)) return NULL; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/lib/replace/system/nis.h new/talloc-2.1.13/lib/replace/system/nis.h --- old/talloc-2.1.11/lib/replace/system/nis.h 1970-01-01 01:00:00.000000000 +0100 +++ new/talloc-2.1.13/lib/replace/system/nis.h 2018-02-23 11:28:56.000000000 +0100 @@ -0,0 +1,83 @@ +/* + Unix SMB/CIFS implementation. + + nis system include wrappers + + Copyright (C) Andrew Tridgell 2004 + + ** NOTE! The following LGPL license applies to the replace + ** library. This does NOT imply that all of Samba is released + ** under the LGPL + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef _nis_passwd_h +#define _nis_passwd_h + +#if defined(HAVE_RPC_RPC_H) +/* + * Check for AUTH_ERROR define conflict with rpc/rpc.h in prot.h. + */ +#if defined(HAVE_SYS_SECURITY_H) && defined(HAVE_RPC_AUTH_ERROR_CONFLICT) +#undef AUTH_ERROR +#endif /* HAVE_SYS_SECURITY_H && HAVE_RPC_AUTH_ERROR_CONFLICT */ +/* + * HP-UX 11.X has TCP_NODELAY and TCP_MAXSEG defined in <netinet/tcp.h> which + * was included above. However <rpc/rpc.h> includes <sys/xti.h> which defines + * them again without checking if they already exsist. This generates + * two "Redefinition of macro" warnings for every single .c file that is + * compiled. + */ +#if defined(HPUX) && defined(TCP_NODELAY) +#undef TCP_NODELAY +#endif /* HPUX && TCP_NODELAY */ + +#if defined(HPUX) && defined(TCP_MAXSEG) +#undef TCP_MAXSEG +#endif /* HPUX && TCP_MAXSEG */ + +#include <rpc/rpc.h> +#endif /* HAVE_RPC_RPC_H */ + + +#if defined (HAVE_NETGROUP) + +#if defined(HAVE_RPCSVC_YP_PROT_H) +/* + * HP-UX 11.X has TCP_NODELAY and TCP_MAXSEG defined in <netinet/tcp.h> which + * was included above. However <rpc/rpc.h> includes <sys/xti.h> which defines + * them again without checking if they already exsist. This generates + * two "Redefinition of macro" warnings for every single .c file that is + * compiled. + */ +#if defined(HPUX) && defined(TCP_NODELAY) +#undef TCP_NODELAY +#endif /* HPUX && TCP_MAXSEG */ + +#if defined(HPUX) && defined(TCP_MAXSEG) +#undef TCP_MAXSEG +#endif /* HPUX && TCP_MAXSEG */ + +#include <rpcsvc/yp_prot.h> + +#endif /* HAVE_RPCSVC_YP_PROT_H */ + +#if defined(HAVE_RPCSVC_YPCLNT_H) +#include <rpcsvc/ypclnt.h> +#endif /* HAVE_RPCSVC_YPCLNT_H */ + +#endif /* HAVE_NETGROUP */ + +#endif /* _nis_passwd_h */ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/lib/replace/system/wscript_configure new/talloc-2.1.13/lib/replace/system/wscript_configure --- old/talloc-2.1.11/lib/replace/system/wscript_configure 2014-09-16 20:04:31.000000000 +0200 +++ new/talloc-2.1.13/lib/replace/system/wscript_configure 2018-02-23 11:28:56.000000000 +0100 @@ -1,8 +1,5 @@ #!/usr/bin/env python -conf.CHECK_HEADERS('sys/capability.h') -conf.CHECK_FUNCS('getpwnam_r getpwuid_r getpwent_r') - # solaris varients of getXXent_r conf.CHECK_C_PROTOTYPE('getpwent_r', 'struct passwd *getpwent_r(struct passwd *src, char *buf, int buflen)', @@ -19,8 +16,3 @@ 'struct group *getgrent_r(struct group *src, char *buf, size_t buflen)', define='SOLARIS_GETGRENT_R', headers='grp.h') -conf.CHECK_FUNCS('getgrouplist') -conf.CHECK_HEADERS('ctype.h locale.h langinfo.h') -conf.CHECK_HEADERS('fnmatch.h locale.h langinfo.h') -conf.CHECK_HEADERS('sys/ipc.h sys/mman.h sys/shm.h') -conf.CHECK_HEADERS('termios.h termio.h sys/termio.h') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/lib/replace/wscript new/talloc-2.1.13/lib/replace/wscript --- old/talloc-2.1.11/lib/replace/wscript 2018-01-13 08:07:51.000000000 +0100 +++ new/talloc-2.1.13/lib/replace/wscript 2018-04-05 23:03:40.000000000 +0200 @@ -5,7 +5,7 @@ blddir = 'bin' -import sys, os +import Logs, sys, os # find the buildtools directory srcdir = '.' @@ -65,14 +65,49 @@ headers='sys/inotify.h') conf.CHECK_HEADERS('security/pam_appl.h zlib.h asm/unistd.h') - conf.CHECK_HEADERS('aio.h sys/unistd.h rpc/rpc.h rpc/nettype.h alloca.h float.h') + conf.CHECK_HEADERS('aio.h sys/unistd.h alloca.h float.h') - conf.CHECK_HEADERS('rpcsvc/nis.h rpcsvc/ypclnt.h sys/sysctl.h') + conf.SET_TARGET_TYPE('tirpc', 'EMPTY') + + if conf.CHECK_CODE( + '\n#ifndef _TIRPC_RPC_H\n#error "no tirpc headers in system path"\n#endif\n', + 'HAVE_RPC_RPC_HEADERS', + headers=['rpc/rpc.h', 'rpc/nettype.h'], + msg='Checking for tirpc rpc headers in default system path'): + if conf.CONFIG_SET('HAVE_RPC_RPC_H'): + conf.undefine('HAVE_RPC_RPC_H') + + if not conf.CONFIG_SET('HAVE_RPC_RPC_H'): + if conf.CHECK_CFG(package='libtirpc', args='--cflags --libs', + msg='Checking for libtirpc headers', + uselib_store='TIRPC'): + conf.CHECK_HEADERS('rpc/rpc.h rpc/nettype.h', lib='tirpc', together=True) + conf.SET_TARGET_TYPE('tirpc', 'SYSLIB') + if not conf.CONFIG_SET('HAVE_RPC_RPC_H'): + if conf.CHECK_CFG(package='libntirpc', args='--cflags', + msg='Checking for libntirpc headers', + uselib_store='TIRPC'): + conf.CHECK_HEADERS('rpc/rpc.h rpc/nettype.h', lib='tirpc', together=True) + conf.SET_TARGET_TYPE('tirpc', 'SYSLIB') + if not conf.CONFIG_SET('HAVE_RPC_RPC_H'): + Logs.warn('No rpc/rpc.h header found, tirpc or libntirpc missing?') + + conf.SET_TARGET_TYPE('nsl', 'EMPTY') + conf.CHECK_HEADERS('rpc/rpc.h rpcsvc/yp_prot.h', lib='tirpc') + if not conf.CONFIG_SET('HAVE_RPCSVC_YP_PROT_H'): + if conf.CHECK_CFG(package='libnsl', args='--cflags --libs', + msg='Checking for libnsl', + uselib_store='NSL'): + conf.SET_TARGET_TYPE('nsl', 'SYSLIB') + conf.CHECK_HEADERS('rpc/rpc.h rpcsvc/yp_prot.h', lib='tirpc nsl') + else: + conf.SET_TARGET_TYPE('nsl', 'SYSLIB') + conf.CHECK_HEADERS('rpcsvc/nis.h rpcsvc/ypclnt.h', lib='tirpc nsl') + + conf.CHECK_HEADERS('sys/sysctl.h') conf.CHECK_HEADERS('sys/fileio.h sys/filesys.h sys/dustat.h sys/sysmacros.h') conf.CHECK_HEADERS('xfs/libxfs.h netgroup.h') - conf.CHECK_CODE('', headers='rpc/rpc.h rpcsvc/yp_prot.h', define='HAVE_RPCSVC_YP_PROT_H') - conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h valgrind/memcheck.h') conf.CHECK_HEADERS('nss_common.h nsswitch.h ns_api.h') conf.CHECK_HEADERS('sys/extattr.h sys/ea.h sys/proplist.h sys/cdefs.h') @@ -87,6 +122,9 @@ if conf.CHECK_CFLAGS('-Wno-unused-function'): conf.define('HAVE_WNO_UNUSED_FUNCTION', '1') + if conf.CHECK_CFLAGS('-Wno-strict-overflow'): + conf.define('HAVE_WNO_STRICT_OVERFLOW', '1') + # Check for process set name support conf.CHECK_CODE(''' #include <sys/prctl.h> @@ -222,6 +260,42 @@ headers='stdint.h sys/atomic.h', msg='Checking for atomic_add_32 compiler builtin') + conf.CHECK_CODE(''' + #define FALL_THROUGH __attribute__((fallthrough)) + + enum direction_e { + UP = 0, + DOWN, + }; + + int main(void) { + enum direction_e key = UP; + int i = 10; + int j = 0; + + switch (key) { + case UP: + i = 5; + FALL_THROUGH; + case DOWN: + j = i * 2; + break; + default: + break; + } + + if (j < i) { + return 1; + } + + return 0; + } + ''', + 'HAVE_FALLTHROUGH_ATTRIBUTE', + addmain=False, + cflags='-Werror', + msg='Checking for fallthrough attribute') + # these may be builtins, so we need the link=False strategy conf.CHECK_FUNCS('strdup memmem printf memset memcpy memmove strcpy strncpy bzero', link=False) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/talloc.c new/talloc-2.1.13/talloc.c --- old/talloc-2.1.11/talloc.c 2018-01-13 08:07:51.000000000 +0100 +++ new/talloc-2.1.13/talloc.c 2018-04-03 13:53:51.000000000 +0200 @@ -121,8 +121,12 @@ NULL */ static void *null_context; +static bool talloc_report_null; +static bool talloc_report_null_full; static void *autofree_context; +static void talloc_setup_atexit(void); + /* used to enable fill of memory on free, which can be useful for * catching use after free errors when valgrind is too slow */ @@ -426,6 +430,33 @@ #warning "No __attribute__((constructor)) support found on this platform, additional talloc security measures not available" #endif +static void talloc_lib_atexit(void) +{ + TALLOC_FREE(autofree_context); + + if (talloc_total_size(null_context) == 0) { + return; + } + + if (talloc_report_null_full) { + talloc_report_full(null_context, stderr); + } else if (talloc_report_null) { + talloc_report(null_context, stderr); + } +} + +static void talloc_setup_atexit(void) +{ + static bool done; + + if (done) { + return; + } + + atexit(talloc_lib_atexit); + done = true; +} + static void talloc_log(const char *fmt, ...) PRINTF_ATTRIBUTE(1,2); static void talloc_log(const char *fmt, ...) { @@ -2295,26 +2326,6 @@ } /* - report on any memory hanging off the null context -*/ -static void talloc_report_null(void) -{ - if (talloc_total_size(null_context) != 0) { - talloc_report(null_context, stderr); - } -} - -/* - report on any memory hanging off the null context -*/ -static void talloc_report_null_full(void) -{ - if (talloc_total_size(null_context) != 0) { - talloc_report_full(null_context, stderr); - } -} - -/* enable tracking of the NULL context */ _PUBLIC_ void talloc_enable_null_tracking(void) @@ -2369,7 +2380,8 @@ _PUBLIC_ void talloc_enable_leak_report(void) { talloc_enable_null_tracking(); - atexit(talloc_report_null); + talloc_report_null = true; + talloc_setup_atexit(); } /* @@ -2378,7 +2390,8 @@ _PUBLIC_ void talloc_enable_leak_report_full(void) { talloc_enable_null_tracking(); - atexit(talloc_report_null_full); + talloc_report_null_full = true; + talloc_setup_atexit(); } /* @@ -2554,7 +2567,8 @@ const char *fmt, va_list ap) { - int len; + int vlen; + size_t len; char *ret; va_list ap2; struct talloc_chunk *tc; @@ -2562,9 +2576,13 @@ /* this call looks strange, but it makes it work on older solaris boxes */ va_copy(ap2, ap); - len = vsnprintf(buf, sizeof(buf), fmt, ap2); + vlen = vsnprintf(buf, sizeof(buf), fmt, ap2); va_end(ap2); - if (unlikely(len < 0)) { + if (unlikely(vlen < 0)) { + return NULL; + } + len = vlen; + if (unlikely(len + 1 < len)) { return NULL; } @@ -2760,11 +2778,6 @@ return 0; } -static void talloc_autofree(void) -{ - talloc_free(autofree_context); -} - /* return a context which will be auto-freed on exit this is useful for reducing the noise in leak reports @@ -2774,7 +2787,7 @@ if (autofree_context == NULL) { autofree_context = _talloc_named_const(NULL, 0, "autofree_context"); talloc_set_destructor(autofree_context, talloc_autofree_destructor); - atexit(talloc_autofree); + talloc_setup_atexit(); } return autofree_context; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/talloc.h new/talloc-2.1.13/talloc.h --- old/talloc-2.1.11/talloc.h 2017-04-28 10:57:26.000000000 +0200 +++ new/talloc-2.1.13/talloc.h 2018-02-23 11:28:56.000000000 +0100 @@ -1226,7 +1226,7 @@ * * @code * ptr = talloc_array(ctx, type, count); - * if (ptr) memset(ptr, sizeof(type) * count); + * if (ptr) memset(ptr, 0, sizeof(type) * count); * @endcode */ void *talloc_zero_array(const void *ctx, #type, unsigned count); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/talloc-2.1.11/wscript new/talloc-2.1.13/wscript --- old/talloc-2.1.11/wscript 2018-01-13 08:07:51.000000000 +0100 +++ new/talloc-2.1.13/wscript 2018-04-03 13:53:51.000000000 +0200 @@ -1,7 +1,7 @@ #!/usr/bin/env python APPNAME = 'talloc' -VERSION = '2.1.11' +VERSION = '2.1.13' blddir = 'bin'