]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
build: Allow a fuzzing build with Python 3.5
authorAndrew Bartlett <abartlet@samba.org>
Tue, 17 Mar 2020 04:07:02 +0000 (17:07 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 19 Mar 2020 20:46:42 +0000 (20:46 +0000)
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 <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
buildtools/wafsamba/samba_python.py

index 994190fdeb2b09b0c90baece7e4902a796c0a723..d71ce47a8310d2a47c4d873eba4544d45d09c4d1 100644 (file)
@@ -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)