]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
wafsamba: Adjust for waf 2.1.5, add default for '--with/without-json'
authorNoel Power <noel.power@suse.com>
Thu, 8 May 2025 19:19:54 +0000 (20:19 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 16 May 2025 09:33:41 +0000 (09:33 +0000)
With argparse we need to specify a default for in order to correctly
handle conflicting values for with/without-json

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
wscript

diff --git a/wscript b/wscript
index a6013fcf442029230ee4eb4e4c0a8a48089f1d92..7ce8cb875a0ddbf09912b29390bd8382ce55a4a6 100644 (file)
--- a/wscript
+++ b/wscript
@@ -139,7 +139,7 @@ def options(opt):
     # enable options related to building python extensions
 
     opt.add_option('--with-json',
-                   action='store_true', dest='with_json',
+                   action='store_true', dest='with_json', default=True,
                    help=("Build with JSON support (default=True). This "
                          "requires the jansson development headers."))
     opt.add_option('--without-json',