<?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>2328</bug_id>
          
          <creation_ts>2012-04-18 13:11:35 +0000</creation_ts>
          <short_desc>Some RPM package file format is not correct on Beagleboard platform</short_desc>
          <delta_ts>2012-10-12 10:47:03 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</version>
          <rep_platform>Beagleboard</rep_platform>
          <op_sys>arm</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 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dongxiao Xu">dongxiao.xu</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>scott.a.garman</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</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>20646</commentid>
    <comment_count>0</comment_count>
    <who name="Dongxiao Xu">dongxiao.xu</who>
    <bug_when>2012-04-18 13:11:35 +0000</bug_when>
    <thetext>For certain packages on beagleboard platform, for example the acl, whose PACKAGE_ARCH is &quot;armv7a-vfp-neon&quot;, however its architecture label in RPM file is renamed to &quot;armv7a&quot;, see &quot;acl-2.2.51-r2.armv7a.rpm&quot;. This is not correct since we should use PACKAGE_ARCH within the RPM file name.

In IPK case, the package name still shows as &quot;acl_2.2.51-r2_armv7a-vfp-neon.ipk&quot;.

The root cause is that, we shouldn&apos;t allow &apos;-&apos; exists in PACKAGE_ARCH variable. This is because we use the following parameters to pass to RPM command:

rpm ... --target &quot;armv7a-vfp-neon-poky-linux&quot;

The parameter stands for the &quot;${ARCH}-${VENDOR}-${OS}&quot;. RPM treats the content before the first &apos;-&apos; as architecture label and put it in RPM file name. This is the reason why only &quot;armv7a&quot; is got in our RPM file name.

One possible fix is to replace &apos;-&apos; with &apos;_&apos; for PACKAGE_ARCH.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21198</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2012-05-08 15:55:16 +0000</bug_when>
    <thetext>Estimate has a prerequisite of upreving to the latest version of RPM.  There is some question still as to how to resolve the problem...

Estimate includes basic sanity checking.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24499</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-08-27 14:56:48 +0000</bug_when>
    <thetext>I&apos;m trying to replace &apos;-&apos; with &apos;_&apos;, and it is in testing now, will do more testing before send the patch for reviewing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25008</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-09-11 01:38:38 +0000</bug_when>
    <thetext>Merged into master:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4a015e57ccee4fec8ab1da6717f4e2d5c4bb9ff5</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26549</commentid>
    <comment_count>4</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2012-10-12 10:47:03 +0000</bug_when>
    <thetext>Verified.
Git Branch: danny
Git commit: c9de24d3f4845251b01e2eab0aeeb7472badc5bb</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>