Bug 505615

Summary: yum fails to resolve exact dependency without release
Product: Red Hat Enterprise Linux 5 Reporter: Dag Wieers <dag>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: high Docs Contact:
Priority: low    
Version: 5.3CC: dag
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-12 12:49:53 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Dag Wieers 2009-06-12 11:35:43 EDT
Description of problem:
We have a problem where the installation of libusb-devel has a dependency to libusb = %{version} and it makes from this a dependency to libusb = %{version}-0 and that package does not exist:

[root@ld0app05 ~]# yum install libusb libusb-devel
Loaded plugins: rhnplugin, security
Setting up Install Process
Parsing package install arguments
Package libusb-0.1.12-5.1.x86_64 already installed and latest version
Package libusb-0.1.12-5.1.i386 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package libusb-devel.x86_64 0:0.1.12-5.1 set to be updated
--> Processing Dependency: libusb = 0.1.12-0 for package: libusb-devel
--> Processing Dependency: pkgconfig for package: libusb-devel
---> Package libusb-devel.i386 0:0.1.12-5.1 set to be updated
--> Processing Dependency: libusb = 0.1.12-0 for package: libusb-devel
--> Running transaction check
---> Package libusb-devel.x86_64 0:0.1.12-5.1 set to be updated
--> Processing Dependency: libusb = 0.1.12-0 for package: libusb-devel
---> Package libusb-devel.i386 0:0.1.12-5.1 set to be updated
--> Processing Dependency: libusb = 0.1.12-0 for package: libusb-devel
---> Package pkgconfig.x86_64 1:0.21-2.el5 set to be updated
--> Finished Dependency Resolution
libusb-devel-0.1.12-5.1.i386 from nedc-rhel5-server-up3-64 has depsolving problems
  --> Missing Dependency: libusb = 0.1.12-0 is needed by package libusb-devel-0.1.12-5.1.i386 (nedc-rhel5-server-up3-64)
libusb-devel-0.1.12-5.1.x86_64 from nedc-rhel5-server-up3-64 has depsolving problems
  --> Missing Dependency: libusb = 0.1.12-0 is needed by package libusb-devel-0.1.12-5.1.x86_64 (nedc-rhel5-server-up3-64)
Error: Missing Dependency: libusb = 0.1.12-0 is needed by package libusb-devel-0.1.12-5.1.i386 (nedc-rhel5-server-up3-64)
Error: Missing Dependency: libusb = 0.1.12-0 is needed by package libusb-devel-0.1.12-5.1.x86_64 (nedc-rhel5-server-up3-64)

Looking at the package one can see this:

[ddwi658@lc2swd01 RPMS]$ rpm -qpR libusb-devel-0.1.12-5.1.x86_64.rpm
warning: libusb-devel-0.1.12-5.1.x86_64.rpm: V3 DSA signature: NOKEY, key ID 37017186
/bin/sh
libusb = 0.1.12
libusb-0.1.so.4()(64bit)
libusbpp-0.1.so.4()(64bit)
pkgconfig
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Comment 1 seth vidal 2009-06-12 11:50:08 EDT
Is this from a rhel5 x86_64 repository?

Can you provide the primary metadata for this repo? Is it direct from rhn?
Comment 2 Dag Wieers 2009-06-12 12:25:29 EDT
This is indeed from a RHN Satellite server at the customer.

Red Hat Network release 4.2.2
Comment 3 seth vidal 2009-06-12 12:35:44 EDT
right - can you provided the primary.xml.gz file from that server? thanks.
Comment 4 James Antill 2009-06-12 12:37:49 EDT
There was a known RHN bug which did this (converted none into 0), bug jfoi what is the verison of yum?
Comment 5 James Antill 2009-06-12 12:45:30 EDT
RHN bug is:

https://bugzilla.redhat.com/show_bug.cgi?id=444878
Comment 6 James Antill 2009-06-12 12:47:21 EDT
Which was the 5.x version, the 4.x version is:

https://bugzilla.redhat.com/show_bug.cgi?id=249281
Comment 7 Dag Wieers 2009-06-12 12:48:24 EDT
How would I do that ? From my previous RHN hacking I remember that it used to return a python data structure (list of tuples) with that information so I would expect not having anything on disk.

But I have no clue how it works with yum-rhn-plugin.
Comment 8 James Antill 2009-06-12 12:49:53 EDT
And this is also 4.2.2, but actually public:

https://bugzilla.redhat.com/show_bug.cgi?id=240168

...last update, hopefully!
Comment 9 James Antill 2009-06-12 12:51:36 EDT
yum with RHN downloads the primary.xml.gz into /var/cache/yum/* just like a normal repo. ... but don't worry about the info. anymore, just follow the fix in bug#240168