Bug 9152 - common-licenses directory is populated with several C header files for psplash and zlib packages
Summary: common-licenses directory is populated with several C header files for psplas...
Status: VERIFIED NOTABUG
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: deployment (show other bugs)
Version: 2.1
Hardware: All arm
: Undecided normal
Target Milestone: ---
Assignee: Mark Hatle
QA Contact: Bogdan Alexandru Voiculescu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-02-22 15:26 UTC by Bogdan Alexandru Voiculescu
Modified: 2016-02-22 16:04 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: New (Never tested)
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bogdan Alexandru Voiculescu 2016-02-22 15:26:02 UTC
Build an Raspberry Pi image (probably is the same for all platforms): 
Setup the following in local.conf in /usr/share/common-licenses/license.manifest:
COPY_LIC_DIRS = "1"
COPY_LIC_MANIFEST = "1"

After build search for header files in sysroot directory /usr/share/common-licenses (or on image).
(apply this patch if build fails: 
https://www.mail-archive.com/yocto@yoctoproject.org/msg27461.html)

Check this directory for C header files: build/tmp/work/raspberrypi2-poky-linux-gnueabi/rpi-basic-image/1.0-r0/rootfs/usr/share/common-licenses$ 

Execute: ls -ilatrR |grep "\.h"
 99487793 -rw-r--r--    8 yocto yocto  1986 feb 22 11:23 psplash.h (psplash)
 99487793 -rw-r--r--    8 yocto yocto  1986 feb 22 11:23 psplash.h (psplash-default)
 99487793 -rw-r--r--    8 yocto yocto  1986 feb 22 11:23 psplash.h  (psplash-raspberrypi)
 90584586 -rw-r--r--    6 yocto yocto 87883 apr 29  2013 zlib.h (zlib)


Those files should not be there.
Comment 1 Bogdan Alexandru Voiculescu 2016-02-22 15:26:49 UTC
Correction: Setup the following in local.conf 
COPY_LIC_DIRS = "1"
COPY_LIC_MANIFEST = "1"
Comment 2 Mark Hatle 2016-02-22 15:33:43 UTC
I don't believe this is a defect.

The license file in the zlib recipe is defined as:

LIC_FILES_CHKSUM = "file://zlib.h;beginline=4;endline=23;md5=fde612df1e5933c428b73844a0c494fd"


The license file in psplash is:

LIC_FILES_CHKSUM = "file://psplash.h;beginline=1;endline=16;md5=840fb2356b10a85bed78dd09dc7745c6"


So this is correct and not a bug.


Reopen if you disagree.
Comment 3 Bogdan Alexandru Voiculescu 2016-02-22 16:04:44 UTC
Thank you, Mark!
I agree: these are the only files from the packages with some license information. 
Big closed.