Bug 8841

Summary: COPY_LIC_DIRS should use beginline and endline from LIC_FILES_CHKSUM
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Jonathan Liu <net147>
Component: deploymentAssignee: Joshua Watt <JPEWhacker>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: anibal.limon, bluelightning, elizabeth.flanagan, JPEWhacker, ross.burton, sgw
Version: 2.0   
Target Milestone: Future   
Hardware: All   
OS: Multiple   
Whiteboard: Was Bill Randle
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Jonathan Liu 2015-12-21 01:13:40 UTC
Currently, COPY_LIC_DIRS would copy the entire file referred to by LIC_FILES_CHKSUM. The file can be a C header or source file so copying the entire file would be a waste of space. For example, e2fsprogs.inc has serveral C header and source files referred to by LIC_FILES_CHKSUM.

A better way would be to copy only the range of lines referred to by beginline and endline in the URL. License files should only contain license text and not source code.
Comment 1 Joshua Watt 2018-11-01 20:00:26 UTC
Fixed in 2.3: 515f4c129ad27e9502621738d0bf7f5552627f19 "classes/license: Respect beginline and endline"