<?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>3137</bug_id>
          
          <creation_ts>2012-09-19 11:21:04 +0000</creation_ts>
          <short_desc>rpm unpacking error</short_desc>
          <delta_ts>2012-10-12 09:00:31 +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>devtools / tool chain</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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.3 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>zhenfeng.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>25400</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-09-19 11:21:04 +0000</bug_when>
    <thetext>The relatively new rpm unpacking in master is causing the PVR drivers in meta-intel to crash:

| DEBUG: Executing python function do_unpack
| DEBUG: Executing python function base_do_unpack
| NOTE: Unpacking /home/ross/Yocto/downloads/psb-video-cdv-1.0.3-1.1.i586.rpm to /data/poky-master/tmp/work/core2-poky-linux/cdv-pvr-driver-1.0.3-r1/
| cpio: ./lib/firmware/msvdx_fw_mfld.bin: Cannot open: No such file or directory
| cpio: ./lib/firmware/msvdx_fw_mfld_DE2.0.bin: Cannot open: No such file or directory
| cpio: pvr_drv_video.so: Cannot symlink to `./usr/lib/dri/psb_drv_video.so&apos;: No such file or directory
| cpio: ./usr/lib/dri/pvr_drv_video.so: Cannot open: No such file or directory
| cpio: ./usr/share/doc/psb-video-cdv-1.0.3/license.txt: Cannot open: No such file or directory
| 1210 blocks
| DEBUG: Python function base_do_unpack finished
| DEBUG: Python function do_unpack finished</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25682</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-09-25 12:36:27 +0000</bug_when>
    <thetext>Hi Ross:

I can&apos;t reproduce this error, would you please provide more information or try it again? e.g.:

1) How to reproduce it.
2) The full log.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25688</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-09-25 13:24:58 +0000</bug_when>
    <thetext>You can&apos;t replicate it because I worked around it in meta-intel by disabling the extract.  Revert c3644c66fad3d9a91259ea382e72304dc6576ca0 and you&apos;ll see it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25748</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-09-26 09:00:57 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; You can&apos;t replicate it because I worked around it in meta-intel by disabling
&gt; the extract.  Revert c3644c66fad3d9a91259ea382e72304dc6576ca0 and you&apos;ll see
&gt; it.

Hi Ross,

I&apos;m afraid that the c3644c66fad3d9a91259ea382e72304dc6576ca0 is the correct fix:

The cdv-pvr-driver has 3 binary RPMs, the cdv-pvr-driver_1.0.3.bb has unpacked and installed them manually, so disable the auto unpack is the correct way, if we want to unpack them automatically, then we need re-work cdv-pvr-driver_1.0.3.bb, but I don&apos;t think we have to do this, since its do_install have more than 60 lines, and it worked correctly currently, it would cost much time to  do the runtime test if we re-work it. I did a &quot;grep&quot; in meta-* in yocto, there are 2 recipes: rpm and cdv-pvr-driver which use the rpm as the source, the rpm works correctly since it uses srpm. 

The automatically unpack rpm in fetch2 does have a bug, the cpio command should be &quot;cpio -di&quot;, not &quot;cpio -i&quot;. I will send a patch to fix it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25879</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-09-28 02:07:47 +0000</bug_when>
    <thetext>Hi Ross,

I assume that you have read the previous comments, I will mark it as fixed.

Merged into master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=faaa0653c2a24fcd419d8a79c33086611ea36b89</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25882</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-09-28 06:05:42 +0000</bug_when>
    <thetext>Yes, thanks.  My extract=0 was certainly the right short-term fix and now the fetcher is fixed too these recipes can be simplified.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26543</commentid>
    <comment_count>6</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-10-12 09:00:31 +0000</bug_when>
    <thetext>Verified with M5 RC3
poky: 86c9aa8081f107420cd3763d0566d779daddc2b1
meta-intel: 2c1e927fa99abe47865a03cf661d4757ff3147c6</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>