I should have said that I'm also packaging the php/php53 foo/bar dependencies.<div>So maybe I just forgot some "Conflicts" tags (my bad).</div><div>Taking a look at it...</div><div><br></div><div><br><div class="gmail_quote">
On Thu, Sep 6, 2012 at 1:30 PM, Michael Schwendt <span dir="ltr"><<a href="mailto:mschwendt@gmail.com" target="_blank">mschwendt@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Thu, 6 Sep 2012 13:03:07 +0200, indent man wrote:<br>
<br>
> > Make the dependencies more specific.<br>
> ><br>
> > Add dependencies on package names and/or specific versions. Use RPM to<br>
> > examine the package's current "Requires" (both the automatically added<br>
> > ones as well as manually added ones) and the PHP package's "Provides".<br>
> ><br>
> > If multiple packages provide the same thing, Yum assumes that either one<br>
> > can be used to resolve a dependency.<br>
> ><br>
><br>
> Ok, I hoped yum would not to choose conflicting providers.<br>
> Since it does,<br>
<br>
</div>It doesn't. And it cannot know that a package that provides "php(foo)"<br>
isn't sufficient for a simple dependency on "php(foo)". How would it<br>
know about a version requirement without any such version in the<br>
dependency?<br>
<br>
The terminology with regard to "conflicts" is different, btw. Packages<br>
conflict only if there are explicit "Conflicts:" tags in them, or if they<br>
contain conflicting files in the same path (aka "implicit conflict").<br>
<br>
Assumably, the two php(foo) providers can be installed in parallel even.<br>
So, they don't conflict. It's really just that you need to be more<br>
specific about which version of php(foo) to install/depend on.<br>
<div class="im"><br>
> I suppose I'd better provide 2 separate packages for my app<br>
> with explicit dependencies.<br>
<br>
</div>Of course! There is no way to guess which version of PHP you need.<br>
That version must be specified in the dependencies wherever it matters.<br>
<div class="im"><br>
--<br>
Fedora release 17 (Beefy Miracle) - Linux 3.5.3-1.fc17.x86_64<br>
</div>loadavg: 0.08 0.25 0.29<br>
<div class="HOEnZb"><div class="h5">--<br>
packaging mailing list<br>
<a href="mailto:packaging@lists.fedoraproject.org">packaging@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/packaging" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/packaging</a></div></div></blockquote></div><br></div>