From 208eb7469d9208f2aa8bff5f07ef90be3f3d7b1d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 15 Apr 2010 08:55:26 +1000 Subject: [PATCH] build: check that the user is not using an old /usr/bin/waf some systems have /usr/bin/waf installed, and its quite old --- buildtools/wafsamba/wafsamba.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index 386ed3c90f3..de244e18fe5 100644 --- a/buildtools/wafsamba/wafsamba.py +++ b/buildtools/wafsamba/wafsamba.py @@ -1,7 +1,7 @@ # a waf tool to add autoconf-like macros to the configure section # and for SAMBA_ macros for building libraries, binaries etc -import Build, os, Options, Task, Utils, cc, TaskGen, fnmatch, re, shutil, Logs +import Build, os, Options, Task, Utils, cc, TaskGen, fnmatch, re, shutil, Logs, Constants from Configure import conf from Logs import debug from samba_utils import SUBST_VARS_RECURSIVE @@ -35,6 +35,16 @@ LIB_PATH="shared" os.putenv('PYTHONUNBUFFERED', '1') + +if Constants.HEXVERSION < 0x105016: + Logs.error(''' +Please use the version of waf that comes with Samba, not +a system installed version. See http://wiki.samba.org/index.php/Waf +for details +''') + sys.exit(1) + + @conf def SAMBA_BUILD_ENV(conf): '''create the samba build environment''' -- 2.34.1