summaryrefslogtreecommitdiff
path: root/source3/wscript
AgeCommit message (Collapse)AuthorFilesLines
2021-04-19auth3: Remove auth_skel.cVolker Lendecke1-1/+1
Authentication is a very complex topic, and someone who is able to write a custom auth module turning a struct auth_usersupplied_info into a struct auth_serversupplied_info should be able to live without this skeleton module. This module also gave an example to load a secondary authentication module via a module parameter (the call to load_module()). We have abandoned this practice, and since the "auth methods" parameter has gone we don't use this anymore internally. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2021-04-19VFS: Add SMB_VFS_FNTIMESSamuel Cabrero1-1/+1
Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2021-04-19build: Do not check for unused functions futimes() and futimens()Samuel Cabrero1-2/+1
Signed-off-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2021-03-29build: Notice if flex is missing at configure timeAndrew Bartlett1-9/+0
This may also fix the coverage build by ensuring --noline is always specified to flex. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14586 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Mar 29 02:12:23 UTC 2021 on sn-devel-184
2021-03-26build: Consolidate --with-dnsupdate with --with-ads (which implied HAVE_KRB5)Andrew Bartlett1-6/+0
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Mar 26 04:06:41 UTC 2021 on sn-devel-184
2021-03-19s3: Remove last vestiges of Tru64 ACL support (missed in earlier patch).Jeremy Allison1-4/+0
Added WHATSNEW.txt note. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Mar 19 14:15:02 UTC 2021 on sn-devel-184
2020-12-07s3/wscript: only check for F_SETLEASE being available at compile timeStefan Metzmacher1-15/+2
F_GETLEASE/F_SETLEASE are available (at least) since Linux 2.4.0 from 2002. We also should not have the configure check depend on the filesystem we find at build time. It's very common that the build-environment is much more restricted than the runtime-environment will be. As a history we had this check on Samba 3.6: AC_CACHE_CHECK([for Linux kernel oplocks],samba_cv_HAVE_KERNEL_OPLOCKS_LINUX,[ AC_TRY_RUN([ #include <sys/types.h> #include <fcntl.h> #ifndef F_GETLEASE #define F_GETLEASE 1025 #endif main() { int fd = open("/dev/null", O_RDONLY); return fcntl(fd, F_GETLEASE, 0) == -1; } ], samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes,samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no,samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=cross)]) if test x"$samba_cv_HAVE_KERNEL_OPLOCKS_LINUX" = x"yes"; then AC_DEFINE(HAVE_KERNEL_OPLOCKS_LINUX,1,[Whether to use linux kernel oplocks]) fi which didn't depend on the filesystem. Then we got a broken check introduced in Samba 4.0 (a copy of the F_NOTIFY check): # Check for Linux kernel oplocks conf.CHECK_CODE(''' #include <sys/types.h> #include <fcntl.h> #include <signal.h> #ifndef F_NOTIFY #define F_NOTIFY 1026 #endif main() { exit(fcntl(open("/tmp", O_RDONLY), F_NOTIFY, 0) == -1 ? 1 : 0); }''', 'HAVE_KERNEL_OPLOCKS_LINUX', addmain=False, execute=True, msg="Checking for Linux kernel oplocks") this got "fixed" in Samba 4.7 (and backports to 4.6, 4.5 and 4.4) into # Check for Linux kernel oplocks conf.CHECK_CODE(''' #include <sys/types.h> #include <fcntl.h> #include <signal.h> #ifndef F_GETLEASE #define F_GETLEASE 1025 #endif main() { exit(fcntl(open("/tmp", O_RDONLY), F_GETLEASE, 0) == -1 ? 1 : 0); }''', 'HAVE_KERNEL_OPLOCKS_LINUX', addmain=False, execute=True, msg="Checking for Linux kernel oplocks") Lately it became dependend on the filesystem in the build-environment: # Check for Linux kernel oplocks conf.CHECK_CODE(''' #include <sys/types.h> #include <fcntl.h> #include <signal.h> #ifndef F_GETLEASE #define F_GETLEASE 1025 #endif main() { const char *fname="/tmp/oplock-test.txt"; int fd = open(fname, O_RDWR|O_CREAT, 0644); int ret = fcntl(fd, F_SETLEASE, F_WRLCK); unlink(fname); return (ret == -1) ? 1 : 0; }''', 'HAVE_KERNEL_OPLOCKS_LINUX', addmain=False, execute=True, msg="Checking for Linux kernel oplocks") Now we just check for F_SETLEASE being available in linux/fcntl.h. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2020-12-07s3/wscript: remove unused check for F_NOTIFYStefan Metzmacher1-11/+0
There're no references to F_NOTIFY nor HAVE_KERNEL_CHANGE_NOTIFY in the code, so the configure check is not needed at all. We only use the inotify or fam abstractions. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2020-12-04build: Fix kernel oplock testVolker Lendecke1-2/+6
In a pure docker environment with overlayfs F_GETLEASE works on /tmp, but F_SETLEASE does not. This test now correctly detects that. The effect is that the samba-fileserver environment would run fine in a shared gitlab runner, at the price of not testing kernel oplocks. We could move the kernel oplock tests to another environment that for other reasons can't run on shared gitlab runners. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2020-11-19build: fcvt() and fcvtl() are not usedVolker Lendecke1-3/+1
No need to check for them in the configure phase Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2020-11-06build: put quotes around '!vfs_snapper' module instructionsDavid Disseldorp1-1/+1
Otherwise the exclamation may get swallowed by shell, leading to further confusion. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2020-11-04s3-vfs_glusterfs: always disable write-behind translatorGünther Deschner1-0/+3
The "pass-through" option has now been merged upstream as of: https://github.com/gluster/glusterfs/pull/1640 BUG: https://bugzilla.samba.org/show_bug.cgi?id=14486 Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Pair-Programmed-With: Anoop C S <anoopcs@samba.org> Pair-Programmed-With: Sachin Prabhu <sprabhu@redhat.com> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Nov 4 22:53:49 UTC 2020 on sn-devel-184
2020-09-21s3: fix fcntl waf configure checkRalph Boehme1-5/+5
RN: Fix fcntl waf configure check BUG: https://bugzilla.samba.org/show_bug.cgi?id=14503 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Mon Sep 21 07:26:54 UTC 2020 on sn-devel-184
2020-09-08wscript: Make list of shared modules available in STRING_SHARED_MODULESChristof Schmitt1-0/+1
Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2020-09-03build: avoid some unnecessary list.extend() callsDavid Disseldorp1-8/+8
Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Autobuild-User(master): David Disseldorp <ddiss@samba.org> Autobuild-Date(master): Thu Sep 3 13:33:54 UTC 2020 on sn-devel-184
2020-09-03build: avoid unnecessary TO_LIST() calls for static stringsDavid Disseldorp1-53/+51
Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2020-09-02build: toggle vfs_snapper using --with-shared-modulesDavid Disseldorp1-15/+12
7ae03a19b3c ("build: add configure option to control vfs_snapper build") added new --enable-snapper and --disable-snapper configure parameters to control whether the vfs_snapper module was built. The new parameters conflicted with existing --with-shared-modules=[!]vfs_snapper behaviour. This change reinstates working --with-shared-modules=[!]vfs_snapper functionality. vfs_snapper stays enabled by default, but only on Linux. Linux systems lacking the dbus library and header files should explicitly disable the module via --with-shared-modules=!vfs_snapper as documented. Bug: https://bugzilla.samba.org/show_bug.cgi?id=14437 Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Björn Jacke <bjacke@samba.org> Autobuild-User(master): David Disseldorp <ddiss@samba.org> Autobuild-Date(master): Wed Sep 2 16:24:50 UTC 2020 on sn-devel-184
2020-07-07s3:wscript: vfs_gpfs needs kernel oplock supportStefan Metzmacher1-1/+1
It uses symbols, which are only available if we have HAVE_KERNEL_OPLOCKS_LINUX defined. This is not the case when building withing the Windows Subsystem for Liux (WSL). So we better don't try to build the vfs_gpfs module there. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Jul 7 09:37:37 UTC 2020 on sn-devel-184
2020-06-12build: Put the note from the bottom of the old BUILD_SYSTEMS.txt somewhere ↵Andrew Bartlett1-0/+21
useful This statement on how we handle --with options is best placed near where the options are set, so developers see it when trying to choose the correct thing to do. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2020-05-25build: add configure option to control vfs_snapper buildMatt Taylor1-3/+9
vfs_snapper is currently built if dbus development headers / libraries are detected during configure. This commit adds new --disable-snapper and --enable-snapper (default) configure parameters. When enabled, configure will fail if the dbus development headers / libraries are missing. Signed-off-by: Matt Taylor <liverbugg@rinux.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 May 25 01:16:46 UTC 2020 on sn-devel-184
2020-05-24build: quota wscript error message spelling fixMatt Taylor1-1/+1
Signed-off-by: Matt Taylor <liverbugg@rinux.org> Reviewed-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2020-04-09VFS: Add vfs_widelinks module.Jeremy Allison1-1/+1
Hides symlinks from smbd. Will be used to replace the lp_widelinks() code inside smbd. Long description of how this module works with notes is included. The man page and WHATSNEW.txt update is done in a later patch in this series. Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2020-03-23build: Require --without-ad-dc for --without-adsAndrew Bartlett1-0/+3
Building an AD DC while setting --without-ads makes no sense and just wastes compile time on our build hosts. To allow samba-nt4 to build --without-ad-dc we set rpc.spoolss.notify (which is built on the NTVFS fileserver for the callbacks) to run in the ad_member environment rather than nt4_dc and ad_dc. This is also just more realistic in any case. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
2020-03-09winexe: add configure option to control whether to build it (default: auto)Günther Deschner1-0/+17
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Mar 9 16:27:21 UTC 2020 on sn-devel-184
2020-02-15s3:modules: add vfs_io_uring moduleStefan Metzmacher1-0/+11
The module makes use of the new io_uring infrastructure (intruduced in linux 5.1), see https://lwn.net/Articles/778411/ and http://git.kernel.dk/cgit/liburing/ Currently this only implements SMB_VFS_{PREAD,PWRITE,FSYNC}_SEND/RECV and avoids the overhead of our userspace threadpool. In future we'll hopefully make more use of more advanced io_uring features. For now we don't have automated tests as our test infrastructure doesn't use a recent kernel. At least we're able to do compile tests on fedora31. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Sat Feb 15 11:37:45 UTC 2020 on sn-devel-184
2020-01-11vfs_ceph: drop support for building without statxDavid Disseldorp1-5/+5
libcephfs statx became available with the Kraken (11.2.0) release of Ceph in Jan 2017. Versions prior to this are no longer supported upstream, so we can drop support within Samba vfs_ceph. Signed-off-by: David Disseldorp <ddiss@samba.org> Reviewed-by: Samuel Cabrero <scabrero@samba.org>
2019-12-02auth3: Remove auth_scriptVolker Lendecke1-1/+1
Did this ever really work? Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Dec 2 22:47:24 UTC 2019 on sn-devel-184
2019-11-22s3:printing: Use httpConnect2 from CUPSAndreas Schneider1-1/+1
This fixes deprecation warnings. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Nov 22 19:54:55 UTC 2019 on sn-devel-184
2019-10-20s3:waf: Remove check for fdatasyncAndreas Schneider1-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
2019-10-10wscript: split function check to one per line and sort alphabeticallyRalph Boehme1-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
2019-10-10wscript: remove all checks for _FUNC and __FUNCRalph Boehme1-21/+18
Those where historic artifacts not needed anymore. Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-10-09s3:mdssvc: add Elasticsearch backendRalph Boehme1-2/+18
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Noel Power <noel.power@suse.com>
2019-10-08s3: VFS: Add SMB_VFS_FCNTLAnoop C S1-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>
2019-09-25s3:waf: Do not check for nanosleep() as we don't use it anywhereAndreas Schneider1-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>
2019-09-24s3/wscript: avoid inefficient string concatenationsBjörn Jacke1-3/+1
Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Matthias Dieter Wallnöfer <mdw@samba.org>
2019-09-18s3: VFS: Remove vfs_netatalk. Old, unused and unmaintained.Jeremy Allison1-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
2019-09-17build: Remove tests for getdents() and getdirentries()Andrew Bartlett1-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
2019-09-02build: remove unneeded libceph-common dependencyBjörn Baumbach1-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
2019-09-02build: drop --with-libcephfs=<path> supportDavid Disseldorp1-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>
2019-08-22s3: smbd: Add sys_mknodat() wrapper call.Jeremy Allison1-1/+1
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Ralph Böhme <slow@samba.org>
2019-08-08s3:wscript: enable Spotlight by defaultRalph Boehme1-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>
2019-08-08s3:mdssvc: add noindex backendRalph Boehme1-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>
2019-08-08s3:mdssvc: add Unicode normalisationRalph Boehme1-0/+3
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2019-08-08s3:mdssvc: new option "spotlight backend"Ralph Boehme1-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>
2019-08-06build: Only check rpc/xdr.h in tirpc if requiredVolker Lendecke1-1/+2
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2019-08-06build: Correctly detect rpc/xdr.h on FreeBSDVolker Lendecke1-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>
2019-08-06wscript: Fix a typoVolker Lendecke1-1/+1
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2019-08-01vfs:glusterfs_fuse: build only if we have setmntent()Michael Adam1-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
2019-05-14vfs: add ceph_snapshots moduleDavid Disseldorp1-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>
2019-04-25wscript: Remove checks for shm_open and shmgetChristof Schmitt1-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