Bug 15447 - bitbake crashes when SSTATE_DIR variable value contains '='
Summary: bitbake crashes when SSTATE_DIR variable value contains '='
Status: RESOLVED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: 4.3.3
Hardware: All Multiple
: Medium+ normal
Target Milestone: 5.0 M4
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-03-18 18:45 UTC by david zuhn
Modified: 2024-03-22 17:57 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
fix for the problem (2.37 KB, patch)
2024-03-18 18:53 UTC, david zuhn
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description david zuhn 2024-03-18 18:45:59 UTC
I set my SSTATE_DIR to a value that contains an '=' character:

    SSTATE_DIR ?= "${TOPDIR}/sstate-cache=large"

When running a build (e.g., bitbake core-image-minimal), it crashes with the following:

  10:36:15   File "/home/dzuhn/work/yocto/poky/bitbake/lib/bb/runqueue.py", line 
  1316, in RunQueue._start_worker(mc='', fakeroot=True, rqexec=<bb.runqueue.RunQueueExecute object at 0x7fc948105710>):
  10:36:15                  env = os.environ.copy()
  10:36:15     >            for key, value in (var.split('=') for var in fakerootenv):
  10:36:15                      env[key] = value
  10:36:15 ValueError: too many values to unpack (expected 2)

A patch will be submitted shortly.
Comment 1 david zuhn 2024-03-18 18:53:00 UTC
Created attachment 5031 [details]
fix for the problem

These changes were needed in order to get a complete build.
Comment 2 Randy MacLeod 2024-03-21 14:40:15 UTC
In master-next.
Comment 3 Richard Purdie 2024-03-22 17:57:27 UTC
Thanks for the patch!

https://git.yoctoproject.org/poky/commit/?id=ecb1248914c8ebc567e6977864d84da968e17543