wafsamba/samba_waf18: redefine flex function
authorAlexander Bokovoy <ab@samba.org>
Thu, 6 Sep 2018 06:36:18 +0000 (09:36 +0300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 7 Sep 2018 13:45:36 +0000 (15:45 +0200)
commit4847daf0b762db205812347c8e31edd3a3ef5039
tree7236573e4e2f562ab808947a627a80652c520f91
parent364077d262012af0346afad6d9b9c3999054563f
wafsamba/samba_waf18: redefine flex function

There is a bug in waf: flex routine adjusts its inputs against
the task's current working directory but assumes it is being called from
within the build variant directory.

For Samba this means we adjust one level up than the actual work
directory we use to run (bin/ vs bin/default) and flex doesn't find the
source files.

Fix the issue by creating a local override of flex definition that
utilizes the same workd directory for both path adjustment and running
the flex itself.

Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Fri Sep  7 15:45:36 CEST 2018 on sn-devel-144
buildtools/wafsamba/samba_waf18.py