<?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>5304</bug_id>
          
          <creation_ts>2013-10-02 14:05:07 +0000</creation_ts>
          <short_desc>License warning when building any package</short_desc>
          <delta_ts>2013-11-05 13:18:21 +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>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.6</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Laszlo Papp">lpapp</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>37485</commentid>
    <comment_count>0</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2013-10-02 14:05:07 +0000</bug_when>
    <thetext>See the output below. Basically, the &quot;TEST: foo&quot; lines are my debug prints for the destdir itself. The files exist as expected, so we thought this would be a permission issue maybe. I have not tracked it down that much. All I can say, I have taken a look at the bb.copyfile internals, but that looks sane to me, and it tries to catch all the errors possible.

I am using dylan 9.0.1 as you can see the folder names below. Also, I am using debian wheezy (7.0) in a 32 bit &quot;system-nspawn&quot;.


WARNING: TEST: /home/lpapp/Projects/Yocto/poky-dylan-9.0.1/build/tmp/work/armv5te-foo-linux-gnueabi/kmod/9-r0.0/license-destdir/kmod
WARNING: /home/lpapp/Projects/Yocto/poky-dylan-9.0.1/meta/files/common-licenses/GPL-2.0 could not be copied for some reason. It may not exist. WARN for now.
WARNING: /home/lpapp/Projects/Yocto/poky-dylan-9.0.1/meta/files/common-licenses/LGPL-2.1 could not be copied for some reason. It may not exist. WARN for now.
WARNING: TEST: /home/lpapp/Projects/Yocto/poky-dylan-9.0.1/build/tmp/work/armv5te-foo-linux-gnueabi/pciutils/3.1.10-r0/license-destdir/pciutils
WARNING: /home/lpapp/Projects/Yocto/poky-dylan-9.0.1/meta/files/common-licenses/GPL-2.0 could not be copied for some reason. It may not exist. WARN for now.
WARNING: TEST: /home/lpapp/Projects/Yocto/poky-dylan-9.0.1/build/tmp/work/armv5te-foo-linux-gnueabi/util-linux/2.22.2-r3/license-destdir/util-linux
WARNING: /home/lpapp/Projects/Yocto/poky-dylan-9.0.1/meta/files/common-licenses/GPL-2.0 could not be copied for some reason. It may not exist. WARN for now.
WARNING: /home/lpapp/Projects/Yocto/poky-dylan-9.0.1/meta/files/common-licenses/LGPL-2.1 could not be copied for some reason. It may not exist. WARN for now.
WARNING: TEST: /home/lpapp/Projects/Yocto/poky-dylan-9.0.1/build/tmp/work/x86_64-linux/libxslt-native/1.1.28-r0/license-destdir/libxslt-native
WARNING: /home/lpapp/Projects/Yocto/poky-dylan-9.0.1/meta/files/common-licenses/MIT could not be copied for some reason. It may not exist. WARN for now.
WARNING: TEST: /home/lpapp/Projects/Yocto/poky-dylan-9.0.1/build/tmp/work/armv5te-foo-linux-gnueabi/usbutils/006-r0/license-destdir/usbutils
WARNING: /home/lpapp/Projects/Yocto/poky-dylan-9.0.1/meta/files/common-licenses/GPL-2.0 could not be copied for some reason. It may not exist. WARN for now.
WARNING: /home/lpapp/Projects/Yocto/poky-dylan-9.0.1/meta/files/common-licenses/BSD could not be copied for some reason. It may not exist. WARN for now.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37486</commentid>
    <comment_count>1</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2013-10-02 14:11:22 +0000</bug_when>
    <thetext>You can see the stat output for a few of those below. The seem to match a pattern:

stat /home/lpapp/Projects/Yocto/poky-dylan-9.0.1/build/tmp/work/armv5te-foo-linux-gnueabi/kmod/9-r0.0/license-destdir/kmod
  File: `/home/lpapp/Projects/Yocto/poky-dylan-9.0.1/build/tmp/work/armv5te-foo-linux-gnueabi/kmod/9-r0.0/license-destdir/kmod&apos;
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 807h/2055d      Inode: 5521419     Links: 2
Access: (0755/drwxr-xr-x)  Uid: ( 1000/   lpapp)   Gid: ( 1000/   lpapp)
Access: 2013-10-02 14:54:56.681623564 +0100
Modify: 2013-10-02 14:54:56.678290230 +0100
Change: 2013-10-02 14:54:56.678290230 +0100
 Birth: -
lpapp ~/Projects/Yocto/poky-dylan-9.0.1/build $ 
lpapp ~/Projects/Yocto/poky-dylan-9.0.1/build $ stat /home/lpapp/Projects/Yocto/poky-dylan-9.0.1/build/tmp/work/armv5te-foo-linux-gnueabi/pciutils/3.1.10-r0/license-destdir/pciutils
  File: `/home/lpapp/Projects/Yocto/poky-dylan-9.0.1/build/tmp/work/armv5te-foo-linux-gnueabi/pciutils/3.1.10-r0/license-destdir/pciutils&apos;
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 807h/2055d      Inode: 6051992     Links: 2
Access: (0755/drwxr-xr-x)  Uid: ( 1000/   lpapp)   Gid: ( 1000/   lpapp)
Access: 2013-10-02 14:54:56.734956895 +0100
Modify: 2013-10-02 14:54:56.731623563 +0100
Change: 2013-10-02 14:54:56.731623563 +0100
 Birth: -
lpapp ~/Projects/Yocto/poky-dylan-9.0.1/build $ stat /home/lpapp/Projects/Yocto/poky-dylan-9.0.1/build/tmp/work/armv5te-foo-linux-gnueabi/util-linux/2.22.2-r3/license-destdir/util-linux
  File: `/home/lpapp/Projects/Yocto/poky-dylan-9.0.1/build/tmp/work/armv5te-foo-linux-gnueabi/util-linux/2.22.2-r3/license-destdir/util-linux&apos;
  Size: 4096            Blocks: 8          IO Block: 4096   directory
Device: 807h/2055d      Inode: 4880997     Links: 2
Access: (0755/drwxr-xr-x)  Uid: ( 1000/   lpapp)   Gid: ( 1000/   lpapp)
Access: 2013-10-02 14:54:56.921623555 +0100
Modify: 2013-10-02 14:54:56.918290221 +0100
Change: 2013-10-02 14:54:56.918290221 +0100
 Birth: -</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37503</commentid>
    <comment_count>2</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2013-10-03 07:15:11 +0000</bug_when>
    <thetext>We replaced the print statements inside bb.copyfile to bb.warn with Ross, and then it seems we get a bit more information.

It seems that the chmod/own execution fails. I am not sure why. &quot;find . -not `whoami`&quot; did not return anything, so every file should be owned by the user.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37508</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-10-03 08:23:56 +0000</bug_when>
    <thetext>I sent a patch to oe-core that changes the use of bb.utils.copyfile in license.bbclass to shutil.copyfile which avoids this problem by not chowning anything.  I expect it will apply cleanly to dylan.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37514</commentid>
    <comment_count>4</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2013-10-03 08:44:26 +0000</bug_when>
    <thetext>That sounds like a good idea to me, thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38534</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-11-05 13:17:44 +0000</bug_when>
    <thetext>This patch was integrated as oe-core dc81df215cc94c279991df35125d94770a1bc3d2, closing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38535</commentid>
    <comment_count>6</comment_count>
    <who name="Laszlo Papp">lpapp</who>
    <bug_when>2013-11-05 13:18:21 +0000</bug_when>
    <thetext>Thanks, Ross!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>