<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>9152</bug_id>
          
          <creation_ts>2016-02-22 15:26:02 +0000</creation_ts>
          <short_desc>common-licenses directory is populated with several C header files for psplash and zlib packages</short_desc>
          <delta_ts>2016-02-22 16:04:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>deployment</component>
          <version>2.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</reporter>
          <assigned_to name="Mark Hatle">mark.hatle</assigned_to>
          
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59334</commentid>
    <comment_count>0</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-02-22 15:26:02 +0000</bug_when>
    <thetext>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 = &quot;1&quot;
COPY_LIC_MANIFEST = &quot;1&quot;

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 &quot;\.h&quot;
 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59335</commentid>
    <comment_count>1</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-02-22 15:26:49 +0000</bug_when>
    <thetext>Correction: Setup the following in local.conf 
COPY_LIC_DIRS = &quot;1&quot;
COPY_LIC_MANIFEST = &quot;1&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59337</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2016-02-22 15:33:43 +0000</bug_when>
    <thetext>I don&apos;t believe this is a defect.

The license file in the zlib recipe is defined as:

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


The license file in psplash is:

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


So this is correct and not a bug.


Reopen if you disagree.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59342</commentid>
    <comment_count>3</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-02-22 16:04:44 +0000</bug_when>
    <thetext>Thank you, Mark!
I agree: these are the only files from the packages with some license information. 
Big closed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>