diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2021-09-16 22:22:31 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-09-19 11:33:14 +0100 |
commit | 2b399a01b529d176c87532bf6dec4ff45257c1ea (patch) | |
tree | bbb1c66600520eebf0e687147b687c50fb24bbdb /bitbake | |
parent | ab55ae5d390ab1c21d53542ac01ba9510f053de6 (diff) | |
download | poky-2b399a01b529d176c87532bf6dec4ff45257c1ea.tar.gz |
bitbake: bitbake: enable python warnings at the first opportunity
We really do want to see those, as they tend to turn into
hard errors eventually, as what happened with collections
vs collections.abc in python 3.10.
(Bitbake rev: bc43fbb86361a21dc2d5deb910810c5a77fdabe8)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-x | bitbake/bin/bitbake | 2 | ||||
-rwxr-xr-x | bitbake/bin/bitbake-diffsigs | 1 | ||||
-rwxr-xr-x | bitbake/bin/bitbake-getvar | 2 | ||||
-rwxr-xr-x | bitbake/bin/bitbake-hashclient | 2 | ||||
-rwxr-xr-x | bitbake/bin/bitbake-hashserv | 2 | ||||
-rwxr-xr-x | bitbake/bin/bitbake-layers | 2 | ||||
-rwxr-xr-x | bitbake/bin/bitbake-prserv | 2 | ||||
-rwxr-xr-x | bitbake/bin/bitbake-selftest | 2 | ||||
-rwxr-xr-x | bitbake/bin/bitbake-server | 1 | ||||
-rwxr-xr-x | bitbake/bin/bitbake-worker | 1 | ||||
-rwxr-xr-x | bitbake/bin/git-make-shallow | 2 | ||||
-rwxr-xr-x | bitbake/bin/toaster-eventreplay | 2 |
12 files changed, 21 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index dc1873af69..d3ee8e9464 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake | |||
@@ -12,6 +12,8 @@ | |||
12 | 12 | ||
13 | import os | 13 | import os |
14 | import sys | 14 | import sys |
15 | import warnings | ||
16 | warnings.simplefilter("default") | ||
15 | 17 | ||
16 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), | 18 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), |
17 | 'lib')) | 19 | 'lib')) |
diff --git a/bitbake/bin/bitbake-diffsigs b/bitbake/bin/bitbake-diffsigs index 19420a2df6..6646dccdfa 100755 --- a/bitbake/bin/bitbake-diffsigs +++ b/bitbake/bin/bitbake-diffsigs | |||
@@ -11,6 +11,7 @@ | |||
11 | import os | 11 | import os |
12 | import sys | 12 | import sys |
13 | import warnings | 13 | import warnings |
14 | warnings.simplefilter("default") | ||
14 | import argparse | 15 | import argparse |
15 | import logging | 16 | import logging |
16 | import pickle | 17 | import pickle |
diff --git a/bitbake/bin/bitbake-getvar b/bitbake/bin/bitbake-getvar index 9423219253..5435a8d797 100755 --- a/bitbake/bin/bitbake-getvar +++ b/bitbake/bin/bitbake-getvar | |||
@@ -9,6 +9,8 @@ import argparse | |||
9 | import io | 9 | import io |
10 | import os | 10 | import os |
11 | import sys | 11 | import sys |
12 | import warnings | ||
13 | warnings.simplefilter("default") | ||
12 | 14 | ||
13 | bindir = os.path.dirname(__file__) | 15 | bindir = os.path.dirname(__file__) |
14 | topdir = os.path.dirname(bindir) | 16 | topdir = os.path.dirname(bindir) |
diff --git a/bitbake/bin/bitbake-hashclient b/bitbake/bin/bitbake-hashclient index a89290217b..494f17592a 100755 --- a/bitbake/bin/bitbake-hashclient +++ b/bitbake/bin/bitbake-hashclient | |||
@@ -13,6 +13,8 @@ import pprint | |||
13 | import sys | 13 | import sys |
14 | import threading | 14 | import threading |
15 | import time | 15 | import time |
16 | import warnings | ||
17 | warnings.simplefilter("default") | ||
16 | 18 | ||
17 | try: | 19 | try: |
18 | import tqdm | 20 | import tqdm |
diff --git a/bitbake/bin/bitbake-hashserv b/bitbake/bin/bitbake-hashserv index 153f65a378..00af76b2d1 100755 --- a/bitbake/bin/bitbake-hashserv +++ b/bitbake/bin/bitbake-hashserv | |||
@@ -10,6 +10,8 @@ import sys | |||
10 | import logging | 10 | import logging |
11 | import argparse | 11 | import argparse |
12 | import sqlite3 | 12 | import sqlite3 |
13 | import warnings | ||
14 | warnings.simplefilter("default") | ||
13 | 15 | ||
14 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), 'lib')) | 16 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), 'lib')) |
15 | 17 | ||
diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers index ff085d6744..449434d468 100755 --- a/bitbake/bin/bitbake-layers +++ b/bitbake/bin/bitbake-layers | |||
@@ -14,6 +14,8 @@ import logging | |||
14 | import os | 14 | import os |
15 | import sys | 15 | import sys |
16 | import argparse | 16 | import argparse |
17 | import warnings | ||
18 | warnings.simplefilter("default") | ||
17 | 19 | ||
18 | bindir = os.path.dirname(__file__) | 20 | bindir = os.path.dirname(__file__) |
19 | topdir = os.path.dirname(bindir) | 21 | topdir = os.path.dirname(bindir) |
diff --git a/bitbake/bin/bitbake-prserv b/bitbake/bin/bitbake-prserv index bef5ef6897..323df66dd0 100755 --- a/bitbake/bin/bitbake-prserv +++ b/bitbake/bin/bitbake-prserv | |||
@@ -6,6 +6,8 @@ | |||
6 | import os | 6 | import os |
7 | import sys,logging | 7 | import sys,logging |
8 | import optparse | 8 | import optparse |
9 | import warnings | ||
10 | warnings.simplefilter("default") | ||
9 | 11 | ||
10 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)),'lib')) | 12 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)),'lib')) |
11 | 13 | ||
diff --git a/bitbake/bin/bitbake-selftest b/bitbake/bin/bitbake-selftest index aec4706921..f25f23b1ae 100755 --- a/bitbake/bin/bitbake-selftest +++ b/bitbake/bin/bitbake-selftest | |||
@@ -7,6 +7,8 @@ | |||
7 | 7 | ||
8 | import os | 8 | import os |
9 | import sys, logging | 9 | import sys, logging |
10 | import warnings | ||
11 | warnings.simplefilter("default") | ||
10 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), 'lib')) | 12 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)), 'lib')) |
11 | 13 | ||
12 | import unittest | 14 | import unittest |
diff --git a/bitbake/bin/bitbake-server b/bitbake/bin/bitbake-server index 8e53947361..f53f88b6b0 100755 --- a/bitbake/bin/bitbake-server +++ b/bitbake/bin/bitbake-server | |||
@@ -8,6 +8,7 @@ | |||
8 | import os | 8 | import os |
9 | import sys | 9 | import sys |
10 | import warnings | 10 | import warnings |
11 | warnings.simplefilter("default") | ||
11 | import logging | 12 | import logging |
12 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'lib')) | 13 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'lib')) |
13 | 14 | ||
diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker index 3ca8c1853b..6ead2da6d1 100755 --- a/bitbake/bin/bitbake-worker +++ b/bitbake/bin/bitbake-worker | |||
@@ -6,6 +6,7 @@ | |||
6 | import os | 6 | import os |
7 | import sys | 7 | import sys |
8 | import warnings | 8 | import warnings |
9 | warnings.simplefilter("default") | ||
9 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'lib')) | 10 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'lib')) |
10 | from bb import fetch2 | 11 | from bb import fetch2 |
11 | import logging | 12 | import logging |
diff --git a/bitbake/bin/git-make-shallow b/bitbake/bin/git-make-shallow index 57069f7edf..1d00fbf183 100755 --- a/bitbake/bin/git-make-shallow +++ b/bitbake/bin/git-make-shallow | |||
@@ -16,6 +16,8 @@ import itertools | |||
16 | import os | 16 | import os |
17 | import subprocess | 17 | import subprocess |
18 | import sys | 18 | import sys |
19 | import warnings | ||
20 | warnings.simplefilter("default") | ||
19 | 21 | ||
20 | version = 1.0 | 22 | version = 1.0 |
21 | 23 | ||
diff --git a/bitbake/bin/toaster-eventreplay b/bitbake/bin/toaster-eventreplay index 8fa4ab7116..404b61f516 100755 --- a/bitbake/bin/toaster-eventreplay +++ b/bitbake/bin/toaster-eventreplay | |||
@@ -19,6 +19,8 @@ import sys | |||
19 | import json | 19 | import json |
20 | import pickle | 20 | import pickle |
21 | import codecs | 21 | import codecs |
22 | import warnings | ||
23 | warnings.simplefilter("default") | ||
22 | 24 | ||
23 | from collections import namedtuple | 25 | from collections import namedtuple |
24 | 26 | ||