|
@@ -1,6 +1,6 @@
|
|
|
-From ffffd29bc6303d60b3d77048fbbf6776f6fbbe01 Mon Sep 17 00:00:00 2001
|
|
|
+From 0841c3ed69c388251c1aeae63f2c3813555a54f6 Mon Sep 17 00:00:00 2001
|
|
|
From: Changqing Li <changqing.li@windriver.com>
|
|
|
-Date: Thu, 19 Jul 2018 16:40:31 +0800
|
|
|
+Date: Mon, 1 Jul 2019 16:14:16 +0800
|
|
|
Subject: [PATCH] ldb: Add configure options for packages
|
|
|
|
|
|
Add configure options for the following packages:
|
|
@@ -15,27 +15,22 @@ Upstream-Status: Inappropriate [oe deterministic build specific]
|
|
|
|
|
|
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
|
|
|
|
|
|
-Update to version 1.4.1, and fix one configure error
|
|
|
-
|
|
|
-Cross answers file cross-answers-i586.txt is incomplete with
|
|
|
-"Checking for a 64-bit host to support lmdb: UNKNOWN"
|
|
|
-
|
|
|
-we don't support lmdb, so only check when lmdb is support
|
|
|
-
|
|
|
+upgrade to version 1.5.4
|
|
|
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
|
|
---
|
|
|
- lib/replace/wscript | 94 ++++++++++++++++++++++++++++++++++++++++-------------
|
|
|
- wscript | 6 ++++
|
|
|
- 2 files changed, 77 insertions(+), 23 deletions(-)
|
|
|
+ lib/replace/wscript | 92 +++++++++++++++++++++++++++++++++++++++++------------
|
|
|
+ wscript | 8 +++++
|
|
|
+ 2 files changed, 79 insertions(+), 21 deletions(-)
|
|
|
|
|
|
diff --git a/lib/replace/wscript b/lib/replace/wscript
|
|
|
-index fd00a42..434192e 100644
|
|
|
+index a7fd25d..ad26041 100644
|
|
|
--- a/lib/replace/wscript
|
|
|
+++ b/lib/replace/wscript
|
|
|
-@@ -23,6 +23,41 @@ def set_options(opt):
|
|
|
+@@ -24,6 +24,41 @@ def options(opt):
|
|
|
+ opt.BUILTIN_DEFAULT('NONE')
|
|
|
opt.PRIVATE_EXTENSION_DEFAULT('')
|
|
|
opt.RECURSE('buildtools/wafsamba')
|
|
|
-
|
|
|
++
|
|
|
+ opt.add_option('--with-acl',
|
|
|
+ help=("Enable use of acl"),
|
|
|
+ action="store_true", dest='enable_acl')
|
|
@@ -70,11 +65,10 @@ index fd00a42..434192e 100644
|
|
|
+ opt.add_option('--without-libcap',
|
|
|
+ help=("Disable use of libcap"),
|
|
|
+ action="store_false", dest='enable_libcap', default=False)
|
|
|
-+
|
|
|
+
|
|
|
@Utils.run_once
|
|
|
def configure(conf):
|
|
|
- conf.RECURSE('buildtools/wafsamba')
|
|
|
-@@ -32,12 +67,25 @@ def configure(conf):
|
|
|
+@@ -34,12 +69,25 @@ def configure(conf):
|
|
|
conf.DEFINE('HAVE_LIBREPLACE', 1)
|
|
|
conf.DEFINE('LIBREPLACE_NETWORK_CHECKS', 1)
|
|
|
|
|
@@ -105,23 +99,22 @@ index fd00a42..434192e 100644
|
|
|
conf.CHECK_HEADERS('port.h')
|
|
|
conf.CHECK_HEADERS('sys/fcntl.h sys/filio.h sys/filsys.h sys/fs/s5param.h sys/fs/vx/quota.h')
|
|
|
conf.CHECK_HEADERS('sys/id.h sys/ioctl.h sys/ipc.h sys/mman.h sys/mode.h sys/ndir.h sys/priv.h')
|
|
|
-@@ -108,7 +156,9 @@ def configure(conf):
|
|
|
+@@ -110,8 +158,9 @@ def configure(conf):
|
|
|
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_HEADERS('valgrind.h valgrind/valgrind.h valgrind/memcheck.h')
|
|
|
+- conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h')
|
|
|
+- conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.h')
|
|
|
+ if Options.options.enable_valgrind:
|
|
|
-+ conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h valgrind/memcheck.h')
|
|
|
-+
|
|
|
++ conf.CHECK_HEADERS('valgrind.h valgrind/valgrind.h')
|
|
|
++ conf.CHECK_HEADERS('valgrind/memcheck.h valgrind/helgrind.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')
|
|
|
conf.CHECK_HEADERS('utmp.h utmpx.h lastlog.h')
|
|
|
-@@ -340,22 +390,20 @@ def configure(conf):
|
|
|
+@@ -380,20 +429,21 @@ def configure(conf):
|
|
|
|
|
|
- conf.CHECK_FUNCS('prctl dirname basename')
|
|
|
+ strlcpy_in_bsd = False
|
|
|
|
|
|
-- strlcpy_in_bsd = False
|
|
|
--
|
|
|
- # libbsd on some platforms provides strlcpy and strlcat
|
|
|
- if not conf.CHECK_FUNCS('strlcpy strlcat'):
|
|
|
- if conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h',
|
|
@@ -136,11 +129,12 @@ index fd00a42..434192e 100644
|
|
|
-
|
|
|
- if not conf.CHECK_FUNCS('closefrom'):
|
|
|
- conf.CHECK_FUNCS_IN('closefrom', 'bsd', headers='bsd/unistd.h')
|
|
|
-+ if Options.options.enable_libbsd:
|
|
|
++ if Options.options.enable_libbsd:
|
|
|
+ # libbsd on some platforms provides strlcpy and strlcat
|
|
|
+ if not conf.CHECK_FUNCS('strlcpy strlcat'):
|
|
|
-+ conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h',
|
|
|
-+ checklibc=True)
|
|
|
++ if conf.CHECK_FUNCS_IN('strlcpy strlcat', 'bsd', headers='bsd/string.h',
|
|
|
++ checklibc=True):
|
|
|
++ strlcpy_in_bsd = True
|
|
|
+ if not conf.CHECK_FUNCS('getpeereid'):
|
|
|
+ conf.CHECK_FUNCS_IN('getpeereid', 'bsd', headers='sys/types.h bsd/unistd.h')
|
|
|
+ if not conf.CHECK_FUNCS_IN('setproctitle', 'setproctitle', headers='setproctitle.h'):
|
|
@@ -153,20 +147,11 @@ index fd00a42..434192e 100644
|
|
|
|
|
|
conf.CHECK_CODE('''
|
|
|
struct ucred cred;
|
|
|
-@@ -699,7 +747,7 @@ def configure(conf):
|
|
|
- # look for a method of finding the list of network interfaces
|
|
|
- for method in ['HAVE_IFACE_GETIFADDRS', 'HAVE_IFACE_AIX', 'HAVE_IFACE_IFCONF', 'HAVE_IFACE_IFREQ']:
|
|
|
- bsd_for_strlcpy = ''
|
|
|
-- if strlcpy_in_bsd:
|
|
|
-+ if Options.options.enable_libbsd:
|
|
|
- bsd_for_strlcpy = ' bsd'
|
|
|
- if conf.CHECK_CODE('''
|
|
|
- #define %s 1
|
|
|
diff --git a/wscript b/wscript
|
|
|
-index ad91bc6..2d20fee 100644
|
|
|
+index d3402a7..d4e0ce1 100644
|
|
|
--- a/wscript
|
|
|
+++ b/wscript
|
|
|
-@@ -36,6 +36,12 @@ def set_options(opt):
|
|
|
+@@ -38,6 +38,14 @@ def options(opt):
|
|
|
help='disable new LMDB backend for LDB',
|
|
|
action='store_true', dest='without_ldb_lmdb', default=False)
|
|
|
|
|
@@ -176,6 +161,8 @@ index ad91bc6..2d20fee 100644
|
|
|
+ opt.add_option('--without-valgrind',
|
|
|
+ help=("disable use of valgrind"),
|
|
|
+ action="store_false", dest='enable_valgrind', default=False)
|
|
|
++
|
|
|
++
|
|
|
|
|
|
def configure(conf):
|
|
|
conf.RECURSE('lib/tdb')
|