third_party/uid_wrapper/wscript: update to handle waf 2.0.4
authorAlexander Bokovoy <ab@samba.org>
Fri, 2 Feb 2018 14:34:33 +0000 (16:34 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 5 Sep 2018 04:37:24 +0000 (06:37 +0200)
Signed-off-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
third_party/uid_wrapper/wscript

index 8127a9d9f408f81209172fa54606d86dc734937e..b1dc3792bc36d1db930881155c2bfcc607764693 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 
-import Options
+from waflib import Options
 import os, sys
 
 VERSION="1.2.4"
@@ -106,7 +106,7 @@ syscall(SYS_setgroups32, 0, NULL);
         conf.CHECK_FUNCS('getresuid getresgid')
 
         # Create full path to uid_wrapper
-        blddir = os.path.realpath(conf.blddir)
+        blddir = os.path.realpath(conf.bldnode.abspath())
         libuid_wrapper_so_path = blddir + '/default/third_party/uid_wrapper/libuid-wrapper.so'
 
     conf.DEFINE('LIBUID_WRAPPER_SO_PATH', libuid_wrapper_so_path)