[SCM] Samba Shared Repository - branch master updated

Martin Schwenke martins at samba.org
Tue Jan 21 08:13:02 UTC 2020

The branch, master has been updated
       via  558bd7c83d0 util: Add detection of libunwind
      from  5ff83809a2b s3: lib: dbwrap_ctdb: Ensure value_valid is set when creating empty record


- Log -----------------------------------------------------------------
commit 558bd7c83d08523a9e88414195d9703df38e9af2
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Oct 1 13:52:38 2019 +1000

    util: Add detection of libunwind
    The current detection doesn't seem to work, so libunwind doesn't seem
    to be used.
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Volker Lendecke <vl at samba.org>
    Autobuild-User(master): Martin Schwenke <martins at samba.org>
    Autobuild-Date(master): Tue Jan 21 08:12:17 UTC 2020 on sn-devel-184


Summary of changes:
 lib/util/wscript_build     |  2 +-
 lib/util/wscript_configure | 11 ++++++++++-
 2 files changed, 11 insertions(+), 2 deletions(-)

Changeset truncated at 500 lines:

diff --git a/lib/util/wscript_build b/lib/util/wscript_build
index 3a80b93b2c7..a827eea3ed9 100644
--- a/lib/util/wscript_build
+++ b/lib/util/wscript_build
@@ -82,7 +82,7 @@ bld.SAMBA_SUBSYSTEM('samba-util-core',
                               become_daemon.c mkdir_p.c''',
                     deps='''time-basic samba-debug socket-blocking talloc
                             tevent execinfo pthread strv tini''',
-                    public_deps='systemd systemd-daemon sys_rw',
+                    public_deps='systemd systemd-daemon sys_rw LIBUNWIND',
diff --git a/lib/util/wscript_configure b/lib/util/wscript_configure
index 93853511575..4f57184f515 100644
--- a/lib/util/wscript_configure
+++ b/lib/util/wscript_configure
@@ -8,7 +8,16 @@ if Options.options.disable_fault_handling:
 # backtrace could be in libexecinfo or in libc
 conf.CHECK_FUNCS_IN('backtrace backtrace_symbols', 'execinfo', checklibc=True, headers='execinfo.h')
-conf.CHECK_HEADERS('execinfo.h libunwind.h')
+if conf.check_cfg(package='libunwind-generic',
+                  args='--cflags --libs',
+                  msg='Checking for libunwind',
+                  uselib_store='LIBUNWIND',
+                  mandatory=False):
+    if conf.CHECK_HEADERS('libunwind.h'):
 conf.CHECK_STRUCTURE_MEMBER('struct statvfs', 'f_frsize', define='HAVE_FRSIZE', headers='sys/statvfs.h')

Samba Shared Repository

More information about the samba-cvs mailing list