From: Paul Barker Date: Tue, 6 Jan 2026 16:03:33 +0000 (+0000) Subject: devtool: deploy: Reset PATH after strip_execs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de5ddcd59051fe7a6530d04914fc4fbc9c320238;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git devtool: deploy: Reset PATH after strip_execs We need to modify os.environ so that strip_execs() finds the correct binaries to run. We shouldn't leave this modification in place for the rest of the program execution though. Signed-off-by: Paul Barker Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/devtool/deploy.py b/scripts/lib/devtool/deploy.py index 2bf693d165..270e9104b2 100644 --- a/scripts/lib/devtool/deploy.py +++ b/scripts/lib/devtool/deploy.py @@ -188,8 +188,11 @@ def deploy_no_d(srcdir, workdir, path, strip_cmd, libdir, base_libdir, max_proce if os.path.isdir(recipe_outdir): exec_fakeroot_no_d(fakerootcmd, fakerootenv, path, "rm -rf %s" % recipe_outdir, shell=True) exec_fakeroot_no_d(fakerootcmd, fakerootenv, path, "cp -af %s %s" % (os.path.join(srcdir, '.'), recipe_outdir), shell=True) + + oldpath = os.environ['PATH'] os.environ['PATH'] = ':'.join([os.environ['PATH'], path or '']) oe.package.strip_execs(args.recipename, recipe_outdir, strip_cmd, libdir, base_libdir, max_process) + os.environ['PATH'] = oldpath filelist = [] inodes = set({})