Hello,

Suppose the following construct:

Package: some-concrete
Conflicts: some-virtual
Replaces: some-virtual
Provides: some-virtual

Package: another-concrete
Conflicts: some-virtual
Replaces: some-virtual
Provides: some-virtual

When the some-concrete is installed and you are installing
the another-concrete, the dpkg can remove the some-concrete.

http://www.debian.org/doc/debian-policy/ch-relationships.html#s7.5.2

The dpkg handles the situation like this:

1. Parses the another-package's control.
2. Detects that the another-concrete Conflicts against the
   some-virtual
3. but the another-concrete itself Provides the some-virtual.
4. Then remove the package providing the some-virtual now, that is,
   the some-concrete.
5. Detects that the another-concrete Provides the some-virtual.
6. Now no packages conflicting against the another-concrete or the
   some-virtual are installed. Installs the another-concrete.

However, the construct does not work in Fink because the fink command
reorders them like this:

Package: another-concrete
Replaces: some-virtual
Provides: some-virtual
Conflicts: some-virtual

In this situation, the dpkg works like this:

1. Parses the another-package's control.
2. Detects that the another-concrete Provides the some-virtual.
3. Detects that the some-concrete Conflicts against the
   some-virtual.
4. Complains that:
 some-concrete conflicts with another-concrete
  another-concrete provides some-virtual and is to be installed.

I don't know which of the fink or dpkg is responsible for my problem,
but in any way I'm afraid the dpkg has more problems like this. 
We can workaround most of them if we reorder the fields of controls like
most of Debian's packages.


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. 
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to