Not sure how to handle this. On the C++ side, the policy dictates a
libcvc3-X package with libcvc3.so.X and a libcvc3-X-dev package with
libcvc3.so -> libfoo.so.X. On the Java side, we don't have any headers to
install, so a libcvc3-X-jni-dev package seems like overkill just for a
libcvc3jni.so symlink.

-Chris

On Sun, Mar 4, 2012 at 11:42 AM, Ralf Treinen <[email protected]> wrote:

> Package: libcvc3-2-jni,libcvc3-5-jni
> Version: libcvc3-2-jni/2.2-13.1
> Version: libcvc3-5-jni/2.4.1-2
> Severity: serious
> User: [email protected]
> Usertags: edos-file-overwrite
>
> Date: 2012-03-04
> 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!
>  libkeyutils1 libkrb5support0 libk5crypto3 libkrb5-3 libgssapi-krb5-2
>  libavahi-common-data libavahi-common3 libdbus-1-3 libavahi-client3
> libcups2
>  libfreetype6 libgmp10 libjpeg8 libnspr4-0d libnss3-1d openjdk-6-jre-lib
>  openssl ca-certificates java-common default-jre-headless
>  ca-certificates-java tzdata-java openjdk-6-jre-headless libcvc3-2
>  libcvc3-2-jni libcvc3-5 libcvc3-5-jni
> Preconfiguring packages ...
> Authentication warning overridden.
> Can not write log, openpty() failed (/dev/pts not mounted?)
> Selecting previously unselected package libkeyutils1.
> (Reading database ... 10548 files and directories currently installed.)
> Unpacking libkeyutils1 (from .../libkeyutils1_1.5.2-2_amd64.deb) ...
> Selecting previously unselected package libkrb5support0.
> Unpacking libkrb5support0 (from
> .../libkrb5support0_1.10+dfsg~beta1-2_amd64.deb) ...
> Selecting previously unselected package libk5crypto3.
> Unpacking libk5crypto3 (from .../libk5crypto3_1.10+dfsg~beta1-2_amd64.deb)
> ...
> Selecting previously unselected package libkrb5-3.
> Unpacking libkrb5-3 (from .../libkrb5-3_1.10+dfsg~beta1-2_amd64.deb) ...
> Selecting previously unselected package libgssapi-krb5-2.
> Unpacking libgssapi-krb5-2 (from
> .../libgssapi-krb5-2_1.10+dfsg~beta1-2_amd64.deb) ...
> Selecting previously unselected package libavahi-common-data.
> Unpacking libavahi-common-data (from
> .../libavahi-common-data_0.6.31-1_amd64.deb) ...
> Selecting previously unselected package libavahi-common3.
> Unpacking libavahi-common3 (from .../libavahi-common3_0.6.31-1_amd64.deb)
> ...
> Selecting previously unselected package libdbus-1-3.
> Unpacking libdbus-1-3 (from .../libdbus-1-3_1.4.18-1_amd64.deb) ...
> Selecting previously unselected package libavahi-client3.
> Unpacking libavahi-client3 (from .../libavahi-client3_0.6.31-1_amd64.deb)
> ...
> Selecting previously unselected package libcups2.
> Unpacking libcups2 (from .../libcups2_1.5.2-5_amd64.deb) ...
> Selecting previously unselected package libfreetype6.
> Unpacking libfreetype6 (from .../libfreetype6_2.4.8-1_amd64.deb) ...
> Selecting previously unselected package libgmp10.
> Unpacking libgmp10 (from .../libgmp10_2%3a5.0.4+dfsg-1_amd64.deb) ...
> Selecting previously unselected package libjpeg8.
> Unpacking libjpeg8 (from .../libjpeg8_8d-1_amd64.deb) ...
> Selecting previously unselected package libnspr4-0d.
> Unpacking libnspr4-0d (from .../libnspr4-0d_4.9-1_amd64.deb) ...
> Selecting previously unselected package libnss3-1d.
> Unpacking libnss3-1d (from .../libnss3-1d_3.13.3-1_amd64.deb) ...
> Selecting previously unselected package openjdk-6-jre-lib.
> Unpacking openjdk-6-jre-lib (from
> .../openjdk-6-jre-lib_6b24-1.11.1-3_all.deb) ...
> Selecting previously unselected package openssl.
> Unpacking openssl (from .../openssl_1.0.0g-1_amd64.deb) ...
> Selecting previously unselected package ca-certificates.
> Unpacking ca-certificates (from .../ca-certificates_20120212_all.deb) ...
> Selecting previously unselected package java-common.
> Unpacking java-common (from .../java-common_0.47_all.deb) ...
> Selecting previously unselected package default-jre-headless.
> Unpacking default-jre-headless (from
> .../default-jre-headless_1%3a1.6-47_amd64.deb) ...
> Selecting previously unselected package ca-certificates-java.
> Unpacking ca-certificates-java (from
> .../ca-certificates-java_20120225_all.deb) ...
> Selecting previously unselected package tzdata-java.
> Unpacking tzdata-java (from .../tzdata-java_2011n-2_all.deb) ...
> Selecting previously unselected package openjdk-6-jre-headless.
> Unpacking openjdk-6-jre-headless (from
> .../openjdk-6-jre-headless_6b24-1.11.1-3_amd64.deb) ...
> Selecting previously unselected package libcvc3-2.
> Unpacking libcvc3-2 (from .../libcvc3-2_2.2-13.1_amd64.deb) ...
> Selecting previously unselected package libcvc3-2-jni.
> Unpacking libcvc3-2-jni (from .../libcvc3-2-jni_2.2-13.1_amd64.deb) ...
> Selecting previously unselected package libcvc3-5.
> Unpacking libcvc3-5 (from .../libcvc3-5_2.4.1-2_amd64.deb) ...
> Selecting previously unselected package libcvc3-5-jni.
> Unpacking libcvc3-5-jni (from .../libcvc3-5-jni_2.4.1-2_amd64.deb) ...
> dpkg: error processing
> /var/cache/apt/archives/libcvc3-5-jni_2.4.1-2_amd64.deb (--unpack):
>  trying to overwrite '/usr/lib/jni/libcvc3jni.so', which is also in
> package libcvc3-2-jni 2.2-13.1
> configured to not write apport reports
> Processing triggers for man-db ...
> Errors were encountered while processing:
>  /var/cache/apt/archives/libcvc3-5-jni_2.4.1-2_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/lib/jni/libcvc3jni.so
>
> -Ralf.
>
> PS: for more information about the detection of file overwrite errors
> of this kind see http://edos.debian.net/file-overwrites/.
>
>
>

Reply via email to