summaryrefslogtreecommitdiff
path: root/source3/wscript
Commit message (Collapse)AuthorAgeFilesLines
* s3:waf: Remove check for fdatasyncAndreas Schneider2019-10-201-3/+1
| | | | | | | | | | | This is already checked by libreplace as replace also provides it. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Sun Oct 20 14:52:40 UTC 2019 on sn-devel-184
* wscript: split function check to one per line and sort alphabeticallyRalph Boehme2019-10-101-15/+62
| | | | | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Oct 10 20:13:25 UTC 2019 on sn-devel-184
* wscript: remove all checks for _FUNC and __FUNCRalph Boehme2019-10-101-21/+18
| | | | | | | Those where historic artifacts not needed anymore. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3:mdssvc: add Elasticsearch backendRalph Boehme2019-10-091-2/+18
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Noel Power <noel.power@suse.com>
* s3: VFS: Add SMB_VFS_FCNTLAnoop C S2019-10-081-0/+109
| | | | | | Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:waf: Do not check for nanosleep() as we don't use it anywhereAndreas Schneider2019-09-251-1/+0
| | | | | | | | | | | | We use usleep() in the meantime. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14140 Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Isaac Boukris <iboukris@gmail.com> Pair-Programmed-With: Isaac Boukris <iboukris@gmail.com> Reviewed-by: Matthias Dieter Wallnöfer <mdw@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
* s3/wscript: avoid inefficient string concatenationsBjörn Jacke2019-09-241-3/+1
| | | | | Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Matthias Dieter Wallnöfer <mdw@samba.org>
* s3: VFS: Remove vfs_netatalk. Old, unused and unmaintained.Jeremy Allison2019-09-181-1/+1
| | | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Sep 18 01:26:06 UTC 2019 on sn-devel-184
* build: Remove tests for getdents() and getdirentries()Andrew Bartlett2019-09-171-1/+1
| | | | | | | | | | | | | | | | These date back to 3a9beef2b7b25427ee4611cfc375e05cc82a1150 in 2003 and 829e72fe9c97feaa3d45b768984a4c47b906a23a in 1998 and appear to be related to smbwrapper. More of these should be removed but the getdirents() test caused a timeout on an ARM builder in Debian. It might just be a fluke but the tests are pointless regardless. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Sep 17 13:48:18 UTC 2019 on sn-devel-184
* build: remove unneeded libceph-common dependencyBjörn Baumbach2019-09-021-3/+1
| | | | | | | | | | | | | librados and libcephfs are both dependent on ceph-common, but ctdb_mutex_ceph_rados_helper and vfs_ceph needn't be explicitly linked against it. Signed-off-by: Björn Baumbach <bb@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Sep 2 03:44:24 UTC 2019 on sn-devel-184
* build: drop --with-libcephfs=<path> supportDavid Disseldorp2019-09-021-5/+4
| | | | | | | | | | --with-libcephfs=<path> provides a mechanism for explicitly specifying header and library paths for Ceph. This adds unnecessary complexity and can be achieved using generic compiler environment variables (e.g. GCC LIBRARY_PATH and C_INCLUDE_PATH), so drop --with-libcephfs support. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3: smbd: Add sys_mknodat() wrapper call.Jeremy Allison2019-08-221-1/+1
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
* s3:wscript: enable Spotlight by defaultRalph Boehme2019-08-081-15/+26
| | | | | | | | | | | | | | | | Now that we have a no-op backend that is always available, we can compile mdssvc by default. The new behaviour is: option not used Default: build mdsvc with available backends from autodetection --disable-spotlight Do not build mdssvc --enable-spotlight Build mdssvc and require a real backend (currently Tracker, in the future also Elasticsearch) Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:mdssvc: add noindex backendRalph Boehme2019-08-081-7/+5
| | | | | | | | | | | | | | 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>
* s3:mdssvc: add Unicode normalisationRalph Boehme2019-08-081-0/+3
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:mdssvc: new option "spotlight backend"Ralph Boehme2019-08-081-12/+20
| | | | | | | | Currently there's only the tracker backend, but subsequent commits will add other backends. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* build: Only check rpc/xdr.h in tirpc if requiredVolker Lendecke2019-08-061-1/+2
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* build: Correctly detect rpc/xdr.h on FreeBSDVolker Lendecke2019-08-061-0/+1
| | | | | | | FreeBSD needs rpc/types.h included before rpc/xdr.h Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* wscript: Fix a typoVolker Lendecke2019-08-061-1/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* vfs:glusterfs_fuse: build only if we have setmntent()Michael Adam2019-08-011-1/+3
| | | | | | | | | | | | | | | | FreeBSD and other platforms that don't have setmntent() and friends can not compile this module. This patch lets changes the build to only compile this module if the setmntent() function is found. This is the a follow-up fix to the actual fix for bug #13972. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13972 Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Thu Aug 1 09:49:04 UTC 2019 on sn-devel-184
* vfs: add ceph_snapshots moduleDavid Disseldorp2019-05-141-0/+5
| | | | | | | | | vfs_ceph_snapshots is a module for accessing CephFS snapshots as Previous Versions. The module is separate from vfs_ceph, so that it can also be used atop a CephFS kernel backed share with vfs_default. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* wscript: Remove checks for shm_open and shmgetChristof Schmitt2019-04-251-3/+0
| | | | | | | | | | | | | Commit 74a16a1094278 "s3:smbprofile: Replace sysv shmem with tdb" removed the usage of the shared memory segment for profiling data. As there are no other users of shared memory segments, remove the configure check for these functions. Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Apr 25 00:54:16 UTC 2019 on sn-devel-184
* s3/lib: new tevent_glib_glue subsystemRalph Boehme2019-04-241-0/+13
| | | | | | | | | | | tevent_glib_glue_create() takes glib GMainContext and adds its event sources to a tevent context. tevent will poll the sources and run handlers for pending events as detailed in the glib documentation: https://developer.gnome.org/glib/stable/glib-The-Main-Event-Loop.html Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Noel Power <npower@samba.org>
* s3:wscript: fix flex and bison detectionRalph Boehme2019-04-241-2/+2
| | | | | | | conf.env['BISON'] and conf.env['FLEX'] return lists. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Noel Power <npower@samba.org>
* s3:wscript: fix flex and bison detection message when not installedRalph Boehme2019-04-241-9/+11
| | | | | | | | | | | | | | | | | | | If flex or bison are not installed, conf.env['BISON'] and conf.env['FLEX'] respectively return an empty string, so conf.CHECK_COMMAND() runs $ /bin/sh -c " --version | head -n1" and $ /bin/sh -c " --version" which results in the following message /bin/sh: []: command not found Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Noel Power <npower@samba.org>
* s3: build: seperate out check for Gnome Tracker from SpotlightRalph Boehme2019-04-241-22/+33
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Noel Power <npower@samba.org>
* waf: fix array access out of bounds exception in the check for flexRalph Boehme2019-04-241-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If flex is not installed the following expection is triggered: Checking for flex Checking for program 'flex' : not found Traceback (most recent call last): File "/home/slow/git/samba/scratch/third_party/waf/waflib/Scripting.py", line 158, in waf_entry_point run_commands() File "/home/slow/git/samba/scratch/third_party/waf/waflib/Scripting.py", line 251, in run_commands ctx = run_command(cmd_name) File "/home/slow/git/samba/scratch/third_party/waf/waflib/Scripting.py", line 235, in run_command ctx.execute() File "/home/slow/git/samba/scratch/third_party/waf/waflib/Configure.py", line 159, in execute super(ConfigurationContext, self).execute() File "/home/slow/git/samba/scratch/third_party/waf/waflib/Context.py", line 204, in execute self.recurse([os.path.dirname(g_module.root_path)]) File "/home/slow/git/samba/scratch/third_party/waf/waflib/Context.py", line 286, in recurse user_function(self) File "/home/slow/git/samba/scratch/wscript", line 307, in configure conf.RECURSE('source3') File "./buildtools/wafsamba/samba_utils.py", line 66, in fun return f(*k, **kw) File "./buildtools/wafsamba/samba_utils.py", line 481, in RECURSE return ctx.recurse(relpath) File "/home/slow/git/samba/scratch/third_party/waf/waflib/Context.py", line 286, in recurse user_function(self) File "/home/slow/git/samba/scratch/source3/wscript", line 1660, in configure flex.configure(conf) File "/home/slow/git/samba/scratch/third_party/waf/waflib/Tools/flex.py", line 59, in configure if re.search (r"\\msys\\[0-9.]+\\bin\\flex.exe$", conf.env.FLEX[0]): IndexError: list index out of range This happens because when the detection of flex fails, an excpetion is thrown in Configure.py:find_program by calling self.fatal(), but as Configure.py:find_program() is called from samba_waf18.py:find_program_samba() which sets the keyword argument mandatory=False, Configure.py:conf:fun() catches the expection. As a result in flex.py the call to conf.find_program('flex', var='FLEX') does not abort and if re.search (r"\\msys\\[0-9.]+\\bin\\flex.exe$", conf.env.FLEX[0]) is executed even though conf.env.FLEX is None. As this is a not a problem of upstream Samba, but triggered by our samba_waf18.py:find_program_samba(), I don't pursue an upstream fix. Instead, just use conf.find_program() directly instead of the wrapper in flex.py. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Noel Power <npower@samba.org>
* s3-messages: add mallinfo() information to pool-usage reportRalph Wuerthner2019-04-041-0/+12
| | | | | | | | | Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org> Autobuild-User(master): Christof Schmitt <cs@samba.org> Autobuild-Date(master): Thu Apr 4 23:39:25 UTC 2019 on sn-devel-144
* s3:waf: Fix the detection of makdev() macro on LinuxAndreas Schneider2019-03-211-0/+3
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=13853 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Mar 21 21:40:20 UTC 2019 on sn-devel-144
* waf: add library dependency for sendfile on SolarisBjörn Jacke2019-02-171-0/+2
| | | | | Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* waf/quotas: fail configure when quotas were requested but not foundBjörn Jacke2019-02-171-2/+5
| | | | | Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>
* waf: check for jfs/quota.hBjoern Jacke2019-02-171-0/+2
| | | | | Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>
* waf: Check for libnscdChristof Schmitt2019-02-131-0/+3
| | | | | | | | | | | | | | The check was in the old autoconf, but not in waf. As the code is still in source3/lib/util_nscd.c, add the check for libnscd to allow building and using the code. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13787 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Wed Feb 13 17:58:33 CET 2019 on sn-devel-144
* vfs_glusterfs: Adapt to changes in libgfapi signaturesAnoop C S2019-02-031-0/+3
| | | | | | | | | | | | | | | VFS module for GlusterFS fails to compile due to recent changes done to some API signatures. Therefore adding missing arguments to those APIs adapting to new signatures. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13330 Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Sun Feb 3 17:00:33 CET 2019 on sn-devel-144
* build: replace SAMBA3_ADD_OPTION with samba_add_onoff_optionDavid Disseldorp via samba-technical2019-02-011-28/+28
| | | | | | | | | The former is just an alias for the latter. samba_add_onoff_option() better describes what the function actually does, so use that and remove the alias. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Noel Power <npower@samba.org>
* s3-vfs: add glusterfs_fuse vfs module.Günther Deschner2019-01-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | This module only implements the get_real_filename function by accessing a distinct extended attribute that is available over a glusterfs fuse mount. By implementing this vfs function users of a glusterfs fuse mount achieve a much better performance in create based workloads where samba then can avoid trying multiple case folding options to detect the real filename. Patch is based on an initial patch provided by Poornima G <pgurusid@redhat.com> Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Günther Deschner <gd@samba.org> Autobuild-Date(master): Tue Jan 22 18:37:56 CET 2019 on sn-devel-144
* waf: check for utmpx struct member ut_hostBjörn Jacke2019-01-101-0/+2
| | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=2489 Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* waf: fix tri-state of --with-sendfile-support being auto the defaultBjörn Jacke2019-01-081-8/+4
| | | | | | | | | | | | | | | --with-sendfile-support should be used automatically if it's found. Configure now also fails reliably for all platforms when sendfile was explicitly requested but failed to be detected. BUG: https://bugzilla.samba.org/show_bug.cgi?id=9707 Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Jan 8 07:03:49 CET 2019 on sn-devel-144
* waf: fix waf errors with sendfail detection on SolarisBjörn Jacke2019-01-081-3/+4
| | | | | Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* Fix spelling mistakesOlly Betts2018-11-301-1/+1
| | | | | | Signed-off-by: Olly Betts <olly@survex.com> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3/wscript: fix flex detectionRalph Boehme2018-09-071-1/+1
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* s3/wscript: fix bison detectionRalph Boehme2018-09-071-1/+1
| | | | | Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* source3/wscript: update to handle waf 2.0.4Alexander Bokovoy2018-09-051-13/+14
| | | | | Signed-off-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* build:wafsamba: Build on waf 1.9Thomas Nagy2018-09-051-1/+1
| | | | | | Signed-off-by: Thomas Nagy <tnagy@waf.io> Reviewed-by: Alexander Bokovoy <ab@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* vfs_delay_inject: adding delay to VFS callsRalph Boehme2018-08-311-0/+1
| | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=13549 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:modules: add vfs_not_implemented moduleStefan Metzmacher2018-07-251-1/+3
| | | | | | | | This provides helper functions, which can be used by other modules, if they don't implement a specific function. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* s3: smbd: SGI IRIX is officially dead. Remove the kernel oplock code for IRIX.Jeremy Allison2018-07-251-5/+0
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
* lib/util: rename USE_LINUX_THREAD_CREDENTIALS to HAVE_LINUX_THREAD_CREDENTIALSRalph Boehme2018-07-241-4/+4
| | | | | | | | The define reflects the results of a feature test, not a configure option. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* configure: check for Linux specific unshare() with CLONE_FSRalph Boehme2018-07-241-0/+5
| | | | | | | | | | | | | | | | Note we still need some kind of runtime detection as it can fail in some constraint container setups, which reject the whole unshare() syscall instead of just the once used for container features. In case unshare(CLONE_FS) works, we can have a per thread current working directory and use [f]chdir() safely in worker threads. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Ralph Boehme <slow@samba.org>
* s3:wscript: don't check for valgrind related headers twiceStefan Metzmacher2018-07-241-1/+1
| | | | | | | We already check them in lib/replace/wscript. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>