Bug 9363

Summary: When setting Bitbake variables the value reflected to toaster.conf doesn't respect the specified whitespace
Product: [Build System, Metadata & Runtime] Toaster Reporter: Joshua Lock <joshuagloe>
Component: toasterAssignee: Joshua Lock <joshuagloe>
Status: RESOLVED INVALID QA Contact: Mihail Stanciu <stanciux.mihail>
Severity: normal    
Priority: Medium CC: belen.barros.pena, jessica.zhang, stanciux.mihail
Version: 2.1   
Target Milestone: 2.2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Joshua Lock 2016-03-31 13:12:20 UTC
In playing around with toaster I wanted to build an image based on core-image-lsb, but that requires PAM to be in DISTRO_FEATURES.

In my project configuration I added a bitbake variable: "DISTRO_FEATURES_append" and set the value to " pam" but the assignment in toaster.conf is:

DISTRO_FEATURES_append="pam"

As _append and _prepend are whitespace sensitive Toaster should support setting variables with leading or trailing whitespace.
Comment 1 Joshua Lock 2016-04-07 09:49:01 UTC
I'm unable to reproduce this in toaster-next…