Bug 5549

Summary: No license files on target even if COPY_LIC_DIRS and COPY_LIC_MANIFEST is enabled
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Chen Qi <Qi.Chen>
Component: coreAssignee: Chen Qi <Qi.Chen>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Undecided CC: ke.zou, liezhi.yang, meta.mr.watcher, meta.watcher, sgw, yi.zhao
Version: 1.5   
Target Milestone: 1.6 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Chen Qi 2013-11-18 06:32:28 UTC
When buiding images on ubuntu, the license files are not copied to target even if the two options are enabled.

Bunches of following errors appear in log.do_rootfs.
[[:not found

The problem is that on ubuntu sh is linked to dash which considers [[ as a bashism and doesn't support it.

We need to avoid bashism whenever possible in our project.

//Chen Qi
Comment 1 Chen Qi 2013-11-21 03:01:39 UTC
Branch: master
Commit: 4df9daee5c732c0a20dabe8515577238a1508512
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=4df9daee5c732c0a20dabe8515577238a1508512
Comment 2 Ke Zou 2013-12-27 08:40:24 UTC
verified in  poky master: 005af45191ded6185c618c708181b31281e43092

test step:

modify meta/conf/licenses.conf  
uncomment the lines:

COPY_LIC_MANIFEST = "1"
COPY_LIC_DIRS = "1"

bitbake core-image-minimal

no error log found in 

tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs