Bug 8841 - COPY_LIC_DIRS should use beginline and endline from LIC_FILES_CHKSUM
Summary: COPY_LIC_DIRS should use beginline and endline from LIC_FILES_CHKSUM
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: deployment (show other bugs)
Version: 2.0
Hardware: All Multiple
: Medium enhancement
Target Milestone: Future
Assignee: Joshua Watt
QA Contact:
URL:
Whiteboard: Was Bill Randle
Depends on:
Blocks:
 
Reported: 2015-12-21 01:13 UTC by Jonathan Liu
Modified: 2018-11-01 20:00 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 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"