aboutsummaryrefslogtreecommitdiff
path: root/net/samba410/files/patch-lib_ldb_wscript
blob: ebfb0138f2096397865e5448ab2482baf1bd74ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
--- lib/ldb/wscript.orig	2019-07-08 12:47:51 UTC
+++ lib/ldb/wscript
@@ -218,7 +218,7 @@ def build(bld):
     if bld.env.standalone_ldb:
         if not 'PACKAGE_VERSION' in bld.env:
             bld.env.PACKAGE_VERSION = VERSION
-        bld.env.PKGCONFIGDIR = '${LIBDIR}/pkgconfig'
+        bld.env.PKGCONFIGDIR = '%%PKGCONFIGDIR%%'
         private_library = False
     else:
         private_library = True
@@ -298,7 +298,6 @@ def build(bld):
                           pc_files='ldb.pc',
                           vnum=VERSION,
                           private_library=private_library,
-                          manpages='man/ldb.3',
                           abi_directory='ABI',
                           abi_match = abi_match)
 
@@ -451,7 +450,7 @@ def build(bld):
 
         LDB_TOOLS='ldbadd ldbsearch ldbdel ldbmodify ldbedit ldbrename'
         for t in LDB_TOOLS.split():
-            bld.SAMBA_BINARY(t, 'tools/%s.c' % t, deps='ldb-cmdline ldb',
+            bld.SAMBA_BINARY('samba-%s' % t, 'tools/%s.c' % t, deps='ldb-cmdline ldb',
                              manpages='man/%s.1' % t)
 
         # ldbtest doesn't get installed
@@ -463,10 +462,10 @@ def build(bld):
         else:
             lmdb_deps = ''
         # ldbdump doesn't get installed
-        bld.SAMBA_BINARY('ldbdump',
+        bld.SAMBA_BINARY('samba-ldbdump',
                          'tools/ldbdump.c',
                          deps='ldb-cmdline ldb' + lmdb_deps,
-                         install=False)
+                         install=True)
 
         bld.SAMBA_LIBRARY('ldb-cmdline',
                           source='tools/ldbutil.c tools/cmdline.c',
@@ -511,11 +510,6 @@ def build(bld):
                          deps='cmocka ldb',
                          install=False)
 
-        bld.SAMBA_BINARY('ldb_match_test',
-                         source='tests/ldb_match_test.c',
-                         deps='cmocka ldb',
-                         install=False)
-
         if bld.CONFIG_SET('HAVE_LMDB'):
             bld.SAMBA_BINARY('ldb_mdb_mod_op_test',
                              source='tests/ldb_mod_op_test.c',
@@ -583,8 +577,7 @@ def test(ctx):
                  # we don't want to run ldb_lmdb_size_test (which proves we can
                  # fit > 4G of data into the DB), it would fill up the disk on
                  # many of our test instances
-                 'ldb_mdb_kv_ops_test',
-                 'ldb_match_test']
+                 'ldb_mdb_kv_ops_test']
 
     for test_exe in test_exes:
             cmd = os.path.join(Context.g_module.out, test_exe)