Bug 804

Summary: [zypper] zypper lose package information after zypper/rpm install/remove
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Jiajun Xu <jiajun.xu>
Component: coreAssignee: Mark Hatle <mark.hatle>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: High CC: kunwei.tian, mark.hatle, meta.mr.watcher, meta.watcher, qing.he, sgw, xudong.hao, yi.zhao
Version: 1.0   
Target Milestone: 1.0 M4   
Hardware: x86   
OS: x86   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Jiajun Xu 2011-03-03 23:52:58 UTC
Image location:
http://autobuilder03.jf.intel.com/nightly/20110226-1/
Commit information: e08dc5aaaeba61e332caab4a3df5750df6b49ac1

With RC1 images(qemux86 and atom-pc), if I install a package with RPM command, it can be shown as installed with RPM command. But using zypper remove command, zypper will show that the package is not installed.


########
root@qemux86:/opt# rpm -qa | grep man
libpixman-1-0-0.20.2-r0.i586
connman-plugin-loopback-0.65-r0.i586
connman-plugin-dnsproxy-0.65-r0.i586
connman-plugin-bluetooth-0.65-r0.i586
connman-plugin-wifi-0.65-r0.i586
connman-plugin-ethernet-0.65-r0.i586
pcmanfm-0.9.8-r0.i586
connman-0.65-r0.i586
connman-gnome-0.5-r4.i586
man-1.6f-r0.i586
########

########
root@qemux86:/opt# zypper remove man
Loading repository data...
Reading installed packages...
Package 'man' is not installed.
'man' not found in package names. Trying capabilities.
No provider of 'man' is installed.
Resolving package dependencies...

The following NEW package is going to be installed:
  libc6

1 new package to install.
Overall download size: 1.6 MiB. After the operation, additional 3.3 MiB will be used.
########

Reproduce Steps:
1. Prepare a repo on host
2. Add the repo for zypper on target
3. Copy man-1.6f-r0.i586 to target
4. install the package with rpm command
5. zypper remove man and check the output.
Comment 1 Mark Hatle 2011-03-07 11:36:14 UTC
I think this is related to 722, and is likely fixed.  Should be verified.
Comment 2 Jiajun Xu 2011-03-12 08:55:19 UTC
The issue still exists on RC2-20110305 build, and I find the more generic steps to reproduce such the issue:

1. zypper search package, for example, man, zypper should show the packages matching pattern *man*, but no man-1.6f-r0.*.rpm is installed
2. Prepare man-1.6f-r0.*.rpm package and install it by rpm
3. zypper search, you will find zypper prompts no packages found
4. If you install another package by rpm, zypper search will work again

If you install package by zypper, the libc6 issue will be prompted at the second time.

The bug seems same as bug 827, bug 845 and bug 841.
Comment 3 Jiajun Xu 2011-03-15 20:02:04 UTC
The bug still exists on RC3 build image, commit: a33a2cc024f9c9147c92c5da70d8fbb631b968f9, bernard branch on master tree.
Comment 5 Jiajun Xu 2011-03-22 00:03:17 UTC
Verify the bug with gold build, it is fixed.

The commit number is 82af8b9fb6d6d1439943fd15b8a75c0e663e4a45.