<?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>498</bug_id>
          
          <creation_ts>2010-10-20 07:41:47 +0000</creation_ts>
          <short_desc>[RPM] some package removal failure with rpm</short_desc>
          <delta_ts>2011-03-01 09:38: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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.0</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</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.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Mark Hatle">mark.hatle</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>ke.yu</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>kunwei.tian</cc>
    
    <cc>n3npq</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>qing.he</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>xianchao.zhang</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>10700</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-10-20 07:41:47 +0000</bug_when>
    <thetext>Testing Env:    
Host: Ubuntu 10.04 LTS
Kernel: 2.6.32-21-generic
Poky gitinfo(used to build qemu-native):
4ae9c0785e22c222cb7a80e6c9575f58858eac5c
All images file from http://autobuilder.pokylinux.org/milestone/20101018/.

rpm command can be used to remove packages on targets. For poky images, there are some packages named &quot;task-*&quot;. These packages can not be removed with rpm command with full name showed by command &quot;rpm -qa&quot;.

For example, the qemux86 images show there is a package named &quot;task-poky-tools-profile-1.0-r8.qemux86&quot;. But when rpm -e to remove it, it reports there is no such package installed.
#######
root@qemux86:~# rpm -qa | grep task-poky-tools-profile
task-poky-tools-profile-1.0-r8.qemux86

root@qemux86:~# rpm -e task-poky-tools-profile-1.0-r8.qemux86
error: package task-poky-tools-profile-1.0-r8.qemux86 is not installed
#######</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10701</commentid>
    <comment_count>1</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-10-20 08:03:11 +0000</bug_when>
    <thetext>Smilimar issue also happens on emenlow and netbook:

#########
root@atom-pc:~# rpm -e powertop-1.13-r0.core2
error: package powertop-1.13-r0.core2 is not installed
#########</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10707</commentid>
    <comment_count>2</comment_count>
    <who name="Qing He">qing.he</who>
    <bug_when>2010-10-20 17:56:19 +0000</bug_when>
    <thetext>does the following works?

rpm -e task-poky-tools-profile
rpm -e powertop</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10709</commentid>
    <comment_count>3</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2010-10-20 17:57:32 +0000</bug_when>
    <thetext>Yes.

(In reply to comment #2)
&gt; does the following works?
&gt; rpm -e task-poky-tools-profile
&gt; rpm -e powertop</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10763</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2010-10-21 09:37:05 +0000</bug_when>
    <thetext>This is likely related to the architecture mapping located in the rpmns.c.  We&apos;ll need to evaluate this for post 0.9.  (I don&apos;t see this as a truly serious bug, more of an annoyance at this point.)

The normal way to work with RPM packages is to pass commands and ignore the version and arch components of the name.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10810</commentid>
    <comment_count>5</comment_count>
    <who name="Jeff Johnson">n3npq</who>
    <bug_when>2010-10-27 11:49:46 +0000</bug_when>
    <thetext>Tracked at https://bugs.launchpad.net/rpm/+bug/667415</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12195</commentid>
    <comment_count>6</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2011-03-01 09:26:45 +0000</bug_when>
    <thetext>This has been resolved in the latest version of the RPM changes.  I believe that the fix to the platform file has resolved this, but I&apos;m not sure if it was that change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12196</commentid>
    <comment_count>7</comment_count>
    <who name="Jeff Johnson">n3npq</who>
    <bug_when>2011-03-01 09:29:42 +0000</bug_when>
    <thetext>May I assume that your /etc/rpm/platform pattern woes
have diminished in intensity? ;-)

Its still on my todo++ stack to look at ... just I&apos;m swamped.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12197</commentid>
    <comment_count>8</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2011-03-01 09:38:31 +0000</bug_when>
    <thetext>Yes.  The fix changes the platform file to:

&lt;default-arch-of-target&gt;-poky-linux-gnu
&lt;compat arch1&gt;-.*-linux.*
&lt;compat arch2&gt;-.*-linux.*
...
&lt;compat archN&gt;-.*-linux.*</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>