Bug#633520: libowfat-dev and libcdb-dev: error when trying to install together

2011-07-11 Thread Roland Stigge
Hi,

On 07/11/2011 10:26 AM, Michael Tokarev wrote:
>> the latest libowfat-dev has the same file /usr/include/cdb.h as
>> libcdb-dev. Will add a "Conflicts: libcdb-dev" for now.
> 
> Actually it's interesting situation.  Both libraries provide
> the same functionality indeed (I mean the cdb part of it, --
> I understand libowfat provides much more than that).

Indeed, both (re-)implement some part of DJB's libraries. While tinycdb
concentrates on the cdb functions, libowfat has a wider scope. However,
I guess they are not API compatible because of different headers (e.g.
libowfat splits off cdb_make_* functions to cdb_make.h.

> Maybe we should merge the two somehow?

We could identify which reverse (build) dependencies use this interface
and which library is more popular.

It would be easiest and most general to just coexist by "Conflict"ing or
even adding an alternative.

bye,
  Roland



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#633520: libowfat-dev and libcdb-dev: error when trying to install together

2011-07-11 Thread Michael Tokarev
11.07.2011 12:10, Roland Stigge wrote:
> Hi,
> 
> the latest libowfat-dev has the same file /usr/include/cdb.h as
> libcdb-dev. Will add a "Conflicts: libcdb-dev" for now.

Actually it's interesting situation.  Both libraries provide
the same functionality indeed (I mean the cdb part of it, --
I understand libowfat provides much more than that).

Maybe we should merge the two somehow?

/mjt



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#633520: libowfat-dev and libcdb-dev: error when trying to install together

2011-07-11 Thread Roland Stigge
Hi,

the latest libowfat-dev has the same file /usr/include/cdb.h as
libcdb-dev. Will add a "Conflicts: libcdb-dev" for now.

Thanks for the note,

Roland



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#633520: libowfat-dev and libcdb-dev: error when trying to install together

2011-07-10 Thread Ralf Treinen
Package: libcdb-dev,libowfat-dev
Version: libcdb-dev/0.77
Version: libowfat-dev/0.28-3
Severity: serious
User: trei...@debian.org
Usertags: edos-file-overwrite

Date: 2011-07-11
Architecture: amd64
Distribution: sid

Hi,

automatic installation tests of packages that share a file and at the
same time do not conflict by their package dependency relationships has
detected the following problem:


WARNING: The following packages cannot be authenticated!
  libc-dev-bin linux-libc-dev libc6-dev libcdb1 libcdb-dev libowfat0
  libowfat-dev
Authentication warning overridden.
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package libc-dev-bin.
(Reading database ... 9214 files and directories currently installed.)
Unpacking libc-dev-bin (from .../libc-dev-bin_2.13-10_amd64.deb) ...
Selecting previously deselected package linux-libc-dev.
Unpacking linux-libc-dev (from .../linux-libc-dev_2.6.39-3_amd64.deb) ...
Selecting previously deselected package libc6-dev.
Unpacking libc6-dev (from .../libc6-dev_2.13-10_amd64.deb) ...
Selecting previously deselected package libcdb1.
Unpacking libcdb1 (from .../libcdb1_0.77_amd64.deb) ...
Selecting previously deselected package libcdb-dev.
Unpacking libcdb-dev (from .../libcdb-dev_0.77_amd64.deb) ...
Selecting previously deselected package libowfat0.
Unpacking libowfat0 (from .../libowfat0_0.28-3_amd64.deb) ...
Selecting previously deselected package libowfat-dev.
Unpacking libowfat-dev (from .../libowfat-dev_0.28-3_amd64.deb) ...
dpkg: error processing /var/cache/apt/archives/libowfat-dev_0.28-3_amd64.deb 
(--unpack):
 trying to overwrite '/usr/include/cdb.h', which is also in package libcdb-dev 
0.77
configured to not write apport reports
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/libowfat-dev_0.28-3_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


This is a serious bug as it makes installation fail, and violates
sections 7.6.1 and 10.1 of the policy. An optimal solution would
consist in only one of the packages installing that file, and renaming
or removing the file in the other package. Depending on the
circumstances you might also consider Replace relations or file
diversions. If the conflicting situation cannot be resolved then, as a
last resort, the two packages have to declare a mutual
Conflict. Please take into account that Replaces, Conflicts and
diversions should only be used when packages provide different
implementations for the same functionality.

Here is a list of files that are known to be shared by both packages
(according to the Contents file for sid/amd64, which may be
slightly out of sync):

  /usr/include/cdb.h

This bug is assigned to both packages. If you, the maintainers of
the two packages in question, have agreed on which of the packages will
resolve the problem please reassign the bug to that package. You may
also register in the BTS that the other package is affected by the bug.

-Ralf.

PS: for more information about the detection of file overwrite errors
of this kind see http://edos.debian.net/file-overwrites/.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org