Bug 5549 - No license files on target even if COPY_LIC_DIRS and COPY_LIC_MANIFEST is enabled
Summary: No license files on target even if COPY_LIC_DIRS and COPY_LIC_MANIFEST is ena...
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Undecided normal
Target Milestone: 1.6 M1
Assignee: Chen Qi
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-11-18 06:32 UTC by Chen Qi
Modified: 2013-12-27 08:40 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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