summaryrefslogtreecommitdiff
path: root/buildtools
AgeCommit message (Collapse)AuthorFilesLines
2026-04-10samba_cross.py: autobuild fails with trailing space at line endingsBjörn Jacke1-1/+1
autobuild fails with trailing space at line endings, so we need to strip() only at "\n" here strictly. BUG: https://bugzilla.samba.org/show_bug.cgi?id=16057 Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Fri Apr 10 21:20:52 UTC 2026 on atb-devel-224
2026-04-08buildtools: fix clang warning: argument unusedGary Lockyer1-2/+2
Fix: clang-xx: warning: argument unused during compilation: '-undefined dynamic_lookup' [-Wunused-command-line-argument] Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Anoop C S <anoopcs@samba.org> Autobuild-User(master): Anoop C S <anoopcs@samba.org> Autobuild-Date(master): Wed Apr 8 08:38:21 UTC 2026 on atb-devel-224
2026-03-27wafsamba: Add -D_FORTIFY_SOURCE=3 when stack protector is enabledAndreas Schneider1-1/+6
The capability check in SAMBA_CONFIG_H() already tests that the compiler accepts both -Wp,-D_FORTIFY_SOURCE and the stack protector flag together, but only the stack protector flag was added to EXTRA_CFLAGS on success. The glibc normally silently downgrades to the supported level if the on specified is not supported. Note that -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 only sets it if not already defined. BUG: https://bugzilla.samba.org/show_bug.cgi?id=16040 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Mar 27 08:33:09 UTC 2026 on atb-devel-224
2026-03-03build: clang 21 re-enable -Wunititialized-const-pointerGary Lockyer1-1/+0
[4102/5009] Compiling source4/torture/rpc/spoolss_notify.c ../../source4/torture/rpc/spoolss.c:3984:48: error: variable 'data' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer] 3984CHECK_NEEDED_SIZE_LEVEL(spoolss_PrinterData, &data, type, needed, 1); Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Anoop C S <anoopcs@samba.org> Autobuild-User(master): Anoop C S <anoopcs@samba.org> Autobuild-Date(master): Tue Mar 3 05:55:25 UTC 2026 on atb-devel-224
2026-03-03build: Allow developer builds with clang 21Gary Lockyer1-0/+1
Disable clang warnings to allow samba to be compiled with clang 21. Subsequent commits will fix the offending code. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-02-25wafsamba: Add support for chmod of generated itemsMartin Schwenke1-1/+3
CTDB generates scripts that are run during self-test, so add a chmod option to SAMBA_GENERATOR(). Signed-off-by: Martin Schwenke <mschwenke@ddn.com> Reviewed-by: Anoop C S <anoopcs@samba.org>
2026-02-25wafsamba: Add support for symlinking generated itemsMartin Schwenke2-2/+41
CTDB generates scripts and these want to be used in self-test. So, update SAMBA_GENERATOR() to allow items to be symlinked into bin/. Signed-off-by: Martin Schwenke <mschwenke@ddn.com> Signed-off-by: Anoop C S <anoopcs@samba.org>
2026-02-18build: allow `./configure _foo=x` to work like FOO=xDouglas Bagnall1-2/+12
OpenWRT passes arguments like '_python_sysroot=x' after the './configure', which it expects to work as if the occurred before the './configure' -- that is, setting environment variables (let's assume its build system is necessarily complex due to all the cross-compiles). This used to work (or at least not cause a failure return code) until the upgrade to waf 2.1.5 or 2.1.6 in mid-2025, when waf started using the argparse parser. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15990 Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz> Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org> Autobuild-Date(master): Wed Feb 18 00:00:30 UTC 2026 on atb-devel-224
2025-12-09third_party: Update socket_wrapper to version 1.5.2Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2025-10-17third_party: Update cmocka to version 1.1.8Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org> Autobuild-User(master): Anoop C S <anoopcs@samba.org> Autobuild-Date(master): Fri Oct 17 12:16:23 UTC 2025 on atb-devel-224
2025-09-16buildtools: fixed broken build with FIPS-enabled hostShachar Sharon1-37/+0
MD5 is not supported on FIPS-enabled machines, but the current work-around is broken. One the other hand, latest Waf has proper fixup (use sha1 as a replacement to md5) so there is no need for Samba specific code. Tested on CentOS-stream-9 with FIPS (Python-3.9.23). Signed-off-by: Shachar Sharon <ssharon@redhat.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2025-09-11third_party: Bump version for socket_wrapperAndreas Schneider1-1/+1
Commit be007c2cf41085a8648965fc904f37d25d35a453 forgot to do that. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15913 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu Sep 11 17:05:00 UTC 2025 on atb-devel-224
2025-07-17third_party: import ngtcp2 v1.13.0 from https://github.com/ngtcp2/ngtcp2.gitStefan Metzmacher1-0/+12
This imports commit 7dd482f949f145632c482d01af2184954b471795. It will be used to implement a quic_ko_wrapper, but also used as userspace client too. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-07-17third_party: import quic from https://github.com/lxin/quic.gitStefan Metzmacher1-0/+5
For now the VERSION argument to third_party/quic/update.sh is ignored as there are no versions yet. For now we require version 1.1 (not releases) for a system library, in order to make sure it is recent enough. This import is based on commit 846dddb24f007c8356ce3c19c74445160a8d94f7. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
2025-06-18Enable clang 20 cast-qual warningsGary Lockyer1-1/+0
Now that pam_wrapper has been upgraded to 1.1.8, it compiles without cast-qual warnings. So lets re-enable the warnings. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Anoop C S <anoopcs@samba.org> Autobuild-User(master): Anoop C S <anoopcs@samba.org> Autobuild-Date(master): Wed Jun 18 06:26:53 UTC 2025 on atb-devel-224
2025-06-17third_party: Update pam_wrapper to version 1.1.8Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Tue Jun 17 08:38:35 UTC 2025 on atb-devel-224
2025-06-12third_party: Update waf to version 2.1.6Andreas Schneider2-2/+2
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Anoop C S <anoopcs@samba.org> Autobuild-User(master): Anoop C S <anoopcs@samba.org> Autobuild-Date(master): Thu Jun 12 13:39:03 UTC 2025 on atb-devel-224
2025-05-28Fix clang 20 format-nonliteral warningsGary Lockyer1-1/+0
Fix: /source3/utils/smbcacls.c:1619:35 error: format string is not a string literal [-Werror -Wformat-non-literal] Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-05-28Fix clang 20 format-truncation warningsGary Lockyer1-1/+0
Fix: lib/replace/tests/testsuite.c:387:6: error: 'snprintf' will always be truncated; specified size is 3, but format string expands to at least 5 [-Werror,-Wformat-truncation] 387 | if (snprintf(tmp, 3, "foo%d", 9) != 4) { | ^ As this is an explicit test of snprintf's truncation behaviour the warning can be safely suppressed. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-05-28Fix clang 20 unused-function warningsGary Lockyer1-1/+0
Remove unused function: static inline struct ldb_val talloc_steal_ldb_val(TALLOC_CTX *mem_ctx, struct ldb_val val) From source4/kdc/ad_claims.c 1 error generated. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-05-28Fix clang 20 unused-but-set-variables warningsGary Lockyer1-1/+3
Suppress error: variable 'yynerrs' set but not used [-Werror,-Wunused-but-set-variable] for the code generated from the yacc files. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-05-28Fix clang 20 sometimes-uninitialized warningsGary Lockyer1-1/+0
Fix clang 20: variable '' is uninitialized where 'if' condition is true Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-05-28Fix clang 20 shadows variable in global scope warningGary Lockyer1-1/+0
Fixes: [4822/4916] Compiling source3/torture/torture.c ../../source3/torture/torture.c:685:6: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] 685 | int timezone = smb1cli_conn_server_time_zone(cli->conn); | ^ /usr/include/time.h:234:17: note: previous declaration is here 234 | extern long int timezone; | ^ 1 error generated. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-05-28build: Allow developer builds with clang 20Gary Lockyer1-0/+7
Disable clang warnings to allow samba to be compiled with clang 20. Subsequent commits will fix the offending code and re-enable the warnings. Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Anoop C S <anoopcs@samba.org>
2025-05-16wafsamba: Adjust 'match' logic to override paths in config.check()Noel Power2-2/+4
messages that match various parts of the configure check progress e.g. 'Checking for library iconv' 'Checking for iconv_open' 'Checking for header iconv.h' are intercepted and the some path(s) modified with the associated option value o buildtools/wafsamba/samba_conftests.py: Add arg_list variable arg_list contains the argument object returned from 'argparser.ArgumentParser.add_argument' which is called with the content of the 'match' keyword passed to 'add_option' stripped out. The content of the 'match' keyword is saved as an attribute to the arg object appended to arg_list. o buildtools/wafsamba/samba_waf18.py: search arg_list (see above) that match and 'msg' argument passed to arg_list (allowing the dest variable associated with the argument to be accessed and added to some 'path' used during the 'check' phase Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri May 16 10:31:31 UTC 2025 on atb-devel-224
2025-05-16wafsamba: Adjust for waf 2.1.5 case of some Options.options attributesNoel Power1-3/+3
Some dynamic attribute names for some variables have changed from uppercase to lowercase with waf 2.1.5 e.g. Options.options.LIBDIR -> Options.options.libdir Options.options.BINDIR -> Options.options.bindir Options.options.SBINDIR -> Options.options.sbindir Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2025-05-16wafsamba: Adjust for waf 2.1.5 wafsamba_options_parse_cmd_args returnNoel Power1-2/+2
return 2 item tuple to match waf 2.1.5 version of Options.OptionsContext.parse_cmd_args Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2025-05-16third_party: Update waf to version 2.1.5Andreas Schneider2-2/+2
https://gitlab.com/ita1024/waf/-/blob/waf-2.1.5/ChangeLog This breaks the build, the following 4 commit will fix it again. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2025-05-16wafsamba: Adjust value type from string name(s) to actualAndreas Schneider1-2/+2
Signed-off-by: Noel Power <noel.power@suse.com> Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2025-05-16third_party: Update waf to version 2.0.27Andreas Schneider2-2/+2
This is the last 2.0.x version. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri May 16 08:48:22 UTC 2025 on atb-devel-224
2025-05-06third_party: Update socket_wrapper to version 1.5.0Stefan Metzmacher1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue May 6 14:06:49 UTC 2025 on atb-devel-224
2025-02-27build: --disable-warnings-as-errors avoids some warning config checksDouglas Bagnall1-2/+3
This fixes compilation with some versions of Honggfuzz. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Jennifer Sutton <jennifersutton@catalyst.net.nz>
2025-01-23third_party: Update socket_wrapper to version 1.4.4Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Thu Jan 23 11:28:32 UTC 2025 on atb-devel-224
2024-10-23Add configure checks for glibc and openssl versionsDavid Mulder1-0/+11
Add configure checks to determine if rust or specifically himmelblau sources can be compiled. Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Add pyglue for Rust for disabling testsDavid Mulder1-0/+2
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Disable the rust build by defaultDavid Mulder2-7/+7
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Vendor the rust sources for CI testsDavid Mulder1-1/+32
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Rust WAF detect dependant files from cratesDavid Mulder1-3/+20
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Modify rust build to share target dir w/ cargo testDavid Mulder1-8/+11
The build needs to share the target directory with the cargo test command to prevent duplicate dependency downloads. Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-10-23Add simple WAF commands for building Rust bininariesDavid Mulder3-0/+43
Signed-off-by: David Mulder <dmulder@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
2024-08-06wafsamba: Fix ABI symbol name generationAndreas Schneider1-3/+3
Commit 0bc5b6f29307ce758774c1b2f48ce62315fdc7f9 changed the script for generating the ABI symbol version. It broke the ABI by changing all dots to underscores. This reverts the commit partially to preserve the dots in the version part. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15673 Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Andreas Schneider <asn@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Günther Deschner <gd@samba.org> Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org> Autobuild-Date(master): Tue Aug 6 00:42:56 UTC 2024 on atb-devel-224
2024-08-04buildtools: Fix code spellingJo Sutton1-1/+1
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2024-08-04buildtools: Remove trailing whitespaceJo Sutton1-2/+0
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2024-08-04buildtools: Use isinstance() to compare typesJo Sutton1-1/+1
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
2024-07-23third_party: Update pam_wrapper to version 1.1.7Andreas Schneider1-1/+1
BUG: https://bugzilla.samba.org/show_bug.cgi?id=9705 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2024-07-08third_party: Update nss_wrapper to version 1.1.16Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Mon Jul 8 06:28:47 UTC 2024 on atb-devel-224
2024-07-03buildtools: sanitise strange characters in vendor stringsDouglas Bagnall1-3/+3
There is no reason to think '-' and '+' are the only characters that might sneak into a vendor string; Debian habitually use '~'. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15673 Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Jo Sutton <josutton@catalyst.net.nz>
2024-06-13third_party: Update socket_wrapper to version 1.4.3Andreas Schneider1-1/+1
This fixes issues with bind compiled with jemalloc. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15660 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Thu Jun 13 08:41:39 UTC 2024 on atb-devel-224
2024-06-13third_party: Update uid_wrapper to version 1.3.1Andreas Schneider1-1/+1
This fixes issues with bind compiled with jemalloc. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15660 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2024-05-31buildtools:pidl: avoid hash randomisation in pidlDouglas Bagnall1-1/+3
Like many languages, Perl uses has randomisation to prevent nasty users using crafted values that hash to the same number to effect a denial of service. This means the traversal order of perl HASH tables is different every time. The IDL handed to pidl is trusted, so we don't really need randomisation, but we do want to be sure the build is the same every time. I am not aware of hash randomisation causing problems, but it seems prudent to avoid it. We do a similar thing with PYTHONHASHSEED for the entire build. Thanks to Freexian and the Debian LTS project for sponsoring this work. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13213 Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>