Bug 15447

Summary: bitbake crashes when SSTATE_DIR variable value contains '='
Product: [Build System, Metadata & Runtime] BitBake Reporter: david zuhn <david.zuhn>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: poky.bs.watcher, poky.watcher, randy.macleod
Version: 4.3.3   
Target Milestone: 5.0 M4   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
fix for the problem none

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