[Debian-med-packaging] Bug#557495: [treinen at free.fr: Bug#557495: libtowitoko-dev and libctapimkt0-dev: error when trying to install together]

Andreas Tille andreas at an3as.eu
Mon Nov 23 15:01:18 UTC 2009


I realised that there are all in all three packages in Debian which
are acceccing a CT-API and providing a file ctapi.h:

$ apt-file search ctapi.h
libctapimkt0-dev: /usr/include/ctapi.h
libopenct1-dev: /usr/include/openct/ctapi.h
libtowitoko-dev: /usr/include/ctapi.h

While libopenct1-dev uses a subdirectory and thus does not create
a conflict to the other two I wonder how to solve this conflict
reasonably.  The upstream author of libctapimkt0 told me that in
principle ctapi.h would have the same content and thus all libraries
might be able to share the same file.  If this is true this would
IMHO the best solution - the only remaining question would be from
which source this file should be taken and into which common
devel package it should go to enable the other package depend from

The other solution would be to move libctapimkt0-dev header files into a
subdirectory or if this makes no sense to simply conclict with
libtowitoko-dev - but I have no idea whether this is reasonable or

I admit I have no idea about this CT-API at all and really need to relay
on your expertise in this question.  For me ths current solution looks
quite confusing and it should be solved in a reasonable way.

Kind regards


> ----- Forwarded message from Ralf Treinen <treinen at free.fr> -----
> To: submit at bugs.debian.org
> From: Ralf Treinen <treinen at free.fr>
> Date: Sun, 22 Nov 2009 14:25:15 +0100
> X-Spam_score: -3.6
> Subject: Bug#557495: libtowitoko-dev and
> 	libctapimkt0-dev: error when trying to install together
> Package: libctapimkt0-dev,libtowitoko-dev
> Version: libctapimkt0-dev/1.0.1-1
> Version: libtowitoko-dev/2.0.7-8+b1
> Severity: serious
> User: treinen at debian.org
> Usertags: edos-file-overwrite
> Date: 2009-11-22
> 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 libctapimkt0 libctapimkt0-dev
>   libtowitoko2 libtowitoko-dev
> Preconfiguring packages ...
> Authentication warning overridden.
> Can not write log, openpty() failed (/dev/pts not mounted?)
> Selecting previously deselected package libc-dev-bin.
> (Reading database ... 10432 files and directories currently installed.)
> Unpacking libc-dev-bin (from .../libc-dev-bin_2.10.1-7_amd64.deb) ...
> Selecting previously deselected package linux-libc-dev.
> Unpacking linux-libc-dev (from .../linux-libc-dev_2.6.31-2_amd64.deb) ...
> Selecting previously deselected package libc6-dev.
> Unpacking libc6-dev (from .../libc6-dev_2.10.1-7_amd64.deb) ...
> Selecting previously deselected package libctapimkt0.
> Unpacking libctapimkt0 (from .../libctapimkt0_1.0.1-1_amd64.deb) ...
> Selecting previously deselected package libctapimkt0-dev.
> Unpacking libctapimkt0-dev (from .../libctapimkt0-dev_1.0.1-1_amd64.deb) ...
> Selecting previously deselected package libtowitoko2.
> Unpacking libtowitoko2 (from .../libtowitoko2_2.0.7-8+b1_amd64.deb) ...
> Selecting previously deselected package libtowitoko-dev.
> Unpacking libtowitoko-dev (from .../libtowitoko-dev_2.0.7-8+b1_amd64.deb) ...
> dpkg: error processing /var/cache/apt/archives/libtowitoko-dev_2.0.7-8+b1_amd64.deb (--unpack):
>  trying to overwrite '/usr/include/ctapi.h', which is also in package libctapimkt0-dev 0:1.0.1-1
> Processing triggers for man-db ...
> Errors were encountered while processing:
>  /var/cache/apt/archives/libtowitoko-dev_2.0.7-8+b1_amd64.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> This is a serious bug as it makes installation fail, and violate
> section 7.6.1 of the policy. Possible solutions are to have the two
> packages conflict, to rename the common file in one of the two
> packages, or to remove the file from one package and have this package
> depend on the other package. File diversions or a Replace relation are
> another possibility.
> 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/ctapi.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.
> -Ralf.
> PS: for more information about the detection of file overwrite errors
> of this kind see http://edos.debian.net/file-overwrites/.
> _______________________________________________
> Debian-med-packaging mailing list
> Debian-med-packaging at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/debian-med-packaging
> ----- End forwarded message -----
> -- 
> http://fam-tille.de


More information about the Debian-med-packaging mailing list