| Summary: | License warning when building any package | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Laszlo Papp <lpapp> |
| Component: | core | Assignee: | Ross Burton <ross.burton> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | meta.mr.watcher, meta.watcher, ross.burton |
| Version: | unspecified | ||
| Target Milestone: | 1.6 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
Laszlo Papp
2013-10-02 14:05:07 UTC
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' 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' 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' 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: - 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. "find . -not `whoami`" did not return anything, so every file should be owned by the user. 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. That sounds like a good idea to me, thanks. This patch was integrated as oe-core dc81df215cc94c279991df35125d94770a1bc3d2, closing. Thanks, Ross! |