Bug 1776

Summary: License wrangling, stage 1
Product: [Build System, Metadata & Runtime] Meta-yocto Reporter: Beth Flanagan <elizabeth.flanagan>
Component: meta-yoctoAssignee: Beth Flanagan <elizabeth.flanagan>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: elizabeth.flanagan, poky.bs.watcher, poky.watcher, richard.purdie, scott.a.garman, song.liu
Version: 1.1   
Target Milestone: 1.2 M1   
Hardware: x86   
OS: Multiple   
Whiteboard: Stage1: (P1) Final commit. RFC/Pull sent. Documentation sent to Scottrif
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Bug Depends on:    
Bug Blocks: 1547    

Description Beth Flanagan 2011-11-21 09:40:58 UTC
3 Stages: Stage1: [P1][D4] Stage2: [P2][D10] Stage3: [P3][D5]

Stage One - Fix current defects:

    * Fix where the license collection occurs. This needs to occur during the creation of the rootfs.
    * Ensure that we can use this during a parallel bitbake
    * Incorporate a flag to allow the image to contain collected licenses.
    * Ensure that we've gotten rid of all license WARNINGS. (Add license text, correct recipes).
    * Create a way to add additional licenses.
Comment 1 Beth Flanagan 2011-11-21 09:53:25 UTC
*** Bug 1547 has been marked as a duplicate of this bug. ***
Comment 2 Beth Flanagan 2011-11-21 09:54:10 UTC
*** Bug 1308 has been marked as a duplicate of this bug. ***
Comment 3 Beth Flanagan 2011-11-21 09:54:53 UTC
*** Bug 1666 has been marked as a duplicate of this bug. ***
Comment 4 Beth Flanagan 2011-11-21 09:55:39 UTC
*** Bug 1546 has been marked as a duplicate of this bug. ***
Comment 5 Beth Flanagan 2011-11-23 16:52:18 UTC
Quick update:

    * Fix where the license collection occurs. This needs to occur during the
creation of the rootfs.

I have this working with rootfs_rpm. Porting to ipk and deb tonight.

    * Ensure that we can use this during a parallel bitbake

Fixed, using minimal and sato as my test run:

more tmp/deploy/licenses/core-image-sato-qemux86-20111124004238/license.manifest |grep base-passwd
PACKAGE_NAME: base-passwd

more tmp/deploy/licenses/core-image-minimal-qemux86-20111124004238/license.manifest |grep base-passwd
PACKAGE_NAME: base-passwd

So, I now know that license manifests contain the correct packages.

    * Incorporate a flag to allow the image to contain collected licenses.

In the works.

    * Ensure that we've gotten rid of all license WARNINGS. (Add license text,
correct recipes).

I have 18 identified in a core-image-sato. Working on a world build next to identify all warnings.

    * Create a way to add additional licenses.

Still thinking about this.
Comment 6 Beth Flanagan 2011-11-30 11:08:41 UTC
    * Fix where the license collection occurs. This needs to occur during the
creation of the rootfs.
Status: Done

    * Ensure that we can use this during a parallel bitbake
Status: Final verify

    * Incorporate a flag to allow the image to contain collected licenses.
Status: Not Started. Trivial.

    * Ensure that we've gotten rid of all license WARNINGS. (Add license text,
correct recipes).
Status: Finished today

    * Create a way to add additional licenses.
Status: Haven't started yet. Working on it today.
Comment 7 Beth Flanagan 2011-12-03 14:38:57 UTC
Final commit pending (bunch of rebasing I need to do to clean up commit history). As it stands, we're fully functional with the exception of deb images. Those will work when list_packages is functional for deb
Comment 9 Richard Purdie 2011-12-07 05:02:48 UTC
Beth: A quick note on process - things get marked as fixed when they make it into the main repository, not when posted for review.
Comment 10 Beth Flanagan 2011-12-13 08:17:19 UTC
Made it into master. Did not make the M1 cutoff.