diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-11 10:48:11 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-11 14:17:57 +0000 |
commit | e1e60669349c345b1a61c10cbeb367005fd84752 (patch) | |
tree | 7d5966acb3bf6e4498dc501911b19ca1a4368637 /bitbake | |
parent | 840504e256ed16b2501748a9a075a2adfc940128 (diff) | |
download | poky-e1e60669349c345b1a61c10cbeb367005fd84752.tar.gz |
bitbake: bitbake-server/worker: Hide os.fork() deprecation warning
We're fairly careful in bitbake about how we handle fork() calls and believe our code
to be safe. The upstream deprecation warning is problematic as it can appear in log
output as a WARNING, breaking tests. It also tends to alarm users.
Hide the warning for now to avoids the test failures.
(Bitbake rev: c636bd629896f56e5f3d4030da3d1f130590afc6)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rwxr-xr-x | bitbake/bin/bitbake-server | 1 | ||||
-rwxr-xr-x | bitbake/bin/bitbake-worker | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/bin/bitbake-server b/bitbake/bin/bitbake-server index e367ec2c12..a559109e3f 100755 --- a/bitbake/bin/bitbake-server +++ b/bitbake/bin/bitbake-server | |||
@@ -9,6 +9,7 @@ import os | |||
9 | import sys | 9 | import sys |
10 | import warnings | 10 | import warnings |
11 | warnings.simplefilter("default") | 11 | warnings.simplefilter("default") |
12 | warnings.filterwarnings("ignore", category=DeprecationWarning, message=".*use.of.fork.*may.lead.to.deadlocks.in.the.child.*") | ||
12 | import logging | 13 | import logging |
13 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'lib')) | 14 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'lib')) |
14 | 15 | ||
diff --git a/bitbake/bin/bitbake-worker b/bitbake/bin/bitbake-worker index 88217182fb..35fa1ab62b 100755 --- a/bitbake/bin/bitbake-worker +++ b/bitbake/bin/bitbake-worker | |||
@@ -9,6 +9,7 @@ import os | |||
9 | import sys | 9 | import sys |
10 | import warnings | 10 | import warnings |
11 | warnings.simplefilter("default") | 11 | warnings.simplefilter("default") |
12 | warnings.filterwarnings("ignore", category=DeprecationWarning, message=".*use.of.fork.*may.lead.to.deadlocks.in.the.child.*") | ||
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 | from bb import fetch2 | 14 | from bb import fetch2 |
14 | import logging | 15 | import logging |