summaryrefslogtreecommitdiff
path: root/source3/wscript
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2019-04-17 11:00:52 +0200
committerJeremy Allison <jra@samba.org>2019-08-08 20:24:32 +0000
commitc742ab7a4c78db4101499d15ada1a6635d5cc35b (patch)
tree92bc369b1a0a1970abb2daccee2ea1a0973be444 /source3/wscript
parente5a4114bb563b1ebf8ce7cad2a335bf24dbbdd32 (diff)
downloadsamba-c742ab7a4c78db4101499d15ada1a6635d5cc35b.tar.gz
s3:mdssvc: add noindex backend
Add a new default backend that, while allowing mdsvc RPC and search queries from clients, always returns no results. Shares using this backend will behave the same way as shares on a macOS SMB server where indexing is disabled. This change will later also allow us to compile the Spotlight RPC service by default which is a big step in the direction of adding tests to CI. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/wscript')
-rw-r--r--source3/wscript12
1 files changed, 5 insertions, 7 deletions
diff --git a/source3/wscript b/source3/wscript
index 8386dea8993..59aa4350ef0 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -1677,7 +1677,7 @@ main() {
conf.env.with_spotlight = False
if Options.options.with_spotlight:
- backends = []
+ backends = ['noindex']
if conf.CONFIG_SET('HAVE_TRACKER') and conf.CONFIG_SET('HAVE_GLIB'):
conf.env.spotlight_backend_tracker = True
backends.append('tracker')
@@ -1692,12 +1692,10 @@ main() {
conf.fatal("Missing support for Unicode normalisation. "
"Try installing icu-dev or libicu-devel.")
- if not conf.env.with_spotlight:
- if not conf.CONFIG_SET('HAVE_TRACKER'):
- Logs.warn('Missing libtracker-sparql development files for Spotlight backend "tracker"')
- if not conf.CONFIG_SET('HAVE_GLIB'):
- Logs.warn('Missing glib-2.0 development files for Spotlight backend "tracker"')
- conf.fatal("Spotlight support requested, but dependencies missing")
+ if not conf.CONFIG_SET('HAVE_TRACKER'):
+ Logs.warn('Missing libtracker-sparql development files for Spotlight backend "tracker"')
+ if not conf.CONFIG_SET('HAVE_GLIB'):
+ Logs.warn('Missing glib-2.0 development files for Spotlight backend "tracker"')
Logs.info("Building with Spotlight support, available backends: %s" % ', '.join(backends))
default_static_modules.extend(TO_LIST('rpc_mdssvc_module'))