From: Andrew Bartlett Date: Thu, 30 May 2024 09:13:01 +0000 (+1200) Subject: script/autobuild.py: Add test for --vendor-name and --vendor-patch-revision X-Git-Tag: samba-4.19.8~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f525d2fef3d755269db3800627704a5b03b244c0;p=thirdparty%2Fsamba.git script/autobuild.py: Add test for --vendor-name and --vendor-patch-revision BUG: https://bugzilla.samba.org/show_bug.cgi?id=15654 Signed-off-by: Andrew Bartlett Reviewed-by: Douglas Bagnall RN: We have added new options --vendor-name and --vendor-patch-revision arguments to ./configure to allow distributions and packagers to put their name in the Samba version string so that when debugging Samba the source of the binary is obvious. [abartlet@samba.org adapted to 4.20 still having the seperate LDB build system from commit 72112d4814eb3872016c1168c477531be835a1f9] --- diff --git a/script/autobuild.py b/script/autobuild.py index 85043032d73..7777c35cf12 100755 --- a/script/autobuild.py +++ b/script/autobuild.py @@ -888,9 +888,10 @@ tasks = { ("ldb-make", "cd lib/ldb && make"), ("ldb-install", "cd lib/ldb && make install"), - ("nondevel-configure", samba_libs_envvars + " ./configure ${PREFIX}"), + ("nondevel-configure", samba_libs_envvars + " ./configure --vendor-name=autobuild-TEST-STRING --vendor-patch-revision=5 ${PREFIX}"), ("nondevel-make", "make -j"), ("nondevel-check", "./bin/smbd -b | grep WITH_NTVFS_FILESERVER && exit 1; exit 0"), + ("nondevel-check", "./bin/smbd --version | grep -e '-autobuild-TEST-STRING-5' && exit 0; exit 1"), ("nondevel-no-libtalloc", "find ./bin | grep -v 'libtalloc-report' | grep 'libtalloc' && exit 1; exit 0"), ("nondevel-no-libtdb", "find ./bin | grep -v 'libtdb-wrap' | grep 'libtdb' && exit 1; exit 0"), ("nondevel-no-libtevent", "find ./bin | grep -v 'libtevent-util' | grep 'libtevent' && exit 1; exit 0"),