From: Andrew Bartlett Date: Tue, 17 Mar 2020 04:07:02 +0000 (+1300) Subject: build: Allow a fuzzing build with Python 3.5 X-Git-Tag: ldb-2.2.0~1382 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee5c07cb0f1c85a56a3f330a692b1b04553213cc;p=thirdparty%2Fsamba.git build: Allow a fuzzing build with Python 3.5 The Python 3.6 changes are only in actual .py files, not in the build system nor the C side of things, so relax this so we can still build on oss-fuzz which is based on Ubuntu 16.04 for now. REF: https://github.com/google/oss-fuzz/issues/3505 REF: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=21189 Signed-off-by: Andrew Bartlett Reviewed-by: Gary Lockyer --- diff --git a/buildtools/wafsamba/samba_python.py b/buildtools/wafsamba/samba_python.py index 994190fdeb2..d71ce47a831 100644 --- a/buildtools/wafsamba/samba_python.py +++ b/buildtools/wafsamba/samba_python.py @@ -10,6 +10,9 @@ def SAMBA_CHECK_PYTHON(conf, version=(3,6,0)): if conf.env.disable_python: version=(2,6,0) + if conf.env.enable_fuzzing: + version=(3,5,0) + # enable tool to build python extensions if conf.env.HAVE_PYTHON_H: conf.check_python_version(version)