From f7e64d59cb8e1084cbbd9058e22393d6aceaa682 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 5 Aug 2021 13:34:20 +0100 Subject: [PATCH] bitbake: ui/taskexp: Fix to work with empty build directories If run on an empty build directory, taskexp wasn't working as it didn't send the current environment to the server. This means HOSTTOOLS in oe-core couldn't be built and gave an error. Add the missing updateToServer call in. [YOCTO #14408] (Bitbake rev: 6737fba707917db16e317bb738c47c096454f816) Signed-off-by: Richard Purdie (cherry picked from commit 06a0bbe746f879ae539223e7fdb6f07d55d13719) Signed-off-by: Steve Sakoman Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/taskexp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bitbake/lib/bb/ui/taskexp.py b/bitbake/lib/bb/ui/taskexp.py index 81392977a0..c00eaf6638 100644 --- a/bitbake/lib/bb/ui/taskexp.py +++ b/bitbake/lib/bb/ui/taskexp.py @@ -197,6 +197,7 @@ def main(server, eventHandler, params): gtkgui.start() try: + params.updateToServer(server, os.environ.copy()) params.updateFromServer(server) cmdline = params.parseActions() if not cmdline: