silence uselib_local warning produced by waf
authorMichael Tokarev <mjt@tls.msk.ru>
Sun, 3 Apr 2022 04:57:38 +0000 (07:57 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 17 Jul 2025 10:52:35 +0000 (13:52 +0300)
During config/build process in verbose mode, waf produces
about 2k repetitions of this warning:

  compat: "uselib_local" is deprecated, replace by "use"

which clutters the build log.

Comment this warning out for now until it will be
fixed properly.

Gbp-Pq: Name silence-waf-uselib_local.diff

buildtools/wafsamba/samba_waf18.py

index 54444b3ab68f00921a6640d3944c2df2c9faa90e..f186378567740781d2aca9242eb885c2eb86fc4f 100644 (file)
@@ -315,9 +315,9 @@ def apply_uselib_local(self):
     seen = set()
     seen_uselib = set()
     tmp = Utils.deque(names) # consume a copy of the list of names
-    if tmp:
-        if Logs.verbose:
-            Logs.warn('compat: "uselib_local" is deprecated, replace by "use"')
+    #if tmp:
+    #    if Logs.verbose:
+    #        Logs.warn('compat: "uselib_local" is deprecated, replace by "use"')
     while tmp:
         lib_name = tmp.popleft()
         # visit dependencies only once