Hi,
I have come across some unexpected behaviour when updating packages which have dependencies which also need updating. I own a package which is a dependency of a number in house applications. I constantly maintain, update and release new versions of this library package. Application packages which depend on this library package specify their requirement as a range i.e. libexample >= 1.0.0, libexample < 2.0.0. I have recreated the scenario as follows:
This causes the following behaviour, starting from a clean system:
>> yum install exampleapp-1.0.0
Resolving Dependencies
--> Running transaction check
---> Package exampleapp.x86_64 0:1.0.0-1 will be installed
--> Processing Dependency: libexample < 2.0.0 for package: exampleapp-1.0.0-1.x86_64
--> Processing Dependency: libexample >= 1.0.0 for package: exampleapp-1.0.0-1.x86_64
--> Running transaction check
---> Package libexample.x86_64 0:1.0.0-1 will be installed
--> Finished Dependency Resolution
All works fine, then try and update:
>> yum update exampleapp
--> Running transaction check
---> Package exampleapp.x86_64 0:1.0.0-1 will be updated
---> Package exampleapp.x86_64 0:2.0.0-1 will be an update
--> Processing Dependency: libexample >= 2.0.0 for package: exampleapp-2.0.0-1.x86_64
--> Running transaction check
---> Package libexample.x86_64 0:1.0.0-1 will be updated
--> Processing Dependency: libexample < 3.0.0 for package: exampleapp-2.0.0-1.x86_64
---> Package libexample.x86_64 0:3.0.0-1 will be an update
--> Finished Dependency Resolution
Error: Package: exampleapp-2.0.0-1.x86_64 (local)
Requires: libexample < 3.0.0
Removing: libexample-1.0.0-1.x86_64 (@local)
libexample = 1.0.0-1
Updated By: libexample-3.0.0-1.x86_64 (local)
libexample = 3.0.0-1
Available: libexample-2.0.0-1.x86_64 (local)
libexample = 2.0.0-1
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
The output suggests that yum has realised that libexample should be less than (and not include) 3.0.0, but it appears to ignore it and attempt to update to the latest available version of libexample. Am I missing something here? Any help would be greatly
appreciated.
Many thanks
George
|
_______________________________________________ Yum mailing list Yum@xxxxxxxxxxxxxxxxx http://lists.baseurl.org/mailman/listinfo/yum