File: silence-waf-uselib_local.diff

package info (click to toggle)
samba 2%3A4.23.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 188,088 kB
  • sloc: ansic: 2,007,520; python: 272,673; sh: 72,258; xml: 51,653; perl: 36,094; makefile: 6,353; yacc: 5,323; exp: 1,582; lex: 1,504; cpp: 1,224; awk: 589; java: 119; csh: 58; pascal: 54; sed: 45; asm: 30
file content (31 lines) | stat: -rw-r--r-- 1,084 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Subject: silence uselib_local warning produced by waf
From: Michael Tokarev <mjt@tls.msk.ru>
Date: Sun, 03 Apr 2022 07:57:38 +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.

diff --git a/buildtools/wafsamba/samba_waf18.py b/buildtools/wafsamba/samba_waf18.py
index e2a078bd3a0..dfd53a012d1 100644
--- a/buildtools/wafsamba/samba_waf18.py
+++ b/buildtools/wafsamba/samba_waf18.py
@@ -314,9 +314,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