From dfbfb7eb941b68ce75adc3ece25915b2eefaf886 Mon Sep 17 00:00:00 2001 From: Swen Schillig Date: Mon, 26 Nov 2018 20:14:21 +0100 Subject: waf: Utils package not defined Fix the package name for the WafError routine. Signed-off-by: Swen Schillig Reviewed-by: Stefan Metzmacher Reviewed-by: Alexander Bokovoy Autobuild-User(master): Alexander Bokovoy Autobuild-Date(master): Tue Dec 4 18:45:38 CET 2018 on sn-devel-144 --- third_party/aesni-intel/wscript | 8 ++++---- third_party/wscript | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'third_party') diff --git a/third_party/aesni-intel/wscript b/third_party/aesni-intel/wscript index bb874454ca6..955b5162140 100644 --- a/third_party/aesni-intel/wscript +++ b/third_party/aesni-intel/wscript @@ -1,6 +1,6 @@ #!/usr/bin/env python from waflib import Options -from waflib import Utils +from waflib import Errors def configure(conf): if Options.options.accel_aes.lower() == "intelaesni": @@ -14,11 +14,11 @@ def configure(conf): print("Compiling with Intel AES instructions") conf.DEFINE('HAVE_AESNI_INTEL', 1) else: - raise Utils.WafError('--accel-aes=intelaesni selected and non x86_64 CPU') + raise Errors.WafError('--accel-aes=intelaesni selected and non x86_64 CPU') else: - raise Utils.WafError('--aes-accel=intelaesni selected and compiler rejects ' + str(asm_flags)) + raise Errors.WafError('--aes-accel=intelaesni selected and compiler rejects ' + str(asm_flags)) if not conf.CHECK_LDFLAGS('-Wl,-z,noexecstack'): - raise Utils.WafError('--accel-aes=intelaesni selected and linker rejects -z noexecstack') + raise Errors.WafError('--accel-aes=intelaesni selected and linker rejects -z noexecstack') def build(bld): if not bld.CONFIG_SET('HAVE_AESNI_INTEL'): diff --git a/third_party/wscript b/third_party/wscript index c4744b7a589..f7a6daff0dd 100644 --- a/third_party/wscript +++ b/third_party/wscript @@ -3,7 +3,7 @@ import os import sys import samba_git -from waflib import Options, Utils +from waflib import Options, Errors # work out what python external libraries we need to install external_pkgs = { @@ -29,12 +29,12 @@ def find_third_party_module(conf, module, package): __import__(module) except ImportError: if samba_git.has_submodules(conf.srcnode.abspath()): - raise Utils.WafError("""\ + raise Errors.WafError("""\ Unable to find Python module '%s'. Please install the system package or check \ out the relevant submodule by running 'git submodule update --init'. """ % module) else: - raise Utils.WafError("""\ + raise Errors.WafError("""\ Unable to find Python module '%s'. Please install the system package or place a copy in %s. """ % (module, package)) -- cgit v1.2.1