Bug 805

Summary: opkg in adt-installer can not handle long link name in ipk file
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Lianhao Lu <lianhao.lu>
Component: devtools / tool chainAssignee: liping Ke <liping.ke>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: Medium CC: jessica.zhang, meta.mr.watcher, meta.watcher, sgw
Version: 1.0   
Target Milestone: 1.0 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Lianhao Lu 2011-03-04 01:07:17 UTC
The opkg included in the adt-installer is version 0.1.8, which has a bug of can not corrected handle the long link name of tar header when install a ipk file. This cause the corrupted installation of binutils-cross-canadian-arm.

opkg upstream had such fixing in SVN trunk, the adt-installer should use the SVN tip version instead of the version 0.1.8.
Comment 1 liping Ke 2011-03-04 01:34:50 UTC
I need some time to make the SRC_URL = svn trunk works.

After update the opkg, the problem like below should be gone.



Configuring binutils-cross-canadian-arm.
Collected errors:
* extract_archive: Cannot link from ./opt/poky/0.9+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld to './opt/poky/0.9+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin/armv5te-poky-linux-gnueabi/arm-poky-li':Installing gcc for arm ...
Installing gcc-cross-canadian-arm (4.5.1-r3) to root...
Downloading http://adtrepo.yoctoproject.org/1.0/adt-ipk/x86_64-nativesdk/gcc-cross-canadian-arm_4.5.1-r3_x86_64-nativesdk.ipk.
Installing elfutils-nativesdk (0.148-r1) to root...
Downloading http://adtrepo.yoctoproject.org/1.0/adt-ipk/x86_64-nativesdk/elfutils-nativesdk_0.148-r1_x86_64-nativesdk.ipk.
Installing libmpfr4 (3.0.0-r0) to root...
Comment 2 liping Ke 2011-03-07 17:23:03 UTC
The fix patch is already in upstream distro/bernard in poky-contrib.git

http://git.pokylinux.org/cgit/cgit.cgi/poky-contrib/commit/?h=distro/bernard&id=d746600f563e02955a9e43ccbc11e73bf1611b21
Comment 3 Jessica 2011-03-12 17:06:28 UTC
verified against latest bernard branch