]> git.ipfire.org Git - thirdparty/samba.git/commit
wafsamba: Adjust 'match' logic to override paths in config.check()
authorNoel Power <noel.power@suse.com>
Thu, 8 May 2025 18:16:07 +0000 (19:16 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 16 May 2025 10:31:31 +0000 (10:31 +0000)
commit0b8be756eb36b56bfccc65add9b102d21c5814f3
tree48c58033ffa18c06a0874f86d6da655f98807c31
parent6e504e022d04d2a3c7a436a69dc106736d7c7287
wafsamba: Adjust 'match' logic to override paths in config.check()

messages that match various parts of the configure check progress e.g.
 'Checking for library iconv'
 'Checking for iconv_open'
 'Checking for header iconv.h'

are intercepted and the some path(s) modified with the associated option
value

    o buildtools/wafsamba/samba_conftests.py: Add arg_list variable
       arg_list contains the argument object returned from
       'argparser.ArgumentParser.add_argument' which is called
       with the content of the 'match' keyword passed to 'add_option'
       stripped out. The content of the 'match' keyword is saved as
       an attribute to the arg object appended to arg_list.
    o buildtools/wafsamba/samba_waf18.py:
       search arg_list (see above) that match and 'msg' argument passed
       to arg_list (allowing the dest variable associated with the argument
       to be accessed and added to some 'path' used during the 'check' phase

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Fri May 16 10:31:31 UTC 2025 on atb-devel-224
buildtools/wafsamba/samba_conftests.py
buildtools/wafsamba/samba_waf18.py