Skip to contentSkip to conversation

[2.16][PATCH 0/2] Patch review

bitbake Yoann Congal 1 participant 3 messages Jan 6

lore
Share & tools
lore
#0 lore raw

Please review this set of changes for 2.16/whinlatter and have comments back by end of day Thursday, January 8

Passed a-full on autobuilder(*):

https://autobuilder.yoctoproject.org/valkyrie/#/builders/29/builds/2997

(*): The builds/tests parts passed, only the "Send QA Email" step
failed. This is a known bug on AB side : https://bugzilla.yoctoproject.org/show_bug.cgi?id=15696.

The following changes since commit 720df1a53452983c1c832f624490e255cf389204:

bitbake-setup: add whinlatter configs for poky and oe-nodistro (2025-11-27 11:11:07 +0000)

are available in the Git repository at:

https://git.openembedded.org/bitbake-contrib stable/2.16-nut
https://git.openembedded.org/bitbake-contrib/log/?h=stable/2.16-nut

Mathieu Dubois-Briand (2):
bitbake-layers: Also hide os.fork() deprecation warning
bin: Hide os.fork() deprecation warning in all bitbake scripts

 bin/bitbake          | 1 +
 bin/bitbake-diffsigs | 1 +
 bin/bitbake-getvar   | 1 +
 bin/bitbake-layers   | 1 +
 4 files changed, 4 insertions(+)
#1 lore raw

[bitbake][whinlatter][2.16][PATCH 1/2] bitbake-layers: Also hide os.fork() deprecation warning

From: Mathieu Dubois-Briand <[email protected]>

Import the deprecation warning hiding line from bitbake server/worker code. Justification is still the same, we are being fairly careful here and believe this code is safe.

(cherry picked from commit 8b02d65a6439b21d8bd5590dc0009f2cf29c1de8)
---
 bin/bitbake-layers | 1 +
 1 file changed, 1 insertion(+)
bin/bitbake-layers +1 -0
index c49a5f30e..37c196226 100755
@@ -16,6 +16,7 @@ import sys
 import argparse
 import warnings
 warnings.simplefilter("default")
+warnings.filterwarnings("ignore", category=DeprecationWarning, message=".*use.of.fork.*may.lead.to.deadlocks.in.the.child.*")
 
 bindir = os.path.dirname(__file__)
 toolname = os.path.basename(__file__).split(".")[0]
#2 lore raw

[bitbake][whinlatter][2.16][PATCH 2/2] bin: Hide os.fork() deprecation warning in all bitbake scripts

In reply to Yoann Congal

From: Mathieu Dubois-Briand <[email protected]>

As the previous patch [1] was missing some occurrences, make sure to mask the deprecation warning in all scripts that might fork, i.e. all scripts using a BitBakeServer instance at some point.

Justification is still the same, we are being fairly careful here and believe this code is safe.

Fixes [YOCTO #16080]

[1] https://git.openembedded.org/bitbake/commit/?id=8b02d65a6439b21d8bd5590dc0009f2cf29c1de8

---
 bin/bitbake          | 1 +
 bin/bitbake-diffsigs | 1 +
 bin/bitbake-getvar   | 1 +
 3 files changed, 3 insertions(+)
bin/bitbake +1 -0
index a995bd665..2eb5f9103 100755
@@ -14,6 +14,7 @@ import os
 import sys
 import warnings
 warnings.simplefilter("default")
+warnings.filterwarnings("ignore", category=DeprecationWarning, message=".*use.of.fork.*may.lead.to.deadlocks.in.the.child.*")
 
 sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(__file__)),
                                 'lib'))
bin/bitbake-diffsigs +1 -0
index 9d6cb8c94..0974e8d4a 100755
@@ -13,6 +13,7 @@ import sys
 import warnings
 
 warnings.simplefilter("default")
+warnings.filterwarnings("ignore", category=DeprecationWarning, message=".*use.of.fork.*may.lead.to.deadlocks.in.the.child.*")
 import argparse
 import logging
 import pickle
bin/bitbake-getvar +1 -0
index 378fb1357..1c4283779 100755
@@ -12,6 +12,7 @@ import sys
 import warnings
 import logging
 warnings.simplefilter("default")
+warnings.filterwarnings("ignore", category=DeprecationWarning, message=".*use.of.fork.*may.lead.to.deadlocks.in.the.child.*")
 
 bindir = os.path.dirname(__file__)
 topdir = os.path.dirname(bindir)