Yum does not respect RPM dependency version constraints
Fabien Crespel <[email protected]> Mon, 15 Dec 2014 10:09:03 +0100
| Newsgroups | gmane.linux.rpm.yum |
|---|---|
| Message-ID | <CAC-mS=C0WxUhNYBp+Qb-g7kunjwWgMtQ-Mty_hnu5FrAQr=6iQ@mail.gmail.com> |
--===============6631751104130266654== Content-Type: multipart/alternative; boundary=047d7b873d5e3871a8050a3d99a8 --047d7b873d5e3871a8050a3d99a8 Content-Type: text/plain; charset=UTF-8 Hello all, I'm having issues with Yum dependency resolving with regards to dependent package version constraints, on RHEL 6.5 with Yum 3.2.29. In a PKG1 spec file, I have something like : Requires: PKG2 >= 1.1.2-1 Requires: PKG2 < 1.2.0 In a Yum repo, PKG2 exists in several versions, among which 1.1.2-1 and 1.4.0-2, and PKG1 is in version 1.1.2-7 Here is what I see when running "yum install PKG1" : --> Running transaction check ---> Package PKG1.noarch 0:1.1.2-7 will be installed --> Processing Dependency: PKG2 < 1.2.0 for package: PKG1-1.1.2-7.noarch --> Processing Dependency: PKG2 >= 1.1.2-1 for package: PKG1-1.1.2-7.noarch --> Running transaction check ---> Package PKG2.x86_64 0:1.4.0-2 will be installed --> Finished Dependency Resolution Yum installs PKG2 1.4.0-2 instead of 1.1.2-1, thus does not respect the "Requires" from PKG1. I also tried with "Requires: PKG2 = 1.1.2-1" in PKG1, with the same incorrect result. Am I doing/understanding something wrong or is it a bug in Yum? Thank you for your help, Fabien. --047d7b873d5e3871a8050a3d99a8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div><div><div><div><div><div>Hello all,<br><br></div= >I'm having=20 issues with Yum dependency resolving with regards to dependent package=20 version constraints, on RHEL 6.5 with Yum 3.2.29.<br><br></div>In a PKG1 sp= ec file, I have something like :<br>Requires: PKG2 >=3D 1.1.2-1<br>Requi= res: PKG2 < 1.2.0<br><br></div>In a Yum repo, PKG2 exists in several ver= sions, among which 1.1.2-1 and 1.4.0-2, and PKG1 is in version 1.1.2-7<br><= br>Here is what I see when running "yum install PKG1" :<br><br>--= > Running transaction check<br>---> Package PKG1.noarch 0:1.1.2-7 wil= l be installed<br>--> Processing Dependency: PKG2 < 1.2.0 for package= : PKG1-1.1.2-7.noarch<br>--> Processing Dependency: PKG2 >=3D 1.1.2-1= for package: PKG1-1.1.2-7.noarch<br>--> Running transaction check<br>--= -> Package PKG2.x86_64 0:1.4.0-2 will be installed<br>--> Finished De= pendency Resolution<br><br></div>Yum installs PKG2 1.4.0-2 instead of 1.1.2= -1, thus does not respect the "Requires" from PKG1.<br></div><div= >I also tried with "Requires: PKG2 =3D 1.1.2-1" in PKG1, with the= same incorrect result.<br></div><div><br></div>Am I doing/understanding so= mething wrong or is it a bug in Yum?<br><br></div>Thank you for your help,<= br></div>Fabien.</div> --047d7b873d5e3871a8050a3d99a8-- --===============6631751104130266654== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Yum mailing list [email protected] http://lists.baseurl.org/mailman/listinfo/yum --===============6631751104130266654==--