RPM Community Forums

Mailing List Message of <rpm-users>

Re: rpm-5.0.0: dependency / requirements check during install / update

From: Jeff Johnson <n3npq@mac.com>
Date: Thu 24 Jan 2008 - 17:41:36 CET
Message-Id: <9D046694-971D-42B8-BB8E-3E8DCEFA197C@mac.com>

On Jan 24, 2008, at 11:34 AM, Stefan Westmeier wrote:

> Hi,
>
> I am not shure whether this is the right list, but I try. Please  
> let me know, if I should post to other list or other place.
>
> Seems that check of required packages is not working in rpm 5.0.0  
> during install and update.
>
> I have a package most_if-1.0-1.i686.rpm.
>
> I created some packages for test purposes:
>
> most-bin-1.0-1.i686.rpm                     Requires: most_if = 1.0
> most-bin-1.0-1-req-1.1.i686.rpm          Requires: most_if = 1.1
> most-bin-1.0-1-req-0.9.i686.rpm          Requires: most_if = 0.9
> rpm 5.0.0 installs every combination of most_if with one of the  
> most-bin packages!!
> E.g the following command works without complains.
> rpm --relocate /if=/home/user/SWDev/rpmroot/if \
>     --relocate /sys=/home/user/SWDev/rpmroot/sys \
>     -U most_if-1.0-1.i686.rpm most-bin-1.0-1-req-1.1.i686.rpm
> rpm -V -a afterwards correctly reports about not fullfilled  
> dependencies.
>
> Doing the same with rpm 4.1, rpm refuses to install the ones with  
> non matching dependencies.
>

Likely a "feature". One of the flaws with --relocate in older rpm
was that file dependencies were resolved using the packaged,
not the relocated, path.

Sometime since rpm-4.1 the relocated, not the packaged, file
path is used to resolve file path dependencies.

>
> Ist this a bug or a feature?
>
> Packages can be download here:
>
> URL:                 https://stefanwestmeier.mediencenter.t- 
> online.de/fotomgr/coma/index.cls
> email:               rpm-users@rpm5.org
> password:         rpm
>

Off to check. Thanks for providing packages and a reproducer for the  
problem.

73 de Jeff
Received on Thu Jan 24 17:41:54 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.