Mailinglist Archive: opensuse-buildservice (209 mails)

< Previous Next >
Re: [opensuse-buildservice] package Provides: not taken into consideration sometimes?
  • From: Andrew Beekhof <abeekhof@xxxxxxx>
  • Date: Tue, 5 Jun 2007 16:38:17 +0200
  • Message-id: <74C18BB6-FDDC-4B5E-9A7D-903258D3E67E@xxxxxxx>

On Jun 5, 2007, at 4:16 PM, Michael Schroeder wrote:

On Mon, Jun 04, 2007 at 09:57:52AM +0200, Michal Marek wrote:
So it seems that if a dependency is satisfied by a package name
directly, that package is preferred over packages which satisfy the
dependency via Provides:. It works as expected if either all packages
satisfy the dependency by package name, or all by Provides:. Eg.
mysql-devel pulls in the new mysql-client package (via name), and
mysql-client pulls in the new libmysqlclient15 package (via
libmysqlclient.so.15(libmysqlclient_15)).

So
a) is this expected or is it a bug?

It's expected. It is done to give the user a way to break
ambiguities. I.e., if there's an expansion error, you can
add the package you want to the BuildRequires and the build
will work.

b) can we work around it somehow? Using BuildRequires:
   libmysqlclient-devel would be tricky, because php5 builds also
   against pristine distributions.

You can add a "Substitute: mysql-devel libmysqlclient-devel" for
your repository.

what's the syntax for that? is it used somewhere else that we can use as an example?

---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups