<?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>1352</bug_id>
          
          <creation_ts>2011-08-08 01:53:13 +0000</creation_ts>
          <short_desc>[qemuarm] RPM package can not be installed with 20110806 build</short_desc>
          <delta_ts>2011-08-19 00:15:41 +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>Other</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Working on reproducing</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1 M4</target_milestone>
          
          <blocked>1313</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Mark Hatle">mark.hatle</assigned_to>
          <cc>dvhart</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>liang.li2</cc>
    
    <cc>liangliang.wang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>wenhuax.fan</cc>
    
    <cc>yi.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>15308</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-08-08 01:53:13 +0000</bug_when>
    <thetext>Testing Environment
===============================
Image location: http://autobuilder.yoctoproject.org/nightly/20110806-1/
Tree/Branch: Poky/1.1_M3
Poky Commit: abdec68876ac7ce1a6d5c223d1757b7e8a14b85f

Steps
===============================
1. Download rpm package from
http://autobuilder.yoctoproject.org/nightly/20110806-1/rpm/armv5te/. For
example, man-1.6f-r0.armv5te.rpm.
2. Copy rpm package to the target.
3. Install the package:
   $ rpm -ivh man-1.6f-r0.armv5te.rpm

The package can not be installed and there would be a warning message:
############
warning: package man-1.6f-r0.armv5te is intended for a armv5te-pc-linux-gnu platform
############

###########
$ cat /etc/rpm/platform
arm-poky-linux-gnueabi
qemuarm-.*-linux-gnueabi
armv5te-.*-linux-gnueabi
armv5e-.*-linux-gnueabi
armv5t-.*-linux-gnueabi
armv5-.*-linux-gnueabi
armv4t-.*-linux-gnueabi
armv4-.*-linux-gnueabi
arm-.*-linux-gnueabi
noarch-.*-linux-gnueabi
any-.*-linux-gnueabi
all-.*-linux-gnueabi
############


This issue does not happen with 20110723 build and the /etc/rpm/platform
is like below: 
###########
$ cat /etc/rpm/platform
arm-poky-linux-gnu
qemuarm-.*-linux.*
armv5te-.*-linux.*
armv4t-.*-linux.*
armv4-.*-linux.*
arm-.*-linux.*
noarch-.*-linux.*
any-.*-linux.*
all-.*-linux.*
###########

When I replace this /etc/rpm/platform on 20110806 build, it works.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15318</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-08-08 09:14:01 +0000</bug_when>
    <thetext>Is this RPM or tune file issue?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15322</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2011-08-08 09:21:04 +0000</bug_when>
    <thetext>This appears to be a problem with the way the TARGET_OS is specified during the initial package build.  It should be set to -linux-gnueabi.. but appears to instead be set to &quot;linux-gnu&quot;.

The /etc/platform check we have is more exact after the recent tune file changes, exposing this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15341</commentid>
    <comment_count>3</comment_count>
    <who name="Liang Wang">liangliang.wang</who>
    <bug_when>2011-08-08 20:13:06 +0000</bug_when>
    <thetext>This issue also occurs on Beagleboard on the build 20110806, see below for more info.

root@beagleboard:~# rpm -ivh man-1.6f-r0.armv5te.rpm 
warning: package man-1.6f-r0.armv5te is intended for a armv5te-pc-linux-gnu platform
root@beagleboard:~#      
root@beagleboard:~# cat /etc/rpm/platform 
arm-poky-linux-gnueabi
beagleboard-.*-linux-gnueabi
armv7at2-vfp-neon-.*-linux-gnueabi
armv7a-vfp-neon-.*-linux-gnueabi
armv7at2-vfp-.*-linux-gnueabi
armv7a-vfp-.*-linux-gnueabi
armv7a-.*-linux-gnueabi
armv7t2-vfp-.*-linux-gnueabi
armv7-vfp-.*-linux-gnueabi
armv6t-vfp-.*-linux-gnueabi
armv6-vfp-.*-linux-gnueabi
armv5te-vfp-.*-linux-gnueabi
armv5e-vfp-.*-linux-gnueabi
armv5te-.*-linux-gnueabi
armv5e-.*-linux-gnueabi
armv5t-vfp-.*-linux-gnueabi
armv5-vfp-.*-linux-gnueabi
armv5t-.*-linux-gnueabi
armv5-.*-linux-gnueabi
armv4t-.*-linux-gnueabi
armv4-.*-linux-gnueabi
arm-.*-linux-gnueabi
noarch-.*-linux-gnueabi
any-.*-linux-gnueabi
all-.*-linux-gnueabi
root@beagleboard:~#</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15520</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2011-08-17 09:20:55 +0000</bug_when>
    <thetext>This should be resolved now.

Commit: 	c6bb9445de90cfb46db9c40842dbe1bfbb5b8ce8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15590</commentid>
    <comment_count>5</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2011-08-19 00:15:41 +0000</bug_when>
    <thetext>Verified it with 20110817 build

git commit : 978cdd5cb5b445f1cf406296444cb57cd8aa526a</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>