Bug 3138

Summary: echo -e in dash will print "-e"
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Andrei Gherzan <andrei>
Component: coreAssignee: Andrei Gherzan <andrei>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: alexandrux.palalau, bluelightning, meta.mr.watcher, meta.watcher, sgw
Version: unspecified   
Target Milestone: 1.3 M5   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Andrei Gherzan 2012-09-19 14:11:49 UTC
oe-core / yocto removed the prerequisite to have sh pointing to bash. This means that echo -e in dash will actually print "-e" and interpret backslashes by default. 

http://www.mail-archive.com/yocto@yoctoproject.org/msg06000.html
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550399

Now, in oe-core / yocto there are a couple of occurrences of "echo -e". Generally these are scripts with bash shebangs - so no problem here. But there are 4 classes which use this:

buildhistory.bbclass
package_rpm.bbclass
package_deb.bbclass
package_ipk.bbclass

My solution would be to replace echo with print in these cases.
Comment 1 Andrei Gherzan 2012-09-20 12:49:31 UTC
Fix merged to master.
Comment 2 Alexandru Palalau 2012-10-10 11:44:12 UTC
Switching status to verified on the master branch.