Bug 498 - [RPM] some package removal failure with rpm
Summary: [RPM] some package removal failure with rpm
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 1.0
Hardware: All Multiple
: Medium normal
Target Milestone: 1.1
Assignee: Mark Hatle
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2010-10-20 07:41 UTC by Jiajun Xu
Modified: 2011-03-01 09:38 UTC (History)
11 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiajun Xu 2010-10-20 07:41:47 UTC
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 "task-*". These packages can not be removed with rpm command with full name showed by command "rpm -qa".

For example, the qemux86 images show there is a package named "task-poky-tools-profile-1.0-r8.qemux86". 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
#######
Comment 1 Jiajun Xu 2010-10-20 08:03:11 UTC
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
#########
Comment 2 Qing He 2010-10-20 17:56:19 UTC
does the following works?

rpm -e task-poky-tools-profile
rpm -e powertop
Comment 3 Jiajun Xu 2010-10-20 17:57:32 UTC
Yes.

(In reply to comment #2)
> does the following works?
> rpm -e task-poky-tools-profile
> rpm -e powertop
Comment 4 Mark Hatle 2010-10-21 09:37:05 UTC
This is likely related to the architecture mapping located in the rpmns.c.  We'll need to evaluate this for post 0.9.  (I don'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.
Comment 5 Jeff Johnson 2010-10-27 11:49:46 UTC
Tracked at https://bugs.launchpad.net/rpm/+bug/667415
Comment 6 Mark Hatle 2011-03-01 09:26:45 UTC
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'm not sure if it was that change.
Comment 7 Jeff Johnson 2011-03-01 09:29:42 UTC
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'm swamped.
Comment 8 Mark Hatle 2011-03-01 09:38:31 UTC
Yes.  The fix changes the platform file to:

<default-arch-of-target>-poky-linux-gnu
<compat arch1>-.*-linux.*
<compat arch2>-.*-linux.*
...
<compat archN>-.*-linux.*