Re: Yum does not respect RPM dependency version constraints
Fabien Crespel <[email protected]> Thu, 18 Dec 2014 21:25:00 +0100
| Newsgroups | gmane.linux.rpm.yum |
|---|---|
| Message-ID | <[email protected]> |
Le 16/12/2014 16:29, James Antill a =E9crit : > Using two requires to specify a range isn't used much, as there are a > lot of problems with it ... but it should work, and we do have tests > for it. However the second thing "X =3D ver" is used a _lot_, so if > that's not working then it's very likely that the requires/provides > aren't what you think they are. > The first thing I'd look at is to make sure the package being > installed doesn't also provide something more than the simple > <name =3D version> you get by default. After that the next culprit is > probably epochs. > Thank you for the tips. After inspecting requires/provides more closely, = I noticed that unlike other packages, PKG2 had a "Provides: PKG2" line = in its spec file (without any version). It seems that since all versions = of PKG2 had it, yum picked the most recent one every time, no matter = what specific version PKG1 required. I removed the "Provides: PKG2" line, rebuilt all packages, recreated the = repository and now dependencies are resolved correctly. Thanks, Fabien.